summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-05-21 20:10:21 +0200
committerGitHub <noreply@github.com>2021-05-21 20:10:21 +0200
commit490915c68e6fce48508d42d138ac1c92c877abe7 (patch)
tree68d46348f72d53c3d4cec6cf604791c2744d701a /test
parent7f4afe45abc07eb16e8a823c6ba9070d7a7a8f79 (diff)
parent8bf852d5f0e5d3b22da2a7401d37d1ef3475065f (diff)
downloadpodman-490915c68e6fce48508d42d138ac1c92c877abe7.tar.gz
podman-490915c68e6fce48508d42d138ac1c92c877abe7.tar.bz2
podman-490915c68e6fce48508d42d138ac1c92c877abe7.zip
Merge pull request #10365 from jwhonce/issues/9578
Match swagger to "as built" output
Diffstat (limited to 'test')
-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()