diff options
author | 🤓 Mostafa Emami <mustafaemami@gmail.com> | 2022-06-21 07:30:34 +0200 |
---|---|---|
committer | 🤓 Mostafa Emami <mustafaemami@gmail.com> | 2022-07-05 21:25:32 +0200 |
commit | ee05bc031882cd47cf402f55e1bfefbe83ecb3c0 (patch) | |
tree | 85f3505b7e5fc14fe245a3f50d897a5fbb6b20dc /test/apiv2/python/rest_api/fixtures | |
parent | fe8e536328eef61f0cf7ffd42b74d4e5be4654ee (diff) | |
download | podman-ee05bc031882cd47cf402f55e1bfefbe83ecb3c0.tar.gz podman-ee05bc031882cd47cf402f55e1bfefbe83ecb3c0.tar.bz2 podman-ee05bc031882cd47cf402f55e1bfefbe83ecb3c0.zip |
Fix network inspect compat API discrepancy
- containerInspect compat API expects field value PrefixLen
instead of PrefixLength for type Address for SecondaryIPAddresses
- Add tests for network part of containerInspect compat api
Closes: containers#14674
Signed-off-by: 🤓 Mostafa Emami <mustafaemami@gmail.com>
Diffstat (limited to 'test/apiv2/python/rest_api/fixtures')
-rw-r--r-- | test/apiv2/python/rest_api/fixtures/api_testcase.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/apiv2/python/rest_api/fixtures/api_testcase.py b/test/apiv2/python/rest_api/fixtures/api_testcase.py index 155e93928..f47136555 100644 --- a/test/apiv2/python/rest_api/fixtures/api_testcase.py +++ b/test/apiv2/python/rest_api/fixtures/api_testcase.py @@ -64,6 +64,10 @@ class APITestCase(unittest.TestCase): def uri(path): return APITestCase.PODMAN_URL + "/v2.0.0/libpod" + path + @staticmethod + def compat_uri(path): + return APITestCase.PODMAN_URL + "/v3.0.0/" + path + def resolve_container(self, path): """Find 'first' container and return 'Id' formatted into given URI path.""" |