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 javax.jcr.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, getRepository, getScale, issueHaltChildThreads, issueHaltRequest, login, loginAdministrative, loginAnonymous, loginWriter, logout, prepareThreadExecutionContext, run, runTest, setPrintStream, setUp, statsFormats, statsNames, statsValues, tearDown
protected void runTest() throws Exception
runTest
in class AbstractTest
Exception
protected 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 AbstractTest
protected void beforeSuite() throws Exception
AbstractTest
beforeSuite
in class AbstractTest
Exception
- if an error occursprotected void afterSuite() throws Exception
afterSuite
in class AbstractTest
Exception
protected javax.jcr.Repository[] createRepository(RepositoryFixture fixture) throws Exception
AbstractTest
createRepository
in class AbstractTest
Exception
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.