summaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-15 12:43:15 -0400
committerGitHub <noreply@github.com>2021-06-15 12:43:15 -0400
commit463a5a7db5b096f225324d9c2c40e40a47f6e7c2 (patch)
tree11829a61203fdc0304e9aacbebe0cf578e7d1933 /test/apiv2
parent6b517a7e9077330bfe81d84401aa856e2fab380c (diff)
parent3ddadc5326d6f7ba159495f135730ed817ce1989 (diff)
downloadpodman-463a5a7db5b096f225324d9c2c40e40a47f6e7c2.tar.gz
podman-463a5a7db5b096f225324d9c2c40e40a47f6e7c2.tar.bz2
podman-463a5a7db5b096f225324d9c2c40e40a47f6e7c2.zip
Merge pull request #10622 from cdoern/imgImportFeature
compat import imageFromSrc support for platform query parameter
Diffstat (limited to 'test/apiv2')
-rw-r--r--test/apiv2/python/rest_api/test_v2_0_0_image.py9
1 files changed, 2 insertions, 7 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 cea34e2e7..59dcea87f 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
@@ -89,14 +89,9 @@ class ImageTestCase(APITestCase):
def test_create(self):
r = requests.post(
- self.podman_url + "/v1.40/images/create?fromImage=alpine&platform=linux/amd64/v8",
- timeout=15,
- )
+ 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,
- )
+ r = requests.post(self.podman_url + "/v1.40/images/create?fromSrc=-&repo=fedora&message=testing123&platform=linux/amd64", timeout=15)
self.assertEqual(r.status_code, 200, r.text)
def test_search_compat(self):