[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:
Honza Král 2016-03-22 20:58:41 +01:00
parent c2ba4448b0
commit b139f4e0bf
3 changed files with 30 additions and 26 deletions

View File

@ -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":

View File

@ -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+$/

View File

@ -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() {