diff options
author | cdoern <cbdoer23@g.holycross.edu> | 2021-06-09 14:26:40 -0400 |
---|---|---|
committer | cdoern <cbdoer23@g.holycross.edu> | 2021-06-14 09:05:01 -0400 |
commit | 3ddadc5326d6f7ba159495f135730ed817ce1989 (patch) | |
tree | 5bdb6d8ac975ad7667a164002562f36df74c5d6c /test | |
parent | 2970e3518cc95910444903f572418f5887316e47 (diff) | |
download | podman-3ddadc5326d6f7ba159495f135730ed817ce1989.tar.gz podman-3ddadc5326d6f7ba159495f135730ed817ce1989.tar.bz2 podman-3ddadc5326d6f7ba159495f135730ed817ce1989.zip |
Image import fromSrc now supports OS/Arch
added handling in entities and compat to support passing a specified OS/Arch while importing from SRC.
fixes #10566
Signed-off-by: cdoern <cbdoer23@g.holycross.edu>
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/python/rest_api/test_v2_0_0_image.py | 9 |
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): |