KEYCLOAK-6692 Fix LogoutTest on Oracle

This commit is contained in:
Hynek Mlnarik 2018-02-26 12:32:46 +01:00 committed by Pavel Drozd
parent 10e31c397c
commit bde9210fa3
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ public class ClientAttributeUpdater {
}
public ClientAttributeUpdater removeAttribute(String name) {
this.rep.getAttributes().put(name, null);
this.rep.getAttributes().remove(name);
return this;
}

View file

@ -369,7 +369,7 @@ public class LogoutTest extends AbstractSamlTest {
try (
Closeable sales = new ClientAttributeUpdater(clients.get(salesRep.getId()))
.setFrontchannelLogout(true)
.setAttribute(SamlProtocol.SAML_SINGLE_LOGOUT_SERVICE_URL_POST_ATTRIBUTE, "")
.removeAttribute(SamlProtocol.SAML_SINGLE_LOGOUT_SERVICE_URL_POST_ATTRIBUTE)
.setAttribute(SamlProtocol.SAML_SINGLE_LOGOUT_SERVICE_URL_REDIRECT_ATTRIBUTE, "http://url")
.update();