From 5b2e390f57cfbadc664a53555d35ee10b869b430 Mon Sep 17 00:00:00 2001 From: Martin Hardselius Date: Mon, 10 Jul 2017 10:20:41 +0200 Subject: [PATCH] Update refresh token test for deleted user Instead of disabling the user under test, the test will now correctly delete the user under test. --- .../java/org/keycloak/testsuite/oauth/RefreshTokenTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/RefreshTokenTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/RefreshTokenTest.java index af6cbe80aa..7e3594f897 100755 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/RefreshTokenTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/RefreshTokenTest.java @@ -538,7 +538,7 @@ public class RefreshTokenTest extends AbstractKeycloakTest { events.expectCodeToToken(codeId, sessionId).user(userId).assertEvent(); - UserManager.realm(adminClient.realm("test")).username("temp-user@localhost").enabled(false); + adminClient.realm("test").users().delete(userId); response = oauth.doRefreshTokenRequest(refreshTokenString, "password"); assertEquals(400, response.getStatusCode()); assertEquals("invalid_grant", response.getError());