You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e2e: Improve detection of missing DNSRecord for Gateway
- Add more logs to the logic of DNSRecord ensuring to see when DNSRecord is
updated or left untouched.
- Add more logs to the logic of generation of desired DNSRecord to see
why Gateway service is not taken.
- Add more logs to Gateway service enqueue logic to see when reconciling
hits or does not hit.
- Ensure the `Programmed` condition is checked on the Gateway resource
in the e2e test.
Copy file name to clipboardExpand all lines: test/e2e/util_gatewayapi_test.go
+26-10Lines changed: 26 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -547,10 +547,11 @@ func assertGatewayClassSuccessful(t *testing.T, name string) (*gatewayapiv1.Gate
547
547
returnfalse, nil
548
548
})
549
549
iferr!=nil {
550
+
t.Logf("[%s] Last observed gatewayclass:\n%s", time.Now().Format(time.DateTime), util.ToYaml(gwc))
550
551
returnnil, fmt.Errorf("gatewayclass %s is not %v; last recorded status message: %s", name, gatewayapiv1.GatewayClassConditionStatusAccepted, recordedConditionMsg)
551
552
}
552
553
553
-
t.Logf("Observed that gatewayclass %s has been accepted: %+v", name, gwc.Status)
554
+
t.Logf("[%s] Observed that gatewayclass %s has been accepted: %+v", time.Now().Format(time.DateTime), name, gwc.Status)
returnnil, fmt.Errorf("gateway %v not %v, last recorded status message: %s", nsName, gatewayapiv1.GatewayConditionAccepted, recordedConditionMsg)
600
+
t.Logf("[%s] Last observed gateway:\n%s", time.Now().Format(time.DateTime), util.ToYaml(gw))
601
+
returnnil, fmt.Errorf("gateway %v does not have all expected conditions, last recorded status messages: %q, %q", nsName, recordedAcceptedConditionMsg, recordedProgrammedConditionMsg)
586
602
}
587
603
588
604
t.Logf("Observed that gateway %v has been accepted: %+v", nsName, gw.Status)
0 commit comments