Skip to content

Commit

Permalink
Network tests: ping redhat.com, not podman.io
Browse files Browse the repository at this point in the history
Much as we'd love to eat our dogfood, podman.io is not hosted
on reliable infrastructure; redhat.com is. Let's see if this
gets rid of CI flakes.

Closes: containers#17044

Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed Jan 10, 2023
1 parent 5b9e068 commit 37ade6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/e2e/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func (p *PodmanTestIntegration) RunContainerWithNetworkTest(mode string) *Podman
if mode != "" {
podmanArgs = append(podmanArgs, "--network", mode)
}
podmanArgs = append(podmanArgs, fedoraMinimal, "curl", "-k", "-o", "/dev/null", "http://www.podman.io:80")
podmanArgs = append(podmanArgs, fedoraMinimal, "curl", "-k", "-o", "/dev/null", "http://www.redhat.com:80")
session := p.Podman(podmanArgs)
return session
}
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/run_networking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var _ = Describe("Podman run networking", func() {
Expect(session.ErrorToString()).To(ContainSubstring("Could not resolve proxy:"))
} else {
Expect(session).Should(Exit(6))
Expect(session.ErrorToString()).To(ContainSubstring("Could not resolve host: www.podman.io"))
Expect(session.ErrorToString()).To(ContainSubstring("Could not resolve host: www.redhat.com"))
}
})

Expand Down Expand Up @@ -678,7 +678,7 @@ EXPOSE 2004-2005/tcp`, ALPINE)
Expect(delXXX).Should(Exit(0))
}()

session := podmanTest.Podman([]string{"run", "-dt", "--net", "ns:/run/netns/xxx", ALPINE, "wget", "www.podman.io"})
session := podmanTest.Podman([]string{"run", "-dt", "--net", "ns:/run/netns/xxx", ALPINE, "wget", "www.redhat.com"})
session.Wait(90)
Expect(session).Should(Exit(0))
})
Expand Down Expand Up @@ -861,7 +861,7 @@ EXPOSE 2004-2005/tcp`, ALPINE)
})

It("podman run network in bogus user created network namespace", func() {
session := podmanTest.Podman([]string{"run", "-dt", "--net", "ns:/run/netns/xxy", ALPINE, "wget", "www.podman.io"})
session := podmanTest.Podman([]string{"run", "-dt", "--net", "ns:/run/netns/xxy", ALPINE, "wget", "www.redhat.com"})
session.Wait(90)
Expect(session).To(ExitWithError())
Expect(session.ErrorToString()).To(ContainSubstring("stat /run/netns/xxy: no such file or directory"))
Expand Down

0 comments on commit 37ade6b

Please sign in to comment.