REST tests - add feature groovy_scripting to skip tests if groovy not enabled

This commit is contained in:
Clinton Gormley 2015-02-12 18:07:42 +01:00
parent 36758ce81b
commit 93fe4495ae
5 changed files with 18 additions and 2 deletions

View File

@ -1,6 +1,9 @@
---
"Indexed script":
- skip:
features: groovy_scripting
- do:
put_script:
id: "1"

View File

@ -1,6 +1,10 @@
---
"External version":
- skip:
features: groovy_scripting
- do:
put_script:
lang: groovy

View File

@ -1,6 +1,9 @@
---
"Script":
- skip:
features: groovy_scripting
- do:
index:
index: test_1

View File

@ -1,6 +1,9 @@
---
"Script upsert":
- skip:
features: groovy_scripting
- do:
update:
index: test_1
@ -37,7 +40,7 @@
id: 1
- match: { _source.foo: xxx }
- do:
update:
index: test_1
@ -57,4 +60,4 @@
- match: { _source.foo: xxx }

View File

@ -20,6 +20,9 @@
---
"Missing document (script)":
- skip:
features: groovy_scripting
- do:
catch: missing