[SECURITY] Changed the setup/teardown YAML structure in the integration test for roles

Related: 176fd6a

Original commit: elastic/x-pack-elasticsearch@90e210dbc2
This commit is contained in:
Karel Minarik 2016-06-30 11:22:38 +02:00 committed by jaymode
parent 6d535043f8
commit 67706a9a19
1 changed files with 24 additions and 23 deletions

View File

@ -1,31 +1,32 @@
---
setup:
- do:
cluster.health:
wait_for_status: yellow
teardown:
- do:
xpack.security.delete_role:
name: "admin_role2"
ignore: 404
- do:
xpack.security.delete_user:
username: "joe"
ignore: 404
- do:
delete:
index: foo
type: doc
id: 1
ignore: 404
---
"Test put role api using as array of index names":
- skip:
features: headers
- setup:
- do:
cluster.health:
wait_for_status: yellow
- teardown:
- do:
xpack.security.delete_role:
name: "admin_role2"
ignore: 404
- do:
xpack.security.delete_user:
username: "joe"
ignore: 404
- do:
delete:
index: foo
type: doc
id: 1
ignore: 404
- do:
xpack.security.put_role:
name: "admin_role2"