summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-16 09:22:27 -0500
committerGitHub <noreply@github.com>2021-02-16 09:22:27 -0500
commit3eb2ce34dc4392e1b758732201d5a6dd5033584c (patch)
tree36cd03b207b9332b0170f12b6d9d0de7dec10fae /test
parent6639b218a28301e6e8d075cceb18c56ea62fcade (diff)
parent2a21ecafa74e6ef7d982ca3ec8ed689abcbec672 (diff)
downloadpodman-3eb2ce34dc4392e1b758732201d5a6dd5033584c.tar.gz
podman-3eb2ce34dc4392e1b758732201d5a6dd5033584c.tar.bz2
podman-3eb2ce34dc4392e1b758732201d5a6dd5033584c.zip
Merge pull request #9397 from vrothberg/fix-9232
images/create: always pull image
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/10-images.at7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/apiv2/10-images.at b/test/apiv2/10-images.at
index 693c34ced..a650cf958 100644
--- a/test/apiv2/10-images.at
+++ b/test/apiv2/10-images.at
@@ -45,6 +45,13 @@ t POST "images/create?fromImage=alpine" '' 200 .error=null .status~".*Download c
t POST "images/create?fromImage=alpine&tag=latest" '' 200
+# 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
+podman tag $IMAGE docker.io/library/alpine:latest
+t POST "images/create?fromImage=alpine" '' 200 .error=null .status~".*$old_iid.*"
+podman untag $IMAGE docker.io/library/alpine:latest
+
t POST "images/create?fromImage=quay.io/libpod/alpine&tag=sha256:fa93b01658e3a5a1686dc3ae55f170d8de487006fb53a28efcd12ab0710a2e5f" '' 200
# Display the image history