Skip to content

Commit

Permalink
[TEST] Added the skip configuration for warnings check in the "In…
Browse files Browse the repository at this point in the history
…dices Analyze" tests

As part of b6537d7, a check for the `Warnings` headers
has been added. Since the feature might be temporarily or permanently not supported by all clients
(as is the case with eg. the `headers` feature), we should allow them to skip the tests.

Related: #20246, #20686

Closes #20953
  • Loading branch information
karmi committed Oct 18, 2016
1 parent 5fdb8b2 commit 9a08e5d
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -6,6 +6,8 @@ setup:

---
"Basic test":
- skip:
features: ["warnings"]
- do:
warnings:
- text request parameter is deprecated and will be removed in the next major release. Please use the JSON in the request body instead request param
Expand All @@ -17,6 +19,8 @@ setup:

---
"Tokenizer and filter":
- skip:
features: ["warnings"]
- do:
warnings:
- filter request parameter is deprecated and will be removed in the next major release. Please use the JSON in the request body instead request param
Expand All @@ -31,6 +35,8 @@ setup:

---
"Index and field":
- skip:
features: ["warnings"]
- do:
indices.create:
index: test
Expand Down Expand Up @@ -62,6 +68,8 @@ setup:
- match: { tokens.0.token: foo bar }
---
"Body params override query string":
- skip:
features: ["warnings"]
- do:
warnings:
- text request parameter is deprecated and will be removed in the next major release. Please use the JSON in the request body instead request param
Expand Down

0 comments on commit 9a08e5d

Please sign in to comment.