summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJason T. Greene <jason.greene@redhat.com>2021-09-10 00:50:41 -0500
committerMatthew Heon <mheon@redhat.com>2021-09-16 09:42:14 -0400
commit1af0f8934ce1d4bbdedd6583579ca0eb6469e831 (patch)
tree0c65c102f2871e519eefd3a5538d92042ffbe3f8 /test
parentc6e4453f6223bbb2b6cfd5242c0d9af55cd8b121 (diff)
downloadpodman-1af0f8934ce1d4bbdedd6583579ca0eb6469e831.tar.gz
podman-1af0f8934ce1d4bbdedd6583579ca0eb6469e831.tar.bz2
podman-1af0f8934ce1d4bbdedd6583579ca0eb6469e831.zip
Add deprecated fields for 1.22+ clients that still expect them
Signed-off-by: Jason Greene <jason.greene@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/python/rest_api/test_v2_0_0_system.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/apiv2/python/rest_api/test_v2_0_0_system.py b/test/apiv2/python/rest_api/test_v2_0_0_system.py
index 2d3935c9c..8171abb84 100644
--- a/test/apiv2/python/rest_api/test_v2_0_0_system.py
+++ b/test/apiv2/python/rest_api/test_v2_0_0_system.py
@@ -29,6 +29,14 @@ class SystemTestCase(APITestCase):
obj = json.loads(line)
# Actor.ID is uppercase for compatibility
self.assertIn("ID", obj["Actor"])
+ # Verify 1.22+ deprecated variants are present if current originals are
+ if (obj["Actor"]["ID"]):
+ self.assertEqual(obj["Actor"]["ID"], obj["id"])
+ if (obj["Action"]):
+ self.assertEqual(obj["Action"], obj["status"])
+ if (obj["Actor"].get("Attributes") and obj["Actor"]["Attributes"].get("image")):
+ self.assertEqual(obj["Actor"]["Attributes"]["image"], obj["from"])
+
def test_ping(self):
required_headers = (