Skip to content

Commit 671cf70

Browse files
committed
Test fixes
1 parent 125e808 commit 671cf70

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityEsqlIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ public void testCrossClusterQueryWithOnlyRemotePrivs() throws Exception {
702702
error.getMessage(),
703703
containsString(
704704
"action [indices:data/read/esql] is unauthorized for user [remote_search_user] with effective roles [remote_search], "
705-
+ "this action is granted by the index privileges [read,read_cross_cluster,all]"
705+
+ "this action is granted by the index privileges [read,read_failure_store,read_cross_cluster,all]"
706706
)
707707
);
708708

@@ -718,7 +718,7 @@ public void testCrossClusterQueryWithOnlyRemotePrivs() throws Exception {
718718
error.getMessage(),
719719
containsString(
720720
"action [indices:data/read/esql] is unauthorized for user [remote_search_user] with effective roles "
721-
+ "[remote_search], this action is granted by the index privileges [read,read_cross_cluster,all]"
721+
+ "[remote_search], this action is granted by the index privileges [read,read_failure_store,read_cross_cluster,all]"
722722
)
723723
);
724724

@@ -733,7 +733,7 @@ public void testCrossClusterQueryWithOnlyRemotePrivs() throws Exception {
733733
error.getMessage(),
734734
containsString(
735735
"action [indices:data/read/esql] is unauthorized for user [remote_search_user] with effective roles "
736-
+ "[remote_search], this action is granted by the index privileges [read,read_cross_cluster,all]"
736+
+ "[remote_search], this action is granted by the index privileges [read,read_failure_store,read_cross_cluster,all]"
737737
)
738738
);
739739
}

x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityFcActionAuthorizationIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public void testUpdateCrossClusterApiKey() throws Exception {
435435
+ "for user [foo] with assigned roles [role] authenticated by API key id ["
436436
+ apiKeyId
437437
+ "] of user [test_user] on indices [index], this action is granted by the index privileges "
438-
+ "[view_index_metadata,manage,read,all]"
438+
+ "[view_index_metadata,manage,manage_failure_store_internal,read,read_failure_store,all]"
439439
)
440440
);
441441

@@ -483,7 +483,7 @@ public void testUpdateCrossClusterApiKey() throws Exception {
483483
+ "for user [foo] with assigned roles [role] authenticated by API key id ["
484484
+ apiKeyId
485485
+ "] of user [test_user] on indices [index], this action is granted by the index privileges "
486-
+ "[view_index_metadata,manage,read,all]"
486+
+ "[view_index_metadata,manage,manage_failure_store_internal,read,read_failure_store,all]"
487487
)
488488
);
489489
}

x-pack/plugin/security/qa/security-trial/src/javaRestTest/java/org/elasticsearch/xpack/security/apikey/ApiKeyWorkflowsRestrictionRestIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public void testWorkflowsRestrictionAllowsAccess() throws IOException {
187187
+ apiKeyId
188188
+ "] of user ["
189189
+ WORKFLOW_API_KEY_USER
190-
+ "] on indices [my-app-b], this action is granted by the index privileges [read,all]"
190+
+ "] on indices [my-app-b], this action is granted by the index privileges [read,read_failure_store,all]"
191191
)
192192
);
193193
assertThat(e.getMessage(), not(containsString("access restricted by workflow")));

0 commit comments

Comments
 (0)