diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-02-24 09:24:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 09:24:20 -0500 |
commit | 4846f877b83ea55b1d70155fd668c79a4a0f88f4 (patch) | |
tree | fb52b6435e12e46f2d7a087dd3273d1f62b1084d /test/e2e | |
parent | 49fa19dff6717e419ebbaba029e84cbc5bd97904 (diff) | |
parent | 90050671b71cd4629b27809055bd562ab76c4460 (diff) | |
download | podman-4846f877b83ea55b1d70155fd668c79a4a0f88f4.tar.gz podman-4846f877b83ea55b1d70155fd668c79a4a0f88f4.tar.bz2 podman-4846f877b83ea55b1d70155fd668c79a4a0f88f4.zip |
Merge pull request #9501 from Luap99/dns-search-cni
Add dns search domains from cni response to resolv.conf
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/run_networking_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/run_networking_test.go b/test/e2e/run_networking_test.go index a6237a49a..0e6e636bc 100644 --- a/test/e2e/run_networking_test.go +++ b/test/e2e/run_networking_test.go @@ -766,4 +766,18 @@ var _ = Describe("Podman run networking", func() { session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(BeZero()) }) + + It("podman run check dnsname adds dns search domain", func() { + Skip("needs dnsname#57") + net := "dnsname" + stringid.GenerateNonCryptoID() + session := podmanTest.Podman([]string{"network", "create", net}) + session.WaitWithDefaultTimeout() + defer podmanTest.removeCNINetwork(net) + Expect(session.ExitCode()).To(BeZero()) + + session = podmanTest.Podman([]string{"run", "--network", net, ALPINE, "cat", "/etc/resolv.conf"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(BeZero()) + Expect(session.OutputToString()).To(ContainSubstring("search dns.podman")) + }) }) |