Skip to content

Commit c4bc385

Browse files
committed
Fix for fips
1 parent d7af356 commit c4bc385

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/security/qa/security-trial/src/javaRestTest/java/org/elasticsearch/xpack/security/ssl/SslEntitlementRestIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ protected String getTestRestCluster() {
4141
}
4242

4343
public void testSslEntitlementInaccessiblePath() throws IOException {
44-
settingsProvider.put("xpack.security.transport.ssl.keystore.path", "/bad/path");
44+
settingsProvider.put("xpack.security.transport.ssl.key", "/bad/path/transport.key");
45+
settingsProvider.put("xpack.security.transport.ssl.certificate", "/bad/path/transport.crt");
4546
expectThrows(Exception.class, () -> cluster.restart(false));
4647
AtomicBoolean found = new AtomicBoolean(false);
4748
for (int i = 0; i < cluster.getNumNodes(); i++) {
4849
try (InputStream log = cluster.getNodeLog(i, LogType.SERVER)) {
4950
Streams.readAllLines(log, line -> {
50-
// TODO improve the matching on error message here
5151
if (line.contains("failed to load SSL configuration") && line.contains("because access to read the file is blocked")) {
5252
found.set(true);
5353
}
5454
});
5555
}
5656
}
57-
assertThat(found.get(), is(true));
57+
assertThat("cluster logs did not include events of blocked file access", found.get(), is(true));
5858
}
5959

6060
@Override

0 commit comments

Comments
 (0)