public class ExternalLoginTest extends AbstractTest
ExternalLoginModule with a randomly selected user.
The first login of a given user will trigger the user-synchronization mechanism.
Subsequent login calls will only result in an extra sync-call if the configured
expiration time is reached.
Configuration options as defined in AbstractExternalTest.| Constructor and Description |
|---|
ExternalLoginTest(int numberOfUsers,
int numberOfGroups,
long expTime,
boolean dynamicMembership,
List<String> autoMembership) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterSuite()
Remove any user/group accounts that have been synchronized into the repo.
|
protected void |
beforeSuite()
Run before any iterations of this test get executed.
|
protected Configuration |
createConfiguration() |
protected Repository[] |
createRepository(RepositoryFixture fixture)
Customize the repository creation process by custom fixture handling
|
protected org.apache.jackrabbit.oak.api.ContentRepository |
getContentRepository() |
protected String |
getRandomGroupId() |
protected String |
getRandomUserId() |
protected org.apache.jackrabbit.oak.spi.security.SecurityProvider |
getSecurityProvider() |
void |
run(Iterable iterable,
List concurrencyLevels) |
protected void |
runTest() |
addBackgroundJob, afterTest, afterTest, beforeTest, beforeTest, comment, disposeThreadExecutionContext, execute, failOnRepositoryVersions, getCredentials, getCurrentFixture, getRepository, getScale, issueHaltChildThreads, issueHaltRequest, login, loginAdministrative, loginAnonymous, loginWriter, logout, prepareThreadExecutionContext, run, runTest, setPrintStream, setUp, statsFormats, statsNames, statsValues, tearDownprotected void runTest()
throws Exception
runTest in class AbstractTestExceptionprotected Configuration createConfiguration()
protected org.apache.jackrabbit.oak.api.ContentRepository getContentRepository()
protected org.apache.jackrabbit.oak.spi.security.SecurityProvider getSecurityProvider()
protected String getRandomUserId()
protected String getRandomGroupId()
public void run(Iterable iterable, List concurrencyLevels)
run in class AbstractTestprotected void beforeSuite()
throws Exception
AbstractTestbeforeSuite in class AbstractTestException - if an error occursprotected void afterSuite()
throws Exception
afterSuite in class AbstractTestExceptionprotected Repository[] createRepository(RepositoryFixture fixture) throws Exception
AbstractTestcreateRepository in class AbstractTestExceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.