Skip to content

Commit ed4093a

Browse files
committed
fixup! CI
1 parent 2203889 commit ed4093a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/ApiKeyServiceTests.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3393,7 +3393,16 @@ public void testCrossClusterApiKeyCertificateIdentityValidationNoCertIdentity()
33933393
final AuthenticationResult<User> result = future.get();
33943394
assertThat(result, notNullValue());
33953395
assertThat(result.getStatus(), equalTo(AuthenticationResult.Status.TERMINATE));
3396-
assertThat(result.getMessage(), equalTo("Expected signature for cross cluster API key, but no signature was provided"));
3396+
assertThat(
3397+
result.getMessage(),
3398+
equalTo(
3399+
"API key (type:[cross_cluster], id:["
3400+
+ credentialsWithoutCertIdentity.getId()
3401+
+ "]) requires certificate identity matching ["
3402+
+ certificateIdentityPattern
3403+
+ "], but no certificate was provided"
3404+
)
3405+
);
33973406
}
33983407

33993408
public void testPatternCache() throws ExecutionException, InterruptedException {

0 commit comments

Comments
 (0)