diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-08-23 13:44:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-23 13:44:19 -0400 |
commit | 6a3741598cc30216a1a8db7d2c917e19bc37002b (patch) | |
tree | 955957dfceb7ee0a7598cd122461960858109173 /test/e2e/run_test.go | |
parent | 062900c264c8228ba660b73a938fcad3b8c28ab8 (diff) | |
parent | 319c85e89ee2ee565da12680cca041335296a0c0 (diff) | |
download | podman-6a3741598cc30216a1a8db7d2c917e19bc37002b.tar.gz podman-6a3741598cc30216a1a8db7d2c917e19bc37002b.tar.bz2 podman-6a3741598cc30216a1a8db7d2c917e19bc37002b.zip |
Merge pull request #11205 from Shivkumar13/shivkumar-tls-fix
Support for --tls-verify flag in podman-run & podman-create
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r-- | test/e2e/run_test.go | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 1fb1a179a..6a2e2ed8d 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -166,9 +166,25 @@ var _ = Describe("Podman run", func() { }) It("podman run a container based on remote image", func() { - session := podmanTest.Podman([]string{"run", "-dt", BB_GLIBC, "ls"}) + // Changing session to rsession + rsession := podmanTest.Podman([]string{"run", "-dt", ALPINE, "ls"}) + rsession.WaitWithDefaultTimeout() + Expect(rsession).Should(Exit(0)) + + lock := GetPortLock("5000") + defer lock.Unlock() + session := podmanTest.Podman([]string{"run", "-d", "--name", "registry", "-p", "5000:5000", registry, "/entrypoint.sh", "/etc/docker/registry/config.yml"}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) + + if !WaitContainerReady(podmanTest, "registry", "listening on", 20, 1) { + Skip("Cannot start docker registry.") + } + + run := podmanTest.Podman([]string{"run", "--tls-verify=false", ALPINE}) + run.WaitWithDefaultTimeout() + Expect(run).Should(Exit(0)) + Expect(podmanTest.NumberOfContainers()).To(Equal(3)) }) It("podman run a container with a --rootfs", func() { |