public class RestUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_PW |
static String |
ADMIN_USER |
static String |
APP_NAME |
static String |
APP_PW |
static String |
REGULAR_USER_PASSWORD |
static String |
REGULAR_USER_USERNAME |
static String |
REMEMBER_ME_COOKIE |
static String |
SECOND_ADMIN_PW |
static String |
SECOND_ADMIN_USER |
static String |
SSO_COOKIE |
Modifier and Type | Method and Description |
---|---|
static void |
addDirectoryMapping(String baseUrl,
long appId,
long dirId) |
static void |
addDirectoryMapping(String baseUrl,
long appId,
long directoryId,
boolean allowAll,
Set<String> allowedGroups) |
static io.restassured.specification.RequestSpecification |
adminRequest() |
static io.restassured.specification.RequestSpecification |
adminRequest(io.restassured.http.ContentType contentType,
io.restassured.http.ContentType accept) |
static io.restassured.specification.RequestSpecification |
anonymousRequest() |
static io.restassured.specification.RequestSpecification |
appRequest() |
static io.restassured.specification.RequestSpecification |
appRequest(String appName,
String password) |
static void |
assertScheduledJobProperty(String baseUrl,
String id,
String field,
org.hamcrest.Matcher<?> matcher) |
static void |
assignGroupLevelAdmin(DirectoryEntityId groupLevelAdminId,
DirectoryEntityId groupTargetId) |
static ApplicationEntity |
getApplication(String baseUrl,
String applicationName) |
static DirectoryMappingEntity |
getApplicationDirectoryMapping(String baseUrl,
long appId,
long directoryId) |
static List<DirectoryMappingEntity> |
getApplicationDirectoryMappings(String baseUrl,
long appId) |
static Collection<String> |
getClusterNodeIds(String baseUrl) |
static <T> T |
getPluginSetting(String baseUrl,
String key) |
static boolean |
isClustered(String baseUrl) |
static LoginResult |
loginAsAdmin(String baseUrl) |
static LoginResult |
loginAsUser(String baseUrl,
String username,
String password) |
static LoginResult |
loginAsUser(String baseUrl,
String username,
String password,
boolean addCsrfHeader) |
static io.restassured.specification.RequestSpecification |
regularUserRequest() |
static URI |
relativeLocation(io.restassured.response.Response response,
String baseUrl) |
static io.restassured.specification.RequestSpecification |
secondAdminRequest() |
static void |
setDirectoryMappingIndex(String baseUrl,
long appId,
long dirId,
int index) |
static void |
setDirectoryMappingIndex(String baseUrl,
String appName,
String dirName,
int index) |
static void |
setPluginSetting(String baseUrl,
String key,
Object value) |
static io.restassured.specification.RequestSpecification |
userRequest(String username,
String password) |
static io.restassured.specification.RequestSpecification |
userRequest(String username,
String password,
io.restassured.http.ContentType contentType,
io.restassured.http.ContentType accept) |
static io.restassured.specification.RequestSpecification |
withCookie(String cookieName,
String cookieValue) |
public static final String REMEMBER_ME_COOKIE
public static final String SSO_COOKIE
public static final String ADMIN_USER
public static final String ADMIN_PW
public static final String SECOND_ADMIN_USER
public static final String SECOND_ADMIN_PW
public static final String APP_NAME
public static final String APP_PW
public static final String REGULAR_USER_USERNAME
public static final String REGULAR_USER_PASSWORD
public static io.restassured.specification.RequestSpecification adminRequest()
public static io.restassured.specification.RequestSpecification adminRequest(io.restassured.http.ContentType contentType, io.restassured.http.ContentType accept)
public static io.restassured.specification.RequestSpecification secondAdminRequest()
public static io.restassured.specification.RequestSpecification anonymousRequest()
public static io.restassured.specification.RequestSpecification appRequest()
public static io.restassured.specification.RequestSpecification appRequest(String appName, String password)
public static io.restassured.specification.RequestSpecification regularUserRequest()
public static io.restassured.specification.RequestSpecification userRequest(String username, String password)
public static io.restassured.specification.RequestSpecification userRequest(String username, String password, io.restassured.http.ContentType contentType, io.restassured.http.ContentType accept)
public static void assertScheduledJobProperty(String baseUrl, String id, String field, org.hamcrest.Matcher<?> matcher)
public static boolean isClustered(String baseUrl)
public static Collection<String> getClusterNodeIds(String baseUrl)
public static void setDirectoryMappingIndex(String baseUrl, String appName, String dirName, int index)
public static io.restassured.specification.RequestSpecification withCookie(String cookieName, String cookieValue)
public static ApplicationEntity getApplication(String baseUrl, String applicationName)
public static List<DirectoryMappingEntity> getApplicationDirectoryMappings(String baseUrl, long appId)
public static DirectoryMappingEntity getApplicationDirectoryMapping(String baseUrl, long appId, long directoryId)
public static void setDirectoryMappingIndex(String baseUrl, long appId, long dirId, int index)
public static void addDirectoryMapping(String baseUrl, long appId, long dirId)
public static void addDirectoryMapping(String baseUrl, long appId, long directoryId, boolean allowAll, Set<String> allowedGroups)
public static LoginResult loginAsAdmin(String baseUrl)
public static LoginResult loginAsUser(String baseUrl, String username, String password)
public static LoginResult loginAsUser(String baseUrl, String username, String password, boolean addCsrfHeader)
public static void assignGroupLevelAdmin(DirectoryEntityId groupLevelAdminId, DirectoryEntityId groupTargetId)
public static URI relativeLocation(io.restassured.response.Response response, String baseUrl) throws MalformedURLException, URISyntaxException
Copyright © 2021 Atlassian. All rights reserved.