diff --git a/pkg/test/cel/backendtlspolicy_test.go b/pkg/test/cel/backendtlspolicy_test.go index 3c458a5f99..4fe6ef613e 100644 --- a/pkg/test/cel/backendtlspolicy_test.go +++ b/pkg/test/cel/backendtlspolicy_test.go @@ -68,7 +68,13 @@ func TestBackendTLSPolicyTargetRefs(t *testing.T) { LocalPolicyTargetReference: gatewayv1a2.LocalPolicyTargetReference{ Group: gatewayv1a2.Group(corev1.GroupName), Kind: gatewayv1a2.Kind("Service"), - Name: "example", + Name: "example2", + }, + }, { + LocalPolicyTargetReference: gatewayv1a2.LocalPolicyTargetReference{ + Group: gatewayv1a2.Group(corev1.GroupName), + Kind: gatewayv1a2.Kind("Service"), + Name: "example3", }, SectionName: ptrTo(gatewayv1a2.SectionName("foo")), }}, @@ -83,6 +89,13 @@ func TestBackendTLSPolicyTargetRefs(t *testing.T) { Name: "example", }, SectionName: ptrTo(gatewayv1a2.SectionName("foo")), + }, { + LocalPolicyTargetReference: gatewayv1a2.LocalPolicyTargetReference{ + Group: gatewayv1a2.Group(corev1.GroupName), + Kind: gatewayv1a2.Kind("Service"), + Name: "example", + }, + SectionName: ptrTo(gatewayv1a2.SectionName("bar")), }, { LocalPolicyTargetReference: gatewayv1a2.LocalPolicyTargetReference{ Group: gatewayv1a2.Group(corev1.GroupName), @@ -132,6 +145,13 @@ func TestBackendTLSPolicyTargetRefs(t *testing.T) { Name: "example", }, SectionName: ptrTo(gatewayv1a2.SectionName("bar")), + }, { + LocalPolicyTargetReference: gatewayv1a2.LocalPolicyTargetReference{ + Group: gatewayv1a2.Group(corev1.GroupName), + Kind: gatewayv1a2.Kind("Service"), + Name: "example", + }, + SectionName: ptrTo(gatewayv1a2.SectionName("jin")), }}, }, { @@ -151,6 +171,13 @@ func TestBackendTLSPolicyTargetRefs(t *testing.T) { Name: "example2", }, SectionName: ptrTo(gatewayv1a2.SectionName("foo")), + }, { + LocalPolicyTargetReference: gatewayv1a2.LocalPolicyTargetReference{ + Group: gatewayv1a2.Group(corev1.GroupName), + Kind: gatewayv1a2.Kind("Service"), + Name: "example3", + }, + SectionName: ptrTo(gatewayv1a2.SectionName("foo")), }}, }, {