Skip to content

Commit d7517d0

Browse files
committed
wip
1 parent 6192cb2 commit d7517d0

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

x-pack/qa/rolling-upgrade/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ BuildParams.bwcVersions.withWireCompatiple { bwcVersion, baseName ->
6666
if (bwcVersion.onOrAfter('6.6.0')) {
6767
setting 'ccr.auto_follow.wait_for_metadata_timeout', '1s'
6868
}
69+
if (bwcVersion.onOrAfter('7.11.0')) {
70+
extraConfigFile 'operator_users.yml', file("${project.projectDir}/src/test/resources/operator_users.yml")
71+
// setting 'xpack.security.operator_privileges.enabled', "true"
72+
user username: "non_operator", password: 'x-pack-test-password', role: "superuser"
73+
}
6974

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
operator:
2+
- usernames: ["test_user"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
"Test operator pivileges will work in the mixed cluster":
3+
4+
- skip:
5+
features: headers
6+
version: " - 7.10.99"
7+
reason: "operator privileges are available since 7.11"
8+
9+
- do:
10+
cluster.delete_voting_config_exclusions: { }
11+
12+
# - do:
13+
# catch: forbidden
14+
# headers: # the non_operator user
15+
# Authorization: Basic bm9uX29wZXJhdG9yOngtcGFjay10ZXN0LXBhc3N3b3Jk
16+
# cluster.delete_voting_config_exclusions: { }
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
"Test operator pivileges will work in the old cluster":
3+
4+
- skip:
5+
features: headers
6+
version: " - 7.10.99"
7+
reason: "operator privileges are available since 7.11"
8+
9+
- do:
10+
cluster.delete_voting_config_exclusions: { }
11+
#
12+
# - do:
13+
# catch: forbidden
14+
# headers: # the non_operator user
15+
# Authorization: Basic bm9uX29wZXJhdG9yOngtcGFjay10ZXN0LXBhc3N3b3Jk
16+
# cluster.delete_voting_config_exclusions: {}
17+

0 commit comments

Comments
 (0)