summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-08 17:44:02 +0200
committerGitHub <noreply@github.com>2021-06-08 17:44:02 +0200
commit5d96b8e7d6dbf1f6f4eb6fed5f8f6142541fef7f (patch)
tree1ec7629d9dbedc21301a383f3704e8f1bebc57d0 /test
parent5824f06d4b3ad4359a076be57192c523eb1c695d (diff)
parentce01b4f095f6d1a55952e03f919ba73d4c9d8eae (diff)
downloadpodman-5d96b8e7d6dbf1f6f4eb6fed5f8f6142541fef7f.tar.gz
podman-5d96b8e7d6dbf1f6f4eb6fed5f8f6142541fef7f.tar.bz2
podman-5d96b8e7d6dbf1f6f4eb6fed5f8f6142541fef7f.zip
Merge pull request #10548 from cdoern/imgFeature
API images/create added missing parameters platform, message, repo
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/python/rest_api/test_v2_0_0_image.py5
1 files changed, 5 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 243b1d5f5..2cd7bfa96 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
@@ -86,6 +86,11 @@ class ImageTestCase(APITestCase):
self.assertTrue(keys["id"], "Expected to find id stanza")
self.assertTrue(keys["images"], "Expected to find images stanza")
self.assertTrue(keys["stream"], "Expected to find stream progress stanza's")
+ def test_create(self):
+ r = requests.post(self.podman_url + "/v1.40/images/create?fromImage=alpine&platform=linux/amd64/v8", timeout=15)
+ self.assertEqual(r.status_code, 200, r.text)
+ r = requests.post(self.podman_url + "/v1.40/images/create?fromSrc=-&repo=fedora&message=testing123", timeout=15)
+ self.assertEqual(r.status_code, 200, r.text)
def test_search_compat(self):
url = self.podman_url + "/v1.40/images/search"