summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Basnight <mbasnight@gmail.com>2017-09-14 11:05:46 -0500
committerGitHub <noreply@github.com>2017-09-14 11:05:46 -0500
commite69c39a60f8dbac13313eba78097898840099131 (patch)
tree9a1c90abea66366c54d5f2cf319ebec86f6184ad
parent59600dfe2da47dc8a30bf2f601ff6ead72d3bc78 (diff)
Add missing catch arguments to the rest api spec (#26536)
-rw-r--r--rest-api-spec/src/main/resources/rest-api-spec/test/README.asciidoc17
1 files changed, 11 insertions, 6 deletions
diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/README.asciidoc b/rest-api-spec/src/main/resources/rest-api-spec/test/README.asciidoc
index db33513962..c822b665ae 100644
--- a/rest-api-spec/src/main/resources/rest-api-spec/test/README.asciidoc
+++ b/rest-api-spec/src/main/resources/rest-api-spec/test/README.asciidoc
@@ -163,12 +163,17 @@ be caught and tested. For instance:
The argument to `catch` can be any of:
[horizontal]
-`missing`:: a 404 response from ES
-`conflict`:: a 409 response from ES
-`request`:: a generic error response from ES
-`param`:: a client-side error indicating an unknown parameter has been passed
- to the method
-`/foo bar/`:: the text of the error message matches this regular expression
+`unauthorized`:: a 401 response from ES
+`forbidden`:: a 403 response from ES
+`missing`:: a 404 response from ES
+`request_timeout`:: a 408 response from ES
+`conflict`:: a 409 response from ES
+`request`:: a 4xx-5xx error response from ES, not equal to any named response
+ above
+`unavailable`:: a 503 response from ES
+`param`:: a client-side error indicating an unknown parameter has been passed
+ to the method
+`/foo bar/`:: the text of the error message matches this regular expression
If `catch` is specified, then the `response` var must be cleared, and the test
should fail if no error is thrown.