-
-
Notifications
You must be signed in to change notification settings - Fork 749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to exit http probe and fail build when any http probe fails #708
Comments
the new |
Any kind of server response regardless of the http status code is considered to be a success. This is because the goal is to exercise the server app logic. In some cases, the http error codes are used to try different request parameters combinations. This happens with the openAPI spec based requests... mostly with POSTs. |
Gotcha that makes sense, thanks for the response |
It is possible to have a flag to fail on 5xx status codes. |
If you believe it is appropriate to fit such a flag within your current framework I would definitely make use of it. There are some cases with the http probes I am setting up where I would like our deployment to fail if some unbound / unhandled exception occurred so that a possibly faulty image is not deployed. |
|
A new CLI argument and / or environment variable (or modification of --http-probe-exit-on-failure / DSLIM_HTTP_PROBE_EXIT_ON_FAILURE) that allows the build to fail when any single http probe fails.
Current behavior is to fail when every http probe fails i.e. when the following condition is true:
Would instead want something like
The text was updated successfully, but these errors were encountered: