Package org.keycloak.test
Class TestsHelper
- java.lang.Object
-
- org.keycloak.test.TestsHelper
-
@Deprecated public class TestsHelper extends Object
Deprecated.This class will be removed in the next major release. Please migrate toFluentTestsHelper.
-
-
Field Summary
Fields Modifier and Type Field Description static StringappNameDeprecated.static StringbaseUrlDeprecated.protected static StringclientConfigurationDeprecated.static StringinitialAccessCodeDeprecated.static intinitialAccessTokenCountDeprecated.static StringkeycloakBaseUrlDeprecated.protected static StringregistrationAccessCodeDeprecated.static StringtestRealmDeprecated.
-
Constructor Summary
Constructors Constructor Description TestsHelper()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringcreateClient(org.keycloak.representations.idm.ClientRepresentation clientRepresentation)Deprecated.static StringcreateDirectGrantClient()Deprecated.static booleancreateTestUser(String username, String password, String realmName)Deprecated.static voiddeleteClient(String clientId)Deprecated.static booleandeleteRealm(String username, String password, String realmName)Deprecated.static StringgetCreatedId(javax.ws.rs.core.Response response)Deprecated.static StringgetToken(String username, String password, String realm)Deprecated.static booleanimportTestRealm(String username, String password)Deprecated.static booleanimportTestRealm(String username, String password, String realmJsonPath)Deprecated.static booleanreturnsForbidden(String endpoint)Deprecated.static booleantestGetWithAuth(String endpoint, String token)Deprecated.
-
-
-
Field Detail
-
baseUrl
public static String baseUrl
Deprecated.
-
keycloakBaseUrl
public static String keycloakBaseUrl
Deprecated.
-
testRealm
public static String testRealm
Deprecated.
-
initialAccessCode
public static String initialAccessCode
Deprecated.
-
appName
public static String appName
Deprecated.
-
initialAccessTokenCount
public static int initialAccessTokenCount
Deprecated.
-
clientConfiguration
protected static String clientConfiguration
Deprecated.
-
registrationAccessCode
protected static String registrationAccessCode
Deprecated.
-
-
Method Detail
-
createClient
public static String createClient(org.keycloak.representations.idm.ClientRepresentation clientRepresentation)
Deprecated.
-
createDirectGrantClient
public static String createDirectGrantClient()
Deprecated.
-
deleteClient
public static void deleteClient(String clientId)
Deprecated.
-
testGetWithAuth
public static boolean testGetWithAuth(String endpoint, String token) throws IOException
Deprecated.- Throws:
IOException
-
returnsForbidden
public static boolean returnsForbidden(String endpoint) throws IOException
Deprecated.- Throws:
IOException
-
importTestRealm
public static boolean importTestRealm(String username, String password, String realmJsonPath) throws IOException
Deprecated.- Throws:
IOException
-
importTestRealm
public static boolean importTestRealm(String username, String password) throws IOException
Deprecated.- Throws:
IOException
-
deleteRealm
public static boolean deleteRealm(String username, String password, String realmName) throws IOException
Deprecated.- Throws:
IOException
-
createTestUser
public static boolean createTestUser(String username, String password, String realmName) throws IOException
Deprecated.- Throws:
IOException
-
getCreatedId
public static String getCreatedId(javax.ws.rs.core.Response response)
Deprecated.
-
-