Skip to content

Commit

Permalink
cnf-network: add multi-netpolicy tests for ipvlan cni
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaggapa committed Dec 22, 2024
1 parent ec23344 commit 0a058c5
Show file tree
Hide file tree
Showing 2 changed files with 590 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ var _ = Describe("Multi-NetworkPolicy : Bond CNI", Ordered, Label("bondcnioversr
Expect(err).ToNot(HaveOccurred(), "ingress rule configuration not generated")

_, err = networkpolicy.NewMultiNetworkPolicyBuilder(APIClient, "ingress-egress", "policy-ns1").
WithNetwork("policy-ns1/bond,policy-ns2/bond").
WithNetwork(fmt.Sprintf("%s/bond,%s/bond", testNs1, testNs2)).
WithPodSelector(metav1.LabelSelector{MatchLabels: map[string]string{"app": "pod1"}}).
WithPolicyType(multinetpolicyapiv1.PolicyTypeIngress).
WithPolicyType(multinetpolicyapiv1.PolicyTypeEgress).
Expand Down
Loading

0 comments on commit 0a058c5

Please sign in to comment.