aboutsummaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-10 15:40:43 +0100
committerGitHub <noreply@github.com>2021-11-10 15:40:43 +0100
commit93df757b938fd6f67ab00c78df93cf55743b6683 (patch)
treec0bba498c1c55dbce009393ade2e862946942d38 /test/system
parent5437568fcda04c2999b5fa9aad4dd07f2d3cfd67 (diff)
parentdf066643638d9763d186fea2e6a81633244d2f88 (diff)
downloadpodman-93df757b938fd6f67ab00c78df93cf55743b6683.tar.gz
podman-93df757b938fd6f67ab00c78df93cf55743b6683.tar.bz2
podman-93df757b938fd6f67ab00c78df93cf55743b6683.zip
Merge pull request #12250 from vrothberg/fix-12245
pod create: read infra image from containers.conf
Diffstat (limited to 'test/system')
-rw-r--r--test/system/200-pod.bats19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/system/200-pod.bats b/test/system/200-pod.bats
index 09a419914..60cfbc9dd 100644
--- a/test/system/200-pod.bats
+++ b/test/system/200-pod.bats
@@ -60,6 +60,25 @@ function teardown() {
run_podman pod rm -f -t 0 $podid
}
+
+@test "podman pod create - custom infra image" {
+ image="i.do/not/exist:image"
+
+ tmpdir=$PODMAN_TMPDIR/pod-test
+ run mkdir -p $tmpdir
+ containersconf=$tmpdir/containers.conf
+ cat >$containersconf <<EOF
+[engine]
+infra_image="$image"
+EOF
+
+ run_podman 125 pod create --infra-image $image
+ is "$output" ".*initializing source docker://$image:.*"
+
+ CONTAINERS_CONF=$containersconf run_podman 125 pod create
+ is "$output" ".*initializing source docker://$image:.*"
+}
+
function rm_podman_pause_image() {
run_podman version --format "{{.Server.Version}}-{{.Server.Built}}"
run_podman rmi -f "localhost/podman-pause:$output"