Test: fix kibana user role works in mixed cluster on older versions

The kibana user role in mixed cluster test expects a old cluster test to have run first that would
disable the kibana user, but that test is not executed on 5.1.1 and prior versions. This change
makes a update request an upsert to account for this.

relates elastic/x-pack-elasticsearch#1527

Original commit: elastic/x-pack-elasticsearch@df2945610e
This commit is contained in:
jaymode 2017-06-01 14:16:09 -06:00
parent e16787ae7b
commit ff6fa6790e
1 changed files with 3 additions and 9 deletions

View File

@ -12,12 +12,9 @@ setup:
type: "reserved-user"
id: "kibana"
refresh: true
body: >
{
"doc": {
"enabled": true
}
}
body:
doc: { enabled: true, password: "" }
doc_as_upsert : true
- do:
xpack.security.clear_cached_realms:
realms: "_all"
@ -40,9 +37,6 @@ teardown:
realms: "_all"
---
"Verify kibana user role works in mixed cluster":
- skip:
version: "5.0.0 - "
reason: https://github.com/elastic/x-pack-elasticsearch/issues/1527
- do:
headers:
Authorization: "Basic a2liYW5hOmNoYW5nZW1l"