public class ExternalLoginTest extends AbstractTest<RepositoryFixture>
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
.Modifier and Type | Field and Description |
---|---|
protected long |
seed |
Constructor and Description |
---|
ExternalLoginTest(int numberOfUsers,
int numberOfGroups,
long expTime,
boolean dynamicMembership,
@NotNull java.util.List<java.lang.String> autoMembership,
boolean report,
@NotNull StatisticsProvider statsProvider) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterSuite()
Remove any user/group accounts that have been synchronized into the repo.
|
protected void |
afterTest() |
protected void |
beforeSuite()
Run before any iterations of this test get executed.
|
protected void |
beforeTest() |
protected javax.security.auth.login.Configuration |
createConfiguration() |
protected Repository[] |
createRepository(RepositoryFixture fixture)
Customize the repository creation process by custom fixture handling
|
protected ContentRepository |
getContentRepository() |
protected java.lang.String |
getRandomGroupId() |
protected java.lang.String |
getRandomUserId() |
protected SecurityProvider |
getSecurityProvider() |
void |
run(java.lang.Iterable<RepositoryFixture> fixtures,
java.util.List<java.lang.Integer> concurrencyLevels) |
protected void |
runTest() |
addBackgroundJob, afterTest, beforeTest, comment, disposeThreadExecutionContext, execute, failOnRepositoryVersions, getCredentials, getCurrentFixture, getRepository, getScale, issueHaltChildThreads, issueHaltRequest, login, loginAdministrative, loginAnonymous, loginSubject, loginWriter, logout, prepareThreadExecutionContext, run, runTest, setPrintStream, setUp, statsFormats, statsNames, statsValues, systemLogin, tearDown
public ExternalLoginTest(int numberOfUsers, int numberOfGroups, long expTime, boolean dynamicMembership, @NotNull @NotNull java.util.List<java.lang.String> autoMembership, boolean report, @NotNull @NotNull StatisticsProvider statsProvider)
protected void beforeSuite() throws java.lang.Exception
AbstractTest
java.lang.Exception
- if an error occursprotected void afterSuite() throws java.lang.Exception
java.lang.Exception
- if an error occursprotected void beforeTest() throws java.lang.Exception
beforeTest
in class AbstractTest<RepositoryFixture>
java.lang.Exception
protected void afterTest() throws java.lang.Exception
afterTest
in class AbstractTest<RepositoryFixture>
java.lang.Exception
protected void runTest() throws java.lang.Exception
runTest
in class AbstractTest<RepositoryFixture>
java.lang.Exception
protected javax.security.auth.login.Configuration createConfiguration()
protected ContentRepository getContentRepository()
protected SecurityProvider getSecurityProvider()
protected java.lang.String getRandomUserId()
protected java.lang.String getRandomGroupId()
public void run(java.lang.Iterable<RepositoryFixture> fixtures, java.util.List<java.lang.Integer> concurrencyLevels)
run
in class AbstractTest<RepositoryFixture>
protected Repository[] createRepository(RepositoryFixture fixture) throws java.lang.Exception
AbstractTest
createRepository
in class AbstractTest<RepositoryFixture>
java.lang.Exception
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.