Skip to content

Commit ea47137

Browse files
authored
[Entitlements] Relax check in IT tests for FIPS environments (elastic#120463) (elastic#120693)
1 parent 675a49f commit ea47137

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/entitlement/qa/test-plugin/src/main/java/org/elasticsearch/entitlement/qa/test/NetworkAccessCheckActions.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ static void createLDAPCertStore() throws NoSuchAlgorithmException {
8888
} catch (InvalidAlgorithmParameterException ex) {
8989
// Assert we actually hit the class we care about, LDAPCertStore (or its impl)
9090
assert Arrays.stream(ex.getStackTrace()).anyMatch(e -> e.getClassName().endsWith("LDAPCertStore"));
91+
} catch (NoSuchAlgorithmException e) {
92+
// In some environments (e.g. with FIPS enabled) the LDAPCertStore is not present, so this will fail.
93+
// This is OK, as this means the class we care about (LDAPCertStore) is not even present
9194
}
9295
}
9396

0 commit comments

Comments
 (0)