From 79bd2e3623754d5ff9ac819f1391bce2209530ca Mon Sep 17 00:00:00 2001 From: Andrea Panattoni Date: Mon, 24 Jul 2023 17:30:42 +0200 Subject: [PATCH] e2e: Fix Validate ExcludeTopology field Signed-off-by: Andrea Panattoni --- test/conformance/tests/test_sriov_operator.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/conformance/tests/test_sriov_operator.go b/test/conformance/tests/test_sriov_operator.go index ed9377f92..0fbac1b89 100644 --- a/test/conformance/tests/test_sriov_operator.go +++ b/test/conformance/tests/test_sriov_operator.go @@ -1405,7 +1405,7 @@ var _ = Describe("[sriov] operator", func() { }, } - excludeTopologyTrueResourceXXX = &sriovv1.SriovNetworkNodePolicy{ + excludeTopologyFalseResourceXXX = &sriovv1.SriovNetworkNodePolicy{ ObjectMeta: metav1.ObjectMeta{ Name: "test-exclude-topology-false-res-xxx", Namespace: operatorNamespace, @@ -1416,7 +1416,7 @@ var _ = Describe("[sriov] operator", func() { ResourceName: "resourceXXX", NodeSelector: map[string]string{"kubernetes.io/hostname": node}, NicSelector: sriovv1.SriovNetworkNicSelector{ - PfNames: []string{intf.Name + "#0-4"}, + PfNames: []string{intf.Name + "#5-9"}, }, ExcludeTopology: false, }, @@ -1467,7 +1467,7 @@ var _ = Describe("[sriov] operator", func() { Expect(err).To(HaveOccurred()) Expect(err.Error()).To(ContainSubstring( - "excludeTopology[false] field conflicts with policy [test-exclude-topology-true].ExcludeTopology[true]" + + "excludeTopology[false] field conflicts with policy [test-exclude-topology-true-res-xxx].ExcludeTopology[true]" + " as they target the same resource[resourceXXX]")) }) })