Skip to content

Commit 0fd0cc2

Browse files
E2E: add some checks for errors or expected IPs
Aids debuggings. Signed-off-by: Martin Kennelly <[email protected]>
1 parent e32620a commit 0fd0cc2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/e2e/egressqos.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ var _ = ginkgo.Describe("e2e EgressQoS validation", func() {
9797
_, err := createPod(f, srcPodName, srcNode, f.Namespace.Name, []string{}, map[string]string{"app": "test"})
9898
framework.ExpectNoError(err)
9999
}
100+
if dst1IP == nil || *dst1IP == "" {
101+
ginkgo.Skip("destination IP is not available from target. IP family may not be available")
102+
}
100103

101104
egressQoSConfig := fmt.Sprintf(`
102105
apiVersion: k8s.ovn.org/v1
@@ -174,6 +177,9 @@ spec:
174177
ginkgo.DescribeTable("Should validate correct DSCP value on pod labels changes",
175178
func(tcpDumpTpl string, dst1IP *string, prefix1 string, dst2IP *string, prefix2 string) {
176179
dscpValue := 50
180+
if *dst1IP == "" || *dst2IP == "" {
181+
ginkgo.Skip("destination IP(s) are not available")
182+
}
177183

178184
// create without labels, no packets should be marked
179185
pod, err := createPod(f, srcPodName, srcNode, f.Namespace.Name, []string{}, nil)

test/e2e/network_segmentation.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ var _ = Describe("Network Segmentation", func() {
445445
"2",
446446
"--insecure",
447447
"https://kubernetes.default/healthz")
448+
if err != nil {
449+
framework.Logf("connecting to kapi service failed: %v", err)
450+
}
448451
return err == nil
449452
}, 5*time.Second).Should(BeTrue())
450453
By("asserting UDN pod can't reach host via default network interface")

0 commit comments

Comments
 (0)