Class ProjectsControl
- java.lang.Object
-
- com.atlassian.bamboo.testutils.backdoor.BackdoorControl<ProjectsControl>
-
- com.atlassian.bamboo.testutils.backdoor.ProjectsControl
-
public class ProjectsControl extends BackdoorControl<ProjectsControl>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
-
-
Constructor Summary
Constructors Constructor Description ProjectsControl(@NotNull BambooEnvironmentData environmentData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Long>
assignedRepositoryIds(String projectKey)
void
assignRssRepository(String projectKey, String repositoryId)
com.atlassian.bamboo.specs.api.model.project.ProjectProperties
createOrUpdateProjectWithSpecs(TestUser user, com.atlassian.bamboo.specs.api.builders.project.Project project)
RestProject
createProject(com.atlassian.bamboo.specs.api.builders.project.Project project)
RestProject
createProject(com.atlassian.bamboo.specs.api.model.project.ProjectProperties projectProperties)
RestProject
createProject(String projectKey, String projectName)
RestProject
createProject(String projectKey, String projectName, boolean temporary, boolean publicAccess)
void
deleteAllProjects()
Delete all plans and projectsvoid
deleteProject(String projectKey)
List<RestProject>
getAllProjects()
List<RestVariable>
getProjectVariables(String projectKey)
void
markProjectToBeDeleted(String key)
boolean
projectExists(String projectKey)
void
tearDown()
Cleanup resourcesvoid
unassignRssRepository(String projectKey, String repositoryId)
void
updateProjectVariable(String projectKey, String variableKey, String variableValue)
-
Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
client, createResource, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot
-
-
-
-
Constructor Detail
-
ProjectsControl
public ProjectsControl(@NotNull @NotNull BambooEnvironmentData environmentData)
-
-
Method Detail
-
createProject
public RestProject createProject(com.atlassian.bamboo.specs.api.builders.project.Project project)
-
createProject
public RestProject createProject(com.atlassian.bamboo.specs.api.model.project.ProjectProperties projectProperties)
-
createProject
public RestProject createProject(String projectKey, String projectName)
-
createProject
public RestProject createProject(String projectKey, String projectName, boolean temporary, boolean publicAccess)
-
createOrUpdateProjectWithSpecs
public com.atlassian.bamboo.specs.api.model.project.ProjectProperties createOrUpdateProjectWithSpecs(TestUser user, com.atlassian.bamboo.specs.api.builders.project.Project project) throws Exception
- Throws:
Exception
-
getAllProjects
public List<RestProject> getAllProjects()
-
getProjectVariables
public List<RestVariable> getProjectVariables(String projectKey)
-
updateProjectVariable
public void updateProjectVariable(String projectKey, String variableKey, String variableValue)
-
deleteProject
public void deleteProject(String projectKey)
-
deleteAllProjects
public void deleteAllProjects()
Delete all plans and projects
-
projectExists
public boolean projectExists(String projectKey)
-
tearDown
public void tearDown()
Description copied from class:BackdoorControl
Cleanup resources- Overrides:
tearDown
in classBackdoorControl<ProjectsControl>
-
markProjectToBeDeleted
public void markProjectToBeDeleted(String key)
-
-