diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-21 11:38:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-21 11:38:54 +0200 |
commit | 4a1dd9f9a416a7098a707436e1285eaa5cfc1722 (patch) | |
tree | 2974b2711269de404d528a9fbd5837fd4db34308 /test/e2e | |
parent | bc256d93195bc289b888cee37dc3e82e68c0e8a0 (diff) | |
parent | 3556bfed09bdfb8817e4786846ec566833ae58d3 (diff) | |
download | podman-4a1dd9f9a416a7098a707436e1285eaa5cfc1722.tar.gz podman-4a1dd9f9a416a7098a707436e1285eaa5cfc1722.tar.bz2 podman-4a1dd9f9a416a7098a707436e1285eaa5cfc1722.zip |
Merge pull request #6671 from rhatdan/build
Fix podman build handling of --http-proxy flag
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/build_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/e2e/build_test.go b/test/e2e/build_test.go index 9e41fd231..0cf5283ad 100644 --- a/test/e2e/build_test.go +++ b/test/e2e/build_test.go @@ -195,4 +195,21 @@ var _ = Describe("Podman build", func() { Expect(session.ExitCode()).To(Equal(0)) }) + It("podman build --http_proxy flag", func() { + SkipIfRemote() + os.Setenv("http_proxy", "1.2.3.4") + podmanTest.RestoreAllArtifacts() + dockerfile := `FROM docker.io/library/alpine:latest +RUN printenv http_proxy` + + dockerfilePath := filepath.Join(podmanTest.TempDir, "Dockerfile") + err := ioutil.WriteFile(dockerfilePath, []byte(dockerfile), 0755) + Expect(err).To(BeNil()) + session := podmanTest.PodmanNoCache([]string{"build", "--file", dockerfilePath, podmanTest.TempDir}) + session.Wait(120) + Expect(session.ExitCode()).To(Equal(0)) + ok, _ := session.GrepString("1.2.3.4") + Expect(ok).To(BeTrue()) + os.Unsetenv("http_proxy") + }) }) |