Skip to content

Commit 61e9a22

Browse files
authored
[Entitlements] Relax check in IT tests for FIPS environments (#120463)
1 parent 22c0264 commit 61e9a22

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

libs/entitlement/qa/common/src/main/java/org/elasticsearch/entitlement/qa/common/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

muted-tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,6 @@ tests:
219219
issue: https://github.com/elastic/elasticsearch/issues/108061
220220
- class: org.elasticsearch.xpack.logsdb.seqno.RetentionLeaseRestIT
221221
issue: https://github.com/elastic/elasticsearch/issues/120434
222-
- class: org.elasticsearch.entitlement.qa.EntitlementsAllowedIT
223-
method: testCheckActionWithPolicyPass {pathPrefix=allowed actionName=create_ldap_cert_store}
224-
issue: https://github.com/elastic/elasticsearch/issues/120422
225-
- class: org.elasticsearch.entitlement.qa.EntitlementsAllowedIT
226-
method: testCheckActionWithPolicyPass {pathPrefix=allowed_nonmodular actionName=create_ldap_cert_store}
227-
issue: https://github.com/elastic/elasticsearch/issues/120423
228222
- class: org.elasticsearch.reservedstate.service.FileSettingsServiceTests
229223
method: testInvalidJSON
230224
issue: https://github.com/elastic/elasticsearch/issues/120482

0 commit comments

Comments
 (0)