summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-08-09 04:03:17 +0200
committerGitHub <noreply@github.com>2019-08-09 04:03:17 +0200
commit76840f2d991ce691a6945d65ef7ae52d93d211e5 (patch)
treeea7305667a88ddba43c72ce7f0a0b1c6d65fcebc /test/e2e
parent4349f42d66d91fa48cde6aa6ed499eaa41d3e2b5 (diff)
parent5270cd89d33203ffc3239be2b5ed1b60afd9d867 (diff)
downloadpodman-76840f2d991ce691a6945d65ef7ae52d93d211e5.tar.gz
podman-76840f2d991ce691a6945d65ef7ae52d93d211e5.tar.bz2
podman-76840f2d991ce691a6945d65ef7ae52d93d211e5.zip
Merge pull request #3764 from rhatdan/dnssearch
Allow the passing of '.' to --dns-search
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_dns_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/run_dns_test.go b/test/e2e/run_dns_test.go
index 081fab3fd..dc0f4a8fb 100644
--- a/test/e2e/run_dns_test.go
+++ b/test/e2e/run_dns_test.go
@@ -41,6 +41,13 @@ var _ = Describe("Podman run dns", func() {
session.LineInOuputStartsWith("search foobar.com")
})
+ It("podman run remove all search domain", func() {
+ session := podmanTest.Podman([]string{"run", "--dns-search=.", ALPINE, "cat", "/etc/resolv.conf"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.LineInOuputStartsWith("search")).To(BeFalse())
+ })
+
It("podman run add bad dns server", func() {
session := podmanTest.Podman([]string{"run", "--dns=foobar", ALPINE, "ls"})
session.WaitWithDefaultTimeout()