[TEST] Move yaml test requiring header, add skip:headers

This commit is contained in:
Honza Král 2016-03-22 20:07:01 +01:00
parent 866a350599
commit ca4b8667bb
2 changed files with 28 additions and 25 deletions

View File

@ -50,31 +50,6 @@
$/ $/
--- ---
"Simple alias with yaml body through Accept header":
- do:
indices.create:
index: test
- do:
indices.put_alias:
index: test
name: test_alias
- do:
cat.aliases: {}
headers:
Accept: application/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+$/
---
"Simple alias with yaml body through format argument": "Simple alias with yaml body through format argument":
- do: - do:

View File

@ -0,0 +1,28 @@
---
"Simple alias with yaml body through Accept header":
- skip:
features: headers
- do:
indices.create:
index: test
- do:
indices.put_alias:
index: test
name: test_alias
- do:
cat.aliases: {}
headers:
Accept: application/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+$/