Skip to content

Commit ada29c7

Browse files
committed
Functional test logging/startup fixes
Enable debug logging for agent by default in our tests. Also fixed a potential startup ready check where the cert-generator job didn't meet the proper condition.
1 parent 7899925 commit ada29c7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/framework/resourcemanager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ func (rm *ResourceManager) WaitForPodsToBeReady(
488488
var podsReady int
489489
for _, pod := range podList.Items {
490490
for _, cond := range pod.Status.Conditions {
491-
if cond.Type == core.PodReady && cond.Status == core.ConditionTrue {
491+
if cond.Type == core.PodReady && (cond.Status == core.ConditionTrue || cond.Reason == "PodCompleted") {
492492
podsReady++
493493
}
494494
}

tests/suite/system_suite_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ func createNGFInstallConfig(cfg setupConfig, extraInstallArgs ...string) framewo
257257
extraInstallArgs = append(
258258
extraInstallArgs,
259259
"--set", "nginxGateway.config.logging.level=debug",
260+
"--set", "nginx.config.logging.agentLevel=debug",
260261
)
261262
}
262263

0 commit comments

Comments
 (0)