KEYCLOAK-4261
This commit is contained in:
parent
119435ac76
commit
27e390965e
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,7 @@ import java.net.URI;
|
|||
import java.util.List;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.containsString;
|
||||
import static org.hamcrest.CoreMatchers.not;
|
||||
import static org.junit.Assert.assertThat;
|
||||
import static org.keycloak.testsuite.util.IOUtil.loadRealm;
|
||||
import static org.keycloak.testsuite.util.SamlClient.idpInitiatedLoginWithRequiredConsent;
|
||||
|
@ -51,5 +52,7 @@ public class SamlConsentTest extends AbstractSamlTest {
|
|||
SAMLDocumentHolder documentHolder = idpInitiatedLoginWithRequiredConsent(bburkeUser, URI.create(idpInitiatedLogin), SamlClient.Binding.POST, false);
|
||||
|
||||
assertThat(IOUtil.documentToString(documentHolder.getSamlDocument()), containsString("<dsig:Signature"));
|
||||
assertThat(IOUtil.documentToString(documentHolder.getSamlDocument()), not(containsString("<samlp:LogoutResponse")));
|
||||
assertThat(IOUtil.documentToString(documentHolder.getSamlDocument()), containsString("<samlp:Response"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue