Disable ping tests on CI

As Azure and by extension Github Actions are not allowing to ping external domains,
we need to disable the ping tests for now.

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
This commit is contained in:
Yevhen Vydolob
2026-02-24 09:56:09 +02:00
committed by Christophe Fergeau
parent 35b65b6b66
commit 05d6cec095
+8 -5
View File
@@ -56,20 +56,23 @@ var _ = ginkgo.Describe("command-line format", func() {
var _ = ginkgo.Describe("ping with gvproxy", func() {
ginkgo.It("should succeed to ping a known domain", func() {
ginkgo.Skip("this test is not run in CI, because on Azure ICMP is blocked by default")
out, err := sshExec("ping -w2 crc.dev")
log.Infof("ping: %s", out)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
})
ginkgo.It("should succeed to ping a known IP", func() {
ginkgo.Skip("this test is not run in CI, because on Azure ICMP is blocked by default")
out, err := sshExec("ping -w2 1.1.1.1")
log.Infof("ping: %s", out)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
})
ginkgo.It("should fail to ping an unknown domain", func() {
out, err := sshExec("ping -w2 unknown.crc.dev")
log.Infof("ping: %s", out)
gomega.Expect(err).To(gomega.HaveOccurred())
})
ginkgo.It("should succeed to ping a known IP", func() {
out, err := sshExec("ping -w2 1.1.1.1")
log.Infof("ping: %s", out)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
})
ginkgo.It("should fail to ping an unknown IP", func() {
out, err := sshExec("ping -w2 7.7.7.7")
log.Infof("ping: %s", out)