summaryrefslogtreecommitdiff
path: root/test/e2e/run_env_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-10-05 06:13:28 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-10-07 10:19:08 -0400
commitccc5bc167fa2c140e33963bb5cce99f40ff00281 (patch)
tree5cd6445f92921c7015fbe0b9663983165bd58db3 /test/e2e/run_env_test.go
parenta7500e54a4646c7db477349e2530ac13df77b8fa (diff)
downloadpodman-ccc5bc167fa2c140e33963bb5cce99f40ff00281.tar.gz
podman-ccc5bc167fa2c140e33963bb5cce99f40ff00281.tar.bz2
podman-ccc5bc167fa2c140e33963bb5cce99f40ff00281.zip
Attempt to turn on some more remote tests
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e/run_env_test.go')
-rw-r--r--test/e2e/run_env_test.go13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/e2e/run_env_test.go b/test/e2e/run_env_test.go
index 3f488ada5..9882b936a 100644
--- a/test/e2e/run_env_test.go
+++ b/test/e2e/run_env_test.go
@@ -90,11 +90,15 @@ var _ = Describe("Podman run", func() {
})
It("podman run --env-host environment test", func() {
- SkipIfRemote("FIXME, We should check that --env-host reports correct error on podman-remote")
env := append(os.Environ(), "FOO=BAR")
session := podmanTest.PodmanAsUser([]string{"run", "--rm", "--env-host", ALPINE, "/bin/printenv", "FOO"}, 0, 0, "", env)
-
session.WaitWithDefaultTimeout()
+ if IsRemote() {
+ // podman-remote does not support --env-host
+ Expect(session.ExitCode()).To(Equal(125))
+ Expect(session.ErrorToString()).To(ContainSubstring("unknown flag: --env-host"))
+ return
+ }
Expect(session.ExitCode()).To(Equal(0))
match, _ := session.GrepString("BAR")
Expect(match).Should(BeTrue())
@@ -108,8 +112,11 @@ var _ = Describe("Podman run", func() {
})
It("podman run --http-proxy test", func() {
- SkipIfRemote("FIXME: Should report proper error when http-proxy is not supported")
os.Setenv("http_proxy", "1.2.3.4")
+ if IsRemote() {
+ podmanTest.StopRemoteService()
+ podmanTest.StartRemoteService()
+ }
session := podmanTest.Podman([]string{"run", "--rm", ALPINE, "printenv", "http_proxy"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))