[TEST] Move yaml test requiring header, add skip:headers
This commit is contained in:
parent
866a350599
commit
ca4b8667bb
|
@ -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":
|
||||
|
||||
- do:
|
||||
|
|
|
@ -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+$/
|
||||
|
Loading…
Reference in New Issue