Skip to content

Commit dad3396

Browse files
authored
[Test] increase password length when in FIPS mode for SamlAuthIT (#66976) (#66980)
The native user password must be longer than 14 chars when JVM is in FIPS mode.
1 parent 4e7dd71 commit dad3396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/qa/saml-idp-tests/src/test/java/org/elasticsearch/xpack/security/authc/saml/SamlAuthenticationIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public void setupNativeUser() throws IOException {
134134
final Map<String, Object> body = MapBuilder.<String, Object>newMapBuilder()
135135
.put("roles", Collections.singletonList("kibana_admin"))
136136
.put("full_name", "Thor Son of Odin")
137-
.put("password", randomAlphaOfLengthBetween(8, 16))
137+
.put("password", randomAlphaOfLengthBetween(inFipsJvm() ? 14 : 8, 16))
138138
.put("metadata", Collections.singletonMap("is_native", true))
139139
.map();
140140
final Response response = adminClient().performRequest(buildRequest("PUT", "/_security/user/thor", body));

0 commit comments

Comments
 (0)