mirror of
https://github.com/containers/podman.git
synced 2025-11-30 10:07:33 +08:00
Merge pull request #26148 from Luap99/test-dns
test/e2e: do not check dns.podman
This commit is contained in:
@@ -1174,19 +1174,6 @@ EXPOSE 2004-2005/tcp`, ALPINE)
|
|||||||
Expect(session).Should(ExitCleanly())
|
Expect(session).Should(ExitCleanly())
|
||||||
})
|
})
|
||||||
|
|
||||||
It("podman network adds dns search domain with dns", func() {
|
|
||||||
net := createNetworkName("dnsname")
|
|
||||||
session := podmanTest.Podman([]string{"network", "create", net})
|
|
||||||
session.WaitWithDefaultTimeout()
|
|
||||||
defer podmanTest.removeNetwork(net)
|
|
||||||
Expect(session).Should(ExitCleanly())
|
|
||||||
|
|
||||||
session = podmanTest.Podman([]string{"run", "--network", net, ALPINE, "cat", "/etc/resolv.conf"})
|
|
||||||
session.WaitWithDefaultTimeout()
|
|
||||||
Expect(session).Should(ExitCleanly())
|
|
||||||
Expect(session.OutputToString()).To(ContainSubstring("search dns.podman"))
|
|
||||||
})
|
|
||||||
|
|
||||||
It("Rootless podman run with --net=bridge works and connects to default network", func() {
|
It("Rootless podman run with --net=bridge works and connects to default network", func() {
|
||||||
// This is harmless when run as root, so we'll just let it run.
|
// This is harmless when run as root, so we'll just let it run.
|
||||||
ctrName := "testctr"
|
ctrName := "testctr"
|
||||||
|
|||||||
Reference in New Issue
Block a user