public class ServerStateManager extends Object
Constructor and Description |
---|
ServerStateManager(ConfluenceRpc rpc,
TestData testData) |
Modifier and Type | Method and Description |
---|---|
void |
createTestData()
Deprecated.
Since 5.6 Use
createTestData(boolean) to be explicit about test user creation. |
void |
createTestData(boolean autoCreateTestUsers) |
DirectoryConfiguration |
getDirectoryConfiguration() |
UserManagementHelper |
getUserHelper() |
void |
onlyRemoveTestData()
Removes all test data, including users, groups, permission, spaces and content.
|
void |
pauseJobs()
Pauses either all jobs, or a subset of jobs, to stop them interfering with test-running, particularly
subsequent calls to
pauseJobsAndRemoveTestData() or resetTestData(boolean) . |
void |
pauseJobsAndRemoveTestData()
Removes all test data, including users, groups, permission, spaces and content.
|
void |
removeTestData()
Deprecated.
since 7.9 because it is misleadingly named. Use
pauseJobsAndRemoveTestData() , or
onlyRemoveTestData() . |
void |
resetTestData()
Deprecated.
since 5.6 Use
resetTestData(boolean) to be explicit about auto-test-user creation. |
void |
resetTestData(boolean autoCreateTestUsers)
Resets all test data, including users, groups, permission, spaces, content, etc, to
a stable state.
|
void |
waitForUpgradeTasks()
We need to wait for plugin upgrade tasks to complete before removing test data as it can break things.
|
public ServerStateManager(ConfluenceRpc rpc, TestData testData)
public UserManagementHelper getUserHelper()
public DirectoryConfiguration getDirectoryConfiguration()
@Deprecated public void resetTestData()
resetTestData(boolean)
to be explicit about auto-test-user creation.public void resetTestData(boolean autoCreateTestUsers)
Called from every test setUp.
public void waitForUpgradeTasks()
public void pauseJobsAndRemoveTestData()
If possible, call resetTestData(boolean)
instead to create common data at the same time.
@Deprecated public void removeTestData()
pauseJobsAndRemoveTestData()
, or
onlyRemoveTestData()
.
If possible, call resetTestData(boolean)
instead to create common data at the same time.
public void onlyRemoveTestData()
If possible, call resetTestData(boolean)
instead to create common data at the same time.
public void pauseJobs()
pauseJobsAndRemoveTestData()
or resetTestData(boolean)
.@Deprecated public void createTestData()
createTestData(boolean)
to be explicit about test user creation.public void createTestData(boolean autoCreateTestUsers)
Copyright © 2003–2021 Atlassian. All rights reserved.