Skip to content

Commit 6755ccb

Browse files
committed
Remove javadocs
1 parent 109e38b commit 6755ccb

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,6 @@
3333
import static org.hamcrest.Matchers.not;
3434
import static org.hamcrest.Matchers.notNullValue;
3535

36-
/**
37-
* Integration test for verifying that slow log authentication context contains
38-
* the correct user information for cross-cluster access scenarios.
39-
*
40-
* This test verifies that when cross-cluster searches are performed, the slow logs
41-
* on the fulfilling cluster contain the authentication context of the ORIGINAL user
42-
* from the querying cluster, not just the cross-cluster access API key.
43-
*
44-
* The key verification is that slow logs should show:
45-
* - user.name: The actual user from the querying cluster (e.g., "slow_log_test_user")
46-
* - user.realm: The realm of the original user on the querying cluster (e.g., "default_native")
47-
* - For run-as: Both authenticating and effective users from querying cluster
48-
*/
4936
public class RemoteClusterSecuritySlowLogRestIT extends AbstractRemoteClusterSecurityTestCase {
5037

5138
private static final AtomicReference<Map<String, Object>> API_KEY_MAP_REF = new AtomicReference<>();
@@ -318,10 +305,6 @@ public void testRunAsUserInCrossClusterSlowLog() throws Exception {
318305
}
319306
}
320307

321-
/**
322-
* Verifies that the slow logs on the fulfilling cluster contain the expected
323-
* authentication context from the original user on the querying cluster.
324-
*/
325308
private void verifySlowLogAuthenticationContext(Map<String, Object> expectedAuthContext) throws Exception {
326309
assertBusy(() -> {
327310
try (var slowLog = fulfillingCluster.getNodeLog(0, LogType.SEARCH_SLOW)) {

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,10 +1312,6 @@ public void testAuthContextForSlowLog_LocalAccess_ApiKeyAuthentication() throws
13121312
assertFalse(authContext.containsKey("user.effective.realm"));
13131313
}
13141314

1315-
/**
1316-
* Tests getAuthContextForSlowLog for a Run-as authentication scenario.
1317-
* Covers a part of the 'else' branch where authentication is NOT cross-cluster.
1318-
*/
13191315
public void testAuthContextForSlowLog_LocalAccess_RunAsAuthentication() throws Exception {
13201316
createComponents(Settings.EMPTY);
13211317
AuthenticationContextSerializer serializer = new AuthenticationContextSerializer();
@@ -1380,10 +1376,6 @@ public void testAuthContextForSlowLog_LocalAccess_RunAsAuthentication() throws E
13801376

13811377
}
13821378

1383-
/**
1384-
* Tests getAuthContextForSlowLog for a Cross-Cluster Access scenario
1385-
* where the original user on the querying cluster authenticated via a Realm.
1386-
*/
13871379
public void testAuthContextForSlowLog_CCA_OriginalRealmUser() throws Exception {
13881380
createComponents(Settings.EMPTY);
13891381
AuthenticationContextSerializer serializer = new AuthenticationContextSerializer();
@@ -1429,10 +1421,6 @@ public void testAuthContextForSlowLog_CCA_OriginalRealmUser() throws Exception {
14291421
assertFalse(authContext.containsKey("apikey.name"));
14301422
}
14311423

1432-
/**
1433-
* Tests getAuthContextForSlowLog for a Cross-Cluster Access scenario
1434-
* where the original user on the querying cluster authenticated via an API Key.
1435-
*/
14361424
public void testAuthContextForSlowLog_CCA_OriginalApiKeyUser() throws Exception {
14371425
createComponents(Settings.EMPTY);
14381426
AuthenticationContextSerializer serializer = new AuthenticationContextSerializer();
@@ -1492,10 +1480,6 @@ public void testAuthContextForSlowLog_CCA_OriginalApiKeyUser() throws Exception
14921480
assertFalse(authContext.containsKey("user.effective.realm"));
14931481
}
14941482

1495-
/**
1496-
* Tests getAuthContextForSlowLog for a Cross-Cluster Access scenario
1497-
* where the original user on the querying cluster was a Run-As user.
1498-
*/
14991483
public void testAuthContextForSlowLog_CCA_OriginalRunAsUser() throws Exception {
15001484
createComponents(Settings.EMPTY);
15011485
AuthenticationContextSerializer serializer = new AuthenticationContextSerializer();

0 commit comments

Comments
 (0)