summaryrefslogtreecommitdiff
path: root/test/e2e/run_test.go
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2021-10-22 16:07:26 +0200
committerValentin Rothberg <rothberg@redhat.com>2021-11-30 14:48:26 +0100
commit47a8e7c9f9759f1775a0d59dd292eb375accd903 (patch)
treeb125b7fad9f736445c34f6688f5d4dd28513b1bd /test/e2e/run_test.go
parent67d5b21f66beb58f9bfe25451e812a741d5c017d (diff)
downloadpodman-47a8e7c9f9759f1775a0d59dd292eb375accd903.tar.gz
podman-47a8e7c9f9759f1775a0d59dd292eb375accd903.tar.bz2
podman-47a8e7c9f9759f1775a0d59dd292eb375accd903.zip
container create: fix --tls-verify parsing
Make sure that the value is only set if specified on the CLI. c/image already defaults to true but if set in the system context, we'd skip settings in the registries.conf. Backport of commit ff31f2264da. Fixes: #11933 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r--test/e2e/run_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index 8f640eacf..a5a0aad8b 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -186,6 +186,12 @@ var _ = Describe("Podman run", func() {
run.WaitWithDefaultTimeout()
Expect(run).Should(Exit(0))
Expect(podmanTest.NumberOfContainers()).To(Equal(3))
+
+ // Now registries.conf will be consulted where localhost:5000
+ // is set to be insecure.
+ run = podmanTest.Podman([]string{"run", ALPINE})
+ run.WaitWithDefaultTimeout()
+ Expect(run).Should(Exit(0))
})
It("podman run a container with a --rootfs", func() {