tests, Add skipNetworkPolicyRunningOnKindInfra for NetworkPolicy tests
Network policy tests doesnt work on Kind.
The tests were skipped before on all upstream lanes,
and now are supported on kubevirtci k8s providers only
(both single and dual stack).
See
for more info.
@@ -54,6 +54,7 @@ var _ = Describe("[rfe_id:150][crit:high][vendor:cnv-qe@redhat.com][level:compon
tests.PanicOnError(err)
tests.SkipIfUseFlannel(virtClient)
+ skipNetworkPolicyRunningOnKindInfra()
tests.BeforeTestCleanup()
// Create three vmis, vmia and vmib are in same namespace, vmic is in different namespace
vmia = tests.NewRandomVMIWithEphemeralDiskAndUserdata(cd.ContainerDiskFor(cd.ContainerDiskCirros), "#!/bin/bash\necho 'hello'\n")
@@ -208,3 +209,9 @@ var _ = Describe("[rfe_id:150][crit:high][vendor:cnv-qe@redhat.com][level:compon
})
})
+
+func skipNetworkPolicyRunningOnKindInfra() {
+ if tests.IsRunningOnKindInfra() {
+ Skip("Skip Network Policy tests till issue https://github.com/kubevirt/kubevirt/issues/4081 is fixed")
+ }
+}
