summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2021-08-04 15:34:58 +0000
committerGitHub <noreply@github.com>2021-08-04 15:34:58 +0000
commit6ff19643007303a35fcc0f7b7aa611ffcc1c5d5c (patch)
tree23b2e1178dccb6c138834e6ffab89848692e0b1d /test/e2e
parent8aa869e6288997f01ddb7b8daf78e0edb653fc13 (diff)
parentcfcd1e1863ad4fb31476364bde64a70dc1f1196c (diff)
downloadpodman-6ff19643007303a35fcc0f7b7aa611ffcc1c5d5c.tar.gz
podman-6ff19643007303a35fcc0f7b7aa611ffcc1c5d5c.tar.bz2
podman-6ff19643007303a35fcc0f7b7aa611ffcc1c5d5c.zip
Merge pull request #11118 from mheon/use_host_resolveconf
Do not add an entry to /etc/hosts with `--net=host`
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_networking_test.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/e2e/run_networking_test.go b/test/e2e/run_networking_test.go
index 80a82ea05..92388b099 100644
--- a/test/e2e/run_networking_test.go
+++ b/test/e2e/run_networking_test.go
@@ -685,13 +685,6 @@ var _ = Describe("Podman run networking", func() {
Expect(podrm).Should(Exit(0))
})
- It("podman run net=host adds entry to /etc/hosts", func() {
- run := podmanTest.Podman([]string{"run", "--net=host", ALPINE, "cat", "/etc/hosts"})
- run.WaitWithDefaultTimeout()
- Expect(run).Should(Exit(0))
- Expect(strings.Contains(run.OutputToString(), "127.0.1.1")).To(BeTrue())
- })
-
It("podman run with --net=host and --hostname sets correct hostname", func() {
hostname := "testctr"
run := podmanTest.Podman([]string{"run", "--net=host", "--hostname", hostname, ALPINE, "hostname"})
@@ -731,10 +724,6 @@ var _ = Describe("Podman run networking", func() {
ping_test("--net=none")
})
- It("podman attempt to ping container name and hostname --net=host", func() {
- ping_test("--net=host")
- })
-
It("podman attempt to ping container name and hostname --net=private", func() {
ping_test("--net=private")
})