summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-03-25 12:32:10 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-03-27 10:12:18 -0400
commit86f03e0e526bbf39ea8a6cb18e3067a7e37bfd89 (patch)
tree26c62bb93c595e6bd52ac8d9af216867f43f5e15
parent323dc526ce8d8f236eca06b518dcf35f260d6379 (diff)
downloadpodman-86f03e0e526bbf39ea8a6cb18e3067a7e37bfd89.tar.gz
podman-86f03e0e526bbf39ea8a6cb18e3067a7e37bfd89.tar.bz2
podman-86f03e0e526bbf39ea8a6cb18e3067a7e37bfd89.zip
Add a test that --add-host conflicts with --no-hosts
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
-rw-r--r--test/e2e/run_test.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index b0dc66707..2daf2fe5b 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -749,13 +749,19 @@ USER mail`
It("podman run with bad healthcheck timeout", func() {
session := podmanTest.Podman([]string{"run", "-dt", "--healthcheck-cmd", "foo", "--healthcheck-timeout", "0s", ALPINE, "top"})
- session.Wait()
+ session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).ToNot(Equal(0))
})
It("podman run with bad healthcheck start-period", func() {
session := podmanTest.Podman([]string{"run", "-dt", "--healthcheck-cmd", "foo", "--healthcheck-start-period", "-1s", ALPINE, "top"})
- session.Wait()
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).ToNot(Equal(0))
+ })
+
+ It("podman run with --add-host and --no-hosts fails", func() {
+ session := podmanTest.Podman([]string{"run", "-dt", "--add-host", "test1:127.0.0.1", "--no-hosts", ALPINE, "top"})
+ session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).ToNot(Equal(0))
})
})