summaryrefslogtreecommitdiff
path: root/test/apiv2/python/rest_api/fixtures
diff options
context:
space:
mode:
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
commitee05bc031882cd47cf402f55e1bfefbe83ecb3c0 (patch)
tree85f3505b7e5fc14fe245a3f50d897a5fbb6b20dc /test/apiv2/python/rest_api/fixtures
parentfe8e536328eef61f0cf7ffd42b74d4e5be4654ee (diff)
downloadpodman-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.py4
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."""