Simplify HTTP response assertions in tests #1992
Labels
backlog
Currently unprioritized work. May change with user feedback or as the product progresses.
good first issue
Good for newcomers
tech-debt
Short-term pain, long-term benefit
tests
Pull requests that update tests
In our tests, we often inspect the response of an HTTP request.
Example 1
https://github.com/nginxinc/nginx-gateway-fabric/blob/2cd63e7e82729bdccda445f44db2f8eaec00ba38/tests/suite/graceful_recovery_test.go#L220
Example 2
https://github.com/nginxinc/nginx-gateway-fabric/blob/2cd63e7e82729bdccda445f44db2f8eaec00ba38/tests/scale/scale_test.go#L250
Gomega provides matches for HTTP response -- https://onsi.github.io/gomega/#working-with-http-responses
Acceptance criteria:
The text was updated successfully, but these errors were encountered: