[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:
parent
6d535043f8
commit
67706a9a19
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue