[TEST] Move yaml test requiring yaml, add skip:yaml
Clients don't ship with yaml (de)serializer by default so this test must be optionally skipped
This commit is contained in:
parent
c2ba4448b0
commit
b139f4e0bf
|
@ -49,31 +49,6 @@
|
||||||
- \s+
|
- \s+
|
||||||
$/
|
$/
|
||||||
|
|
||||||
---
|
|
||||||
"Simple alias with yaml body through format argument":
|
|
||||||
|
|
||||||
- do:
|
|
||||||
indices.create:
|
|
||||||
index: test
|
|
||||||
|
|
||||||
- do:
|
|
||||||
indices.put_alias:
|
|
||||||
index: test
|
|
||||||
name: test_alias
|
|
||||||
|
|
||||||
- do:
|
|
||||||
cat.aliases:
|
|
||||||
format: yaml
|
|
||||||
|
|
||||||
- match:
|
|
||||||
$body: |
|
|
||||||
/^---\n
|
|
||||||
-\s+alias:\s+"test_alias"\s+
|
|
||||||
index:\s+"test"\s+
|
|
||||||
filter:\s+"-"\s+
|
|
||||||
routing.index:\s+"-"\s+
|
|
||||||
routing.search:\s+"-"\s+$/
|
|
||||||
|
|
||||||
---
|
---
|
||||||
"Complex alias":
|
"Complex alias":
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
"Simple alias with yaml body through format argument":
|
||||||
|
|
||||||
|
- skip:
|
||||||
|
features: yaml
|
||||||
|
|
||||||
|
- do:
|
||||||
|
indices.create:
|
||||||
|
index: test
|
||||||
|
|
||||||
|
- do:
|
||||||
|
indices.put_alias:
|
||||||
|
index: test
|
||||||
|
name: test_alias
|
||||||
|
|
||||||
|
- do:
|
||||||
|
cat.aliases:
|
||||||
|
format: yaml
|
||||||
|
|
||||||
|
- match:
|
||||||
|
$body: |
|
||||||
|
/^---\n
|
||||||
|
-\s+alias:\s+"test_alias"\s+
|
||||||
|
index:\s+"test"\s+
|
||||||
|
filter:\s+"-"\s+
|
||||||
|
routing.index:\s+"-"\s+
|
||||||
|
routing.search:\s+"-"\s+$/
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
public final class Features {
|
public final class Features {
|
||||||
|
|
||||||
private static final List<String> SUPPORTED = Arrays.asList("stash_in_path", "groovy_scripting", "headers");
|
private static final List<String> SUPPORTED = Arrays.asList("stash_in_path", "groovy_scripting", "headers", "yaml");
|
||||||
|
|
||||||
private Features() {
|
private Features() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue