Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ywangd committed Oct 19, 2021
1 parent 6192cb2 commit d7517d0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x-pack/qa/rolling-upgrade/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ BuildParams.bwcVersions.withWireCompatiple { bwcVersion, baseName ->
if (bwcVersion.onOrAfter('6.6.0')) {
setting 'ccr.auto_follow.wait_for_metadata_timeout', '1s'
}
if (bwcVersion.onOrAfter('7.11.0')) {
extraConfigFile 'operator_users.yml', file("${project.projectDir}/src/test/resources/operator_users.yml")
// setting 'xpack.security.operator_privileges.enabled', "true"
user username: "non_operator", password: 'x-pack-test-password', role: "superuser"
}

user username: "test_user", password: "x-pack-test-password"

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
operator:
- usernames: ["test_user"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"Test operator pivileges will work in the mixed cluster":

- skip:
features: headers
version: " - 7.10.99"
reason: "operator privileges are available since 7.11"

- do:
cluster.delete_voting_config_exclusions: { }

# - do:
# catch: forbidden
# headers: # the non_operator user
# Authorization: Basic bm9uX29wZXJhdG9yOngtcGFjay10ZXN0LXBhc3N3b3Jk
# cluster.delete_voting_config_exclusions: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"Test operator pivileges will work in the old cluster":

- skip:
features: headers
version: " - 7.10.99"
reason: "operator privileges are available since 7.11"

- do:
cluster.delete_voting_config_exclusions: { }
#
# - do:
# catch: forbidden
# headers: # the non_operator user
# Authorization: Basic bm9uX29wZXJhdG9yOngtcGFjay10ZXN0LXBhc3N3b3Jk
# cluster.delete_voting_config_exclusions: {}

0 comments on commit d7517d0

Please sign in to comment.