Skip to content

Commit 12ab625

Browse files
authored
[Test] Randomly enable RemoteClusterServer when security is enabled (#94569)
The RCS remote cluster server feature requires security to be enabled since #94425. This PR ensures this requirement is met in the test. Relates: #94425
1 parent cbc73a7 commit 12ab625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/SecurityInfoTransportActionTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ public void testEnabled() {
9797
}
9898

9999
@SuppressWarnings("rawtypes")
100-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/94568")
101100
public void testUsage() throws Exception {
102101
final boolean explicitlyDisabled = randomBoolean();
103102
final boolean enabled = explicitlyDisabled == false;
@@ -114,7 +113,8 @@ public void testUsage() throws Exception {
114113
final boolean transportSSLEnabled = randomBoolean();
115114
settings.put("xpack.security.transport.ssl.enabled", transportSSLEnabled);
116115

117-
final boolean remoteClusterPortEnabled = randomBoolean();
116+
// Remote cluster server requires security to be enabled
117+
final boolean remoteClusterPortEnabled = explicitlyDisabled ? false : randomBoolean();
118118
settings.put("remote_cluster_server.enabled", remoteClusterPortEnabled);
119119
final boolean remoteClusterSslEnabled = randomBoolean();
120120
settings.put("xpack.security.remote_cluster_server.ssl.enabled", remoteClusterSslEnabled);

0 commit comments

Comments
 (0)