Skip to content

Commit a4126aa

Browse files
committed
Merge branch '6.3.x' into 6.4.x
2 parents 656ad72 + f631a0f commit a4126aa

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/registration/ClientRegistrationsTests.java

+3-9
Original file line numberDiff line numberDiff line change
@@ -585,17 +585,11 @@ public MockResponse dispatch(RecordedRequest request) {
585585
return new MockResponse().setResponseCode(responseCode);
586586
}
587587
});
588-
String message = """
589-
Unable to resolve Configuration with the provided Issuer of "%s", errors: [\
590-
405 Client Error on GET request for "%s": [no body], \
591-
400 Client Error on GET request for "%s": [no body], \
592-
404 Client Error on GET request for "%s": [no body]]\
593-
""".formatted(this.issuer, this.server.url("/issuer1/.well-known/openid-configuration"),
594-
this.server.url("/.well-known/openid-configuration/issuer1"),
595-
this.server.url("/.well-known/oauth-authorization-server/issuer1"));
596588
assertThatExceptionOfType(IllegalArgumentException.class)
597589
.isThrownBy(() -> ClientRegistrations.fromIssuerLocation(this.issuer).build())
598-
.withMessage(message);
590+
.withMessageContaining("405")
591+
.withMessageContaining("400")
592+
.withMessageContaining("404");
599593
}
600594

601595
private ClientRegistration.Builder registration(String path) throws Exception {

0 commit comments

Comments
 (0)