summaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-07-20 05:26:35 -0400
committerGitHub <noreply@github.com>2021-07-20 05:26:35 -0400
commitf4e81d0b886ba65cf350f101020d398af2f2cc7e (patch)
tree9b843560bb678a458aabf50a113bd840cb7ce7ef /test/apiv2
parent36e47768e6b2b2a78b85535695aa9e7bb7f9c3a8 (diff)
parenteaaca499922c4a322bf61b7d9f288a447b1079ba (diff)
downloadpodman-f4e81d0b886ba65cf350f101020d398af2f2cc7e.tar.gz
podman-f4e81d0b886ba65cf350f101020d398af2f2cc7e.tar.bz2
podman-f4e81d0b886ba65cf350f101020d398af2f2cc7e.zip
Merge pull request #10979 from vrothberg/fix-10977
compat: image create: handle platform correctly
Diffstat (limited to 'test/apiv2')
-rw-r--r--test/apiv2/10-images.at5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/apiv2/10-images.at b/test/apiv2/10-images.at
index 9e464dbc7..195b11ff0 100644
--- a/test/apiv2/10-images.at
+++ b/test/apiv2/10-images.at
@@ -45,6 +45,11 @@ t POST "images/create?fromImage=alpine" 200 .error~null .status~".*Download comp
t POST "images/create?fromImage=alpine&tag=latest" 200
+# 10977 - handle platform parameter correctly
+t POST "images/create?fromImage=alpine&platform=linux/arm64" 200
+t GET "images/alpine/json" 200 \
+ .Architecture=arm64
+
# Make sure that new images are pulled
old_iid=$(podman image inspect --format "{{.ID}}" docker.io/library/alpine:latest)
podman rmi -f docker.io/library/alpine:latest