KEYCLOAK-2415 Add disabledClient test

This commit is contained in:
Vaclav Muzikar 2016-01-29 18:19:30 +01:00
parent b930ef4b1b
commit bd6f2a3e2d

View file

@ -35,6 +35,7 @@ import org.keycloak.testsuite.util.Timer;
*
* @author Filip Kiss
* @author tkyjovsk
* @author Vaclav Muzikar <vmuzikar@redhat.com>
*/
public class ClientSettingsTest extends AbstractClientTest {
@ -179,4 +180,13 @@ public class ClientSettingsTest extends AbstractClientTest {
pause(120000);
}
@Test
public void disabledClient() {
newClient = createOidcClientRep(CONFIDENTIAL, "disabled-client");
newClient.setEnabled(false);
createClient(newClient);
ClientRepresentation clientRepre = findClientByClientId("disabled-client");
assertTrue("Client should be disabled", clientRepre.isEnabled());
}
}