Skip to content

Commit

Permalink
wip: Zone SP metadata filename
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinn0 committed Jul 4, 2024
1 parent f90a2c0 commit cc49dde
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
import static org.cloudfoundry.identity.uaa.provider.ExternalIdentityProviderDefinition.USER_ATTRIBUTE_PREFIX;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.springframework.http.HttpMethod.GET;
import static org.springframework.http.HttpMethod.POST;
Expand Down Expand Up @@ -259,6 +260,9 @@ void samlSPMetadataForZone() {
// login.saml.nameID
// .contains("<md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</md:NameIDFormat>");
.contains("/saml/SSO/alias/" + zoneId + ".cloudfoundry-saml-login"); // TODO: Improve this check

assertEquals("saml-" + zoneId + "-sp.xml",
response.getHeaders().getContentDisposition().getFilename());
}

@Test
Expand Down

0 comments on commit cc49dde

Please sign in to comment.