From 8bf852d5f0e5d3b22da2a7401d37d1ef3475065f Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Mon, 17 May 2021 09:30:38 -0700 Subject: 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 --- test/apiv2/python/rest_api/test_v2_0_0_image.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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() -- cgit v1.2.3-54-g00ecf