Skip to content

Commit ea11ed1

Browse files
cleanup after refactoring
1 parent 667710d commit ea11ed1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authc/AuthenticationSerializationTests.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,7 @@ public void testWriteToWithCrossClusterAccessThrowsOnUnsupportedVersion() throws
117117

118118
public void testWriteToAndReadFromWithCloudApiKeyAuthentication() throws Exception {
119119
final Authentication authentication = Authentication.newCloudApiKeyAuthentication(
120-
AuthenticationResult.success(
121-
new User(randomAlphanumericOfLength(5), "superuser"),
122-
Map.of(AuthenticationField.API_KEY_ID_KEY, "test-api-key-id")
123-
),
120+
AuthenticationResult.success(new User(randomAlphanumericOfLength(5), "superuser"), Map.of()),
124121
randomAlphanumericOfLength(10)
125122
);
126123

@@ -137,10 +134,7 @@ public void testWriteToAndReadFromWithCloudApiKeyAuthentication() throws Excepti
137134

138135
public void testWriteToWithCloudApiKeyThrowsOnUnsupportedVersion() {
139136
final Authentication authentication = Authentication.newCloudApiKeyAuthentication(
140-
AuthenticationResult.success(
141-
new User(randomAlphanumericOfLength(5), "superuser"),
142-
Map.of(AuthenticationField.API_KEY_ID_KEY, "test-api-key-id")
143-
),
137+
AuthenticationResult.success(new User(randomAlphanumericOfLength(5), "superuser"), Map.of()),
144138
randomAlphanumericOfLength(10)
145139
);
146140

0 commit comments

Comments
 (0)