Skip to content

Commit ea8d674

Browse files
committed
Why are you failing
1 parent e854d18 commit ea8d674

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,8 @@ public void testSslEntitlementInaccessiblePath() throws IOException {
4747
for (int i = 0; i < cluster.getNumNodes(); i++) {
4848
try (InputStream log = cluster.getNodeLog(i, LogType.SERVER)) {
4949
Streams.readAllLines(log, line -> {
50-
if (line.contains(
51-
"failed to load SSL configuration [xpack.security.transport.ssl] - "
52-
+ "cannot read configured [jks] keystore (as a truststore) "
53-
+ "[/bad/path] because access to read the file is blocked;"
54-
)) {
50+
// TODO improve the matching on error message here
51+
if (line.contains("failed to load SSL configuration") && line.contains("because access to read the file is blocked")) {
5552
found.set(true);
5653
}
5754
});

0 commit comments

Comments
 (0)