Skip to content

Commit

Permalink
Increase number of targetRefs in BackenTLSPolicy CEL tests
Browse files Browse the repository at this point in the history
Signed-off-by: Norwin Schnyder <[email protected]>
  • Loading branch information
snorwin committed Dec 12, 2024
1 parent 37da93e commit aea4b95
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion pkg/test/cel/backendtlspolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
}},
Expand All @@ -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),
Expand Down Expand Up @@ -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")),
}},
},
{
Expand All @@ -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")),
}},
},
{
Expand Down

0 comments on commit aea4b95

Please sign in to comment.