Fix Saml2MetadataFilter Test

Issue gh-9281
This commit is contained in:
Josh Cummings 2021-03-02 16:32:17 -07:00
parent f3fa8e8800
commit c860076ef5
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ public class Saml2MetadataFilterTests {
String fileName = testMetadataFilename.replace("{registrationId}", validRegistration.getRegistrationId());
String encodedFileName = URLEncoder.encode(fileName, StandardCharsets.UTF_8.name());
String generatedMetadata = "<xml>test</xml>";
this.request.setPathInfo("/saml2/service-provider-metadata/validRegistration");
this.request.setPathInfo("/saml2/service-provider-metadata/registration-id");
given(this.resolver.resolve(validRegistration)).willReturn(generatedMetadata);
this.filter = new Saml2MetadataFilter((request) -> validRegistration, this.resolver);
this.filter.setMetadataFilename(testMetadataFilename);