File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments