Fix test of API key creation in a mixed cluster (#59680)

RoleDescriptors are mandatory prior to v7.3

Relates: #59425
This commit is contained in:
Yang Wang 2020-07-16 12:44:17 +10:00 committed by GitHub
parent 4ad8bef33b
commit 067db1fc3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -2,15 +2,14 @@
"Test API key authentication will work in a mixed cluster": "Test API key authentication will work in a mixed cluster":
- skip: - skip:
version: " - 7.99.99"
reason: "https://github.com/elastic/elasticsearch/issues/59425"
features: headers features: headers
- do: - do:
security.create_api_key: security.create_api_key:
body: > body: >
{ {
"name": "api-key-in-mixed-cluster" "name": "api-key-in-mixed-cluster",
"role_descriptors": {}
} }
- match: { name: "api-key-in-mixed-cluster" } - match: { name: "api-key-in-mixed-cluster" }
- is_true: id - is_true: id