Class CrowdAcceptanceTestCase

Direct Known Subclasses:
AbstractDbCachingLoadTest, ActionAnnotationsInPluginTest, AddGroupTest, AnalyticsAcceptanceTest, AnonymousAccessTest, ApplicationAccessBasedFilteringTest, ApplicationOptionsTest, AutoGroupAdderTest, BackupRestoreTest, BambooImporterTest, BrowseApplicationUsersTest, ClusterMonitoringAcceptanceTest, ConfluenceImporterTest, CrowdConsoleJndiTimeoutUnlimitedWarningTest, CrowdConsoleTest, CrowdifiedBambooImporterTest, CrowdifiedConfluenceImporterTest, CrowdifiedJiraImporterTest, CrowdSecurityHeadersIntegrationTest, CrowdUserConsoleAcceptenceTestCase, DecoratorModuleTest, DelegatedDirectoryTest, DelegatedDirectoryWithNestedGroupsTest, DirectoryImporterTest, DirectoryPermissionGroupTest, DirectoryPermissionRoleTest, DirectoryPermissionUserTest, ErrorPageTest, ExternalLinksProxyServletTest, ForgedLicenseWarningTest, GeneralAdministrationTest, HealthCheckResourceTest, JiraImporterTest, LicenseMaintenanceTest, LoggingProfilingTest, MailTemplateTest, OGNLDoubleEvaluationTest, OGNLInjectionTest, RecalculateLicenseTest, RemoteDirectoryNestedGroupTest, RestCrowdClientTest, RestXmlParsingTest, SAMLAuthTest, SamlConfigBackupRestoreTest, SessionIdOnAuthenticationTest, SSOCookieTest, StatusTest, Struts2ConfigurationTest, SystemInfoTest, UpdateSAMLConfigurationTest, UserFromGoogleAppsDirectoryImpersonationTest, UsernameInformationIntegrationTest, ViewApplicationTest, ViewOptionsTest, ViewRoleTest

public class CrowdAcceptanceTestCase extends CrowdWebTestCase
  • Field Details

    • USER_DETAILS_TABLE_ID

      protected static final String USER_DETAILS_TABLE_ID
      See Also:
    • ADMIN_USER

      protected static final String ADMIN_USER
      See Also:
    • ADMIN_PW

      protected static final String ADMIN_PW
      See Also:
    • URL_HOME

      protected static String URL_HOME
    • logger

      protected final org.slf4j.Logger logger
    • EXPIRED_MAINTENANCE_KEY

      public static final String EXPIRED_MAINTENANCE_KEY
      See Also:
    • testkitClient

      protected TestkitClient testkitClient
    • BATCHED_TEST_RULE

      public static final BatchedTestRule BATCHED_TEST_RULE
    • testName

      public final org.junit.rules.TestName testName
    • testWatcher

      public org.junit.rules.TestRule testWatcher
  • Constructor Details

    • CrowdAcceptanceTestCase

      public CrowdAcceptanceTestCase()
  • Method Details

    • getInstanceProperties

      public static Properties getInstanceProperties()
    • loginAdmin

      public void loginAdmin()
    • _loginAsUser

      public void _loginAsUser(String username, String password)
    • userWithUsernameAndDisplayName

      public org.hamcrest.Matcher<UserData> userWithUsernameAndDisplayName(String username, String displayName)
    • assertAtLoginForm

      public void assertAtLoginForm()
    • assertAtLoginForm

      public void assertAtLoginForm(io.restassured.response.Response response)
    • loginWithRestAndRedirectToStartPage

      public void loginWithRestAndRedirectToStartPage(String username, String password, boolean rememberMe, List<org.apache.http.NameValuePair> queryParams)
    • loginWithRestEndpoint

      protected io.restassured.response.Response loginWithRestEndpoint(String username, String password, boolean rememberMe)
      Logs in using the rest endpoint, does not navigate to page returned by the redirect endpoint. Consumers should take care to call JWebUnit.beginAt(String) as this method will put the cookies into the JWebUnit's testing context, but they won't be effective until a beginAt call.
      Parameters:
      username - the username
      password - the password
      rememberMe - the remember me
      Returns:
      a RestAssured response, mirroring the response obtained from the server.
    • loginWithRestEndpoint

      protected io.restassured.response.Response loginWithRestEndpoint(String username, String password, boolean rememberMe, List<org.apache.http.NameValuePair> queryParams)
      Logs in using the rest endpoint, does not navigate to page returned by the redirect endpoint. Consumers should take care to call JWebUnit.beginAt(String) as this method will put the cookies into the JWebUnit's testing context, but they won't be effective until a beginAt call.
      Parameters:
      username - the username
      password - the password
      rememberMe - the remember me
      queryParams - the query parameter
      Returns:
      a RestAssured response, mirroring the response obtained from the server.
    • performRequestWithCookieExchange

      protected io.restassured.response.Response performRequestWithCookieExchange(com.google.common.base.Function<io.restassured.specification.RequestSpecification,io.restassured.response.Response> requestPerformer)
    • _logout

      public void _logout()
    • assertIsLoggedIn

      public void assertIsLoggedIn()
    • isLoggedIn

      public boolean isLoggedIn()
    • isLoggedInAfterRefresh

      public boolean isLoggedInAfterRefresh()
    • assertIsLoggedOut

      public void assertIsLoggedOut()
    • getUsersForDirectory

      public List<UserData> getUsersForDirectory(long directoryId)
    • getUsersCount

      public int getUsersCount(long directoryId)
    • intendToModifyLdapData

      public void intendToModifyLdapData()
      Indicate that a test will modify LDAP data. (Not implemented; included so we can start to mark those tests.)
      Overrides:
      intendToModifyLdapData in class CrowdWebDriverTest
    • restoreCrowdFromXMLWithoutReloggingIn

      protected void restoreCrowdFromXMLWithoutReloggingIn(String xmlfilename, boolean checkForError)
    • gotoAddApplication

      public void gotoAddApplication()
    • gotoCreateDirectory

      public void gotoCreateDirectory()
    • gotoAddGroup

      public void gotoAddGroup()
    • gotoViewPrincipal

      public void gotoViewPrincipal(String principalName, String directoryName)
    • gotoRemovePrincipal

      public void gotoRemovePrincipal(String principalName, String directoryName)
    • gotoViewGroup

      public void gotoViewGroup(String groupName, String directoryName)
    • gotoAddPrincipal

      public void gotoAddPrincipal()
    • gotoBrowseApplications

      public void gotoBrowseApplications()
    • gotoBrowsePrincipals

      public void gotoBrowsePrincipals()
    • gotoBrowsePrincipals

      public void gotoBrowsePrincipals(int resultsStart)
    • gotoBrowseGroups

      public void gotoBrowseGroups()
    • gotoBrowseGroups

      public void gotoBrowseGroups(int resultsStart)
    • gotoBrowseDirectories

      public void gotoBrowseDirectories()
    • gotoImporters

      public void gotoImporters()
    • gotoSystemInfo

      public void gotoSystemInfo()
    • log

      protected void log(String message)
      Overrides:
      log in class CrowdWebTestCase
    • setUp

      public void setUp() throws Exception
      Overrides:
      setUp in class CrowdWebTestCase
      Throws:
      Exception
    • gotoGeneral

      public void gotoGeneral()
    • gotoLicensing

      public void gotoLicensing()
    • gotoMailServer

      public void gotoMailServer()
    • gotoMailTemplate

      public void gotoMailTemplate()
    • gotoSessionConfig

      public void gotoSessionConfig()
    • gotoCurrentApplicationSessions

      public void gotoCurrentApplicationSessions()
    • gotoCurrentPrincipalSessions

      public void gotoCurrentPrincipalSessions()
    • gotoTrustedProxies

      public void gotoTrustedProxies()
    • gotoLoggingProfiling

      public void gotoLoggingProfiling()
    • gotoRestore

      public void gotoRestore()
    • gotoViewApplication

      public void gotoViewApplication(String applicationName)
    • gotoViewApplicationDirectories

      public void gotoViewApplicationDirectories(String applicationName)
    • gotoSAMLConfig

      public void gotoSAMLConfig()
    • gotoLdapConnectionPool

      public void gotoLdapConnectionPool()
    • assertPageNotFound

      public void assertPageNotFound()
    • assertMatchInTableBody

      public void assertMatchInTableBody(String tableId, String match)
    • assertNoMatchInTableBody

      public void assertNoMatchInTableBody(String tableId, String match)
    • assertUserInTable

      public void assertUserInTable(String username, String fullname, String email)
    • assertUserNotInTable

      public void assertUserNotInTable(String username, String fullname, String email)
    • assertUserInTable

      public void assertUserInTable(String username, String fullname, String email, String alias)
    • assertUnescapedKeyNotPresent

      public void assertUnescapedKeyNotPresent(String key)
    • assertUnescapedKeyPresent

      public void assertUnescapedKeyPresent(String key)
    • disableIPValidation

      public void disableIPValidation()
    • getUserDetailsTableContents

      protected List<User> getUserDetailsTableContents()
    • userWithDetails

      protected org.hamcrest.Matcher<User> userWithDetails(String username, String fullname)
    • gotoAdministrationPage

      public void gotoAdministrationPage()
    • getGroupTableContents

      protected List<Group> getGroupTableContents()
    • doBackup

      protected String doBackup()
      Returns file name of the backup.
    • restGet

      protected <T> T restGet(String relativePath, Class<T> clz)
    • restPost

      protected void restPost(String relativePath, Object content)
    • namesOf

      public static List<String> namesOf(Iterable<? extends DirectoryEntity> entities)