Skip to content

Commit 7c06a15

Browse files
author
VikramBedi
committed
fix access log policy test
1 parent 64766a5 commit 7c06a15

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

test/suites/integration/access_log_policy_test.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,21 +1471,6 @@ var _ = Describe("Access Log Policy", Ordered, func() {
14711471
g.Expect(alp.Status.Conditions[0].Type).To(BeEquivalentTo(string(gwv1alpha2.PolicyConditionAccepted)))
14721472
g.Expect(alp.Status.Conditions[0].Status).To(BeEquivalentTo(metav1.ConditionFalse))
14731473
g.Expect(alp.Status.Conditions[0].Reason).To(BeEquivalentTo(string(gwv1alpha2.PolicyReasonInvalid)))
1474-
1475-
events := &corev1.EventList{}
1476-
err = testFramework.List(ctx, events, client.InNamespace(k8snamespace))
1477-
g.Expect(err).To(BeNil())
1478-
1479-
foundValidationError := false
1480-
for _, event := range events.Items {
1481-
if event.InvolvedObject.Name == accessLogPolicy.Name &&
1482-
event.Reason == "FailedReconcile" &&
1483-
strings.Contains(event.Message, "invalid service name override") {
1484-
foundValidationError = true
1485-
break
1486-
}
1487-
}
1488-
g.Expect(foundValidationError).To(BeTrue(), "Expected FailedReconcile event with service name validation error")
14891474
}).Should(Succeed())
14901475

14911476
err := testFramework.Get(ctx, client.ObjectKeyFromObject(accessLogPolicy), accessLogPolicy)

0 commit comments

Comments
 (0)