diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-07-19 10:23:21 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-07-20 09:00:44 +0200 |
commit | eaaca499922c4a322bf61b7d9f288a447b1079ba (patch) | |
tree | 05602c619b7303558a0b46d43ac3a117ddb09b12 /test/apiv2 | |
parent | 20c9f74c77683730455df4fb5e7722a192b78a92 (diff) | |
download | podman-eaaca499922c4a322bf61b7d9f288a447b1079ba.tar.gz podman-eaaca499922c4a322bf61b7d9f288a447b1079ba.tar.bz2 podman-eaaca499922c4a322bf61b7d9f288a447b1079ba.zip |
compat: image create: handle platform correctly
Handle the platform parameter correctly. The parameter was only parsed
in presence of credentials and the code was a bit complex. Also add a
regression test.
Fixes: #10977
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/apiv2')
-rw-r--r-- | test/apiv2/10-images.at | 5 |
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 |