summaryrefslogtreecommitdiff
path: root/test/apiv2/python
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2021-05-17 09:30:38 -0700
committerJhon Honce <jhonce@redhat.com>2021-05-21 09:50:58 -0700
commit8bf852d5f0e5d3b22da2a7401d37d1ef3475065f (patch)
tree48bf4d1c69a9cdfa12f603c74166b77d54bf30dd /test/apiv2/python
parent6a6ef402c3c8e14a621a98a4029255e3be41d5ef (diff)
downloadpodman-8bf852d5f0e5d3b22da2a7401d37d1ef3475065f.tar.gz
podman-8bf852d5f0e5d3b22da2a7401d37d1ef3475065f.tar.bz2
podman-8bf852d5f0e5d3b22da2a7401d37d1ef3475065f.zip
Match swagger to "as built" output
* Remove all Types no longer referenced, they were never used A future API breaking version of Podman API, may restore these Types and push formatting into presentation layer vs. server. Fixes #9578 Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'test/apiv2/python')
-rw-r--r--test/apiv2/python/rest_api/test_v2_0_0_image.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/apiv2/python/rest_api/test_v2_0_0_image.py b/test/apiv2/python/rest_api/test_v2_0_0_image.py
index 99f513608..243b1d5f5 100644
--- a/test/apiv2/python/rest_api/test_v2_0_0_image.py
+++ b/test/apiv2/python/rest_api/test_v2_0_0_image.py
@@ -160,6 +160,12 @@ class ImageTestCase(APITestCase):
for k in required_keys:
self.assertIn(k, change)
+ def test_tree(self):
+ r = requests.get(self.uri("/images/alpine/tree"))
+ self.assertEqual(r.status_code, 200, r.text)
+ tree = r.json()
+ self.assertTrue(tree["Tree"].startswith("Image ID:"), r.text)
+
if __name__ == "__main__":
unittest.main()