diff --git a/x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityBwcRestIT.java b/x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityBwcRestIT.java index cbf735c66462c..17acd258ed34b 100644 --- a/x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityBwcRestIT.java +++ b/x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityBwcRestIT.java @@ -113,6 +113,12 @@ public void testBwcWithLegacyCrossClusterSearch() throws Exception { "privileges": ["read", "read_cross_cluster"], "clusters": ["my_remote_cluster"] } + ], + "remote_cluster": [ + { + "privileges": ["monitor_enrich"], + "clusters": ["*"] + } ] }"""); assertOK(adminClient().performRequest(putRoleRequest)); @@ -157,6 +163,12 @@ public void testBwcWithLegacyCrossClusterSearch() throws Exception { "privileges": ["read", "read_cross_cluster"], "clusters": ["my_remote_*", "non_existing_remote_cluster"] } + ], + "remote_cluster": [ + { + "privileges": ["monitor_enrich"], + "clusters": ["*"] + } ] } }