diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-05-01 14:51:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 14:51:55 +0200 |
commit | eea77b5ae3e7fb8a60d438a79d3a4b30d35bb67c (patch) | |
tree | 37f8f7740e9e615a561422410ff91a0ce13bead0 /test/e2e/run_test.go | |
parent | 39c937ee450a4de7ab97c013d65157a3b39718b1 (diff) | |
parent | 354d80626ac4790f261a29a6d53d6cd3fa837bb9 (diff) | |
download | podman-eea77b5ae3e7fb8a60d438a79d3a4b30d35bb67c.tar.gz podman-eea77b5ae3e7fb8a60d438a79d3a4b30d35bb67c.tar.bz2 podman-eea77b5ae3e7fb8a60d438a79d3a4b30d35bb67c.zip |
Merge pull request #3018 from jamescassell/auto-http-proxy
Auto http proxy
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r-- | test/e2e/run_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index a89ee491b..849fcc477 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -763,4 +763,18 @@ USER mail` session.WaitWithDefaultTimeout() Expect(session.ExitCode()).ToNot(Equal(0)) }) + + It("podman run --http-proxy test", func() { + os.Setenv("http_proxy", "1.2.3.4") + session := podmanTest.Podman([]string{"run", "--rm", ALPINE, "printenv", "http_proxy"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + match, _ := session.GrepString("1.2.3.4") + Expect(match).Should(BeTrue()) + + session = podmanTest.Podman([]string{"run", "--rm", "--http-proxy=false", ALPINE, "printenv", "http_proxy"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(1)) + os.Unsetenv("http_proxy") + }) }) |