public class RepositoryControl extends BackdoorControl<RepositoryControl>
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
Constructor and Description |
---|
RepositoryControl(BambooEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
RestRepositoryDefinition |
createLinkedRepository(Repository repository,
String displayName)
Creates a linked repository as the default auth user.
|
RestRepositoryDefinition |
createLinkedRepository(RestRepositoryConfig restRepositoryConfig)
Creates a linked repository as the default auth user.
|
void |
deleteAllLinkedRepositories()
Deletes all linked repositories.
|
boolean |
deleteLinkedRepository(long repositoryId)
Deletes a linked repository as
TestUser.ADMIN . |
void |
tearDown()
Cleanup resources
|
client, createResource, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot
public RepositoryControl(@NotNull BambooEnvironmentData environmentData)
public void tearDown()
BackdoorControl
tearDown
in class BackdoorControl<RepositoryControl>
@NotNull public RestRepositoryDefinition createLinkedRepository(@NotNull RestRepositoryConfig restRepositoryConfig)
tearDown()
.
This method has a lot of limitations - see the relevant backdoor resource for more details.restRepositoryConfig
- repository configuration@NotNull public RestRepositoryDefinition createLinkedRepository(@NotNull Repository repository, @NotNull String displayName)
tearDown()
.
This method has a lot of limitations - see the relevant backdoor resource for more details.repository
- repository configurationdisplayName
- display name of the linked repository to createpublic boolean deleteLinkedRepository(long repositoryId)
TestUser.ADMIN
. Returns true if repository with the given ID existed and
was deleted successfully, false otherwise.repositoryId
- id of the linked repositorypublic void deleteAllLinkedRepositories()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.