Skip to content

Commit

Permalink
Add expected error
Browse files Browse the repository at this point in the history
  • Loading branch information
sjberman committed Nov 12, 2024
1 parent a22f793 commit a0126a6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/suite/graceful_recovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,16 @@ func checkContainerLogsForErrors(ngfPodName string, checkNginxLogsOnly bool) {
if strings.Contains(line, "[error]") {
expectedError1 := "connect() failed (111: Connection refused)"
expectedError2 := "product.connect.nginx.com could not be resolved"
expectedError3 := "server returned 429"
// FIXME(salonichf5) remove this error message check
// when https://github.com/nginxinc/nginx-gateway-fabric/issues/2090 is completed.
expectedError3 := "no live upstreams while connecting to upstream"
expectedError4 := "no live upstreams while connecting to upstream"
Expect(line).To(Or(
ContainSubstring(expectedError1), ContainSubstring(expectedError2), ContainSubstring(expectedError3)))
ContainSubstring(expectedError1),
ContainSubstring(expectedError2),
ContainSubstring(expectedError3),
ContainSubstring(expectedError4),
))
}
}

Expand Down

0 comments on commit a0126a6

Please sign in to comment.