Skip to content

Commit a0343e4

Browse files
authored
Make password long enough for FIPS mode (#93450)
In FIPS mode, passwords require a minimal length. This PR adjusts a test to adhere to this. Fixes: #93449
1 parent 03f8ea5 commit a0343e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distribution/tools/server-cli/src/test/java/org/elasticsearch/server/cli/ServerCliTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,11 @@ public void testSecureSettingsLoaderChoice() throws Exception {
331331

332332
public void testSecureSettingsLoaderWithPassword() throws Exception {
333333
var loader = setupMockKeystoreLoader();
334-
assertKeystorePassword("aaa");
334+
assertKeystorePassword("aaaaaaaaaaaaaaaaaa");
335335
assertTrue(loader.loaded);
336336
assertTrue(loader.bootstrapped);
337337
// the password we read should match what we passed in
338-
assertEquals("aaa", loader.password);
338+
assertEquals("aaaaaaaaaaaaaaaaaa", loader.password);
339339
// after the command the secrets password is closed
340340
assertEquals(
341341
"SecureString has already been closed",

0 commit comments

Comments
 (0)