From 3556bfed09bdfb8817e4786846ec566833ae58d3 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Thu, 18 Jun 2020 09:48:52 -0400 Subject: Fix podman build handling of --http-proxy flag Also fixed a todo for handling of cgroup manager while I was in there. Signed-off-by: Daniel J Walsh --- test/e2e/build_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/e2e') 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") + }) }) -- cgit v1.2.3-54-g00ecf