summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2021-11-12 13:44:13 +0100
committerValentin Rothberg <rothberg@redhat.com>2021-11-12 13:44:13 +0100
commitf517510bc8c11f6ba3145facc10ce351084a4ce4 (patch)
tree22be4c5744ed6868a24644b7c121c99b932e5c73 /test
parent92da8682b3977a6ef57a6f73dde2f2aef6186d19 (diff)
downloadpodman-f517510bc8c11f6ba3145facc10ce351084a4ce4.tar.gz
podman-f517510bc8c11f6ba3145facc10ce351084a4ce4.tar.bz2
podman-f517510bc8c11f6ba3145facc10ce351084a4ce4.zip
play kube: don't force-pull infra image
Do not force-pull the infra image in `play kube` but let the backend take care of that when creating the pod(s) which may build a local `podman-pause` image instead of using the default infra image. Fixes: #12254 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/system/700-play.bats6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/system/700-play.bats b/test/system/700-play.bats
index 8cf279ada..c3e5e9354 100644
--- a/test/system/700-play.bats
+++ b/test/system/700-play.bats
@@ -76,6 +76,12 @@ RELABEL="system_u:object_r:container_file_t:s0"
is "$output" "${RELABEL} $TESTDIR" "selinux relabel should have happened"
fi
+ # Make sure that the K8s pause image isn't pulled but the local podman-pause is built.
+ run_podman images
+ run_podman 1 image exists k8s.gcr.io/pause
+ run_podman version --format "{{.Server.Version}}-{{.Server.Built}}"
+ run_podman image exists localhost/podman-pause:$output
+
run_podman stop -a -t 0
run_podman pod rm -t 0 -f test_pod
}