Class ProjectsControl
java.lang.Object
com.atlassian.bamboo.testutils.backdoor.BackdoorControl<ProjectsControl>
com.atlassian.bamboo.testutils.backdoor.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, XSRF_NO_CHECK, XSRF_TOKEN_HEADER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignedRepositoryIds
(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) createProject
(com.atlassian.bamboo.specs.api.builders.project.Project project) createProject
(com.atlassian.bamboo.specs.api.model.project.ProjectProperties projectProperties) createProject
(String projectKey, String projectName) createProject
(String projectKey, String projectName, boolean temporary, boolean publicAccess) void
Delete all plans and projectsvoid
deleteProject
(String projectKey) getProjectVariables
(String projectKey) void
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
anonymousResourceRoot, client, createResource, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRestModulePath, getRootPath, percentEncode, ping, post, resourceRoot
-
Constructor Details
-
ProjectsControl
-
-
Method Details
-
createProject
public RestProjectCreate createProject(com.atlassian.bamboo.specs.api.builders.project.Project project) -
createProject
public RestProjectCreate createProject(com.atlassian.bamboo.specs.api.model.project.ProjectProperties projectProperties) -
createProject
-
createProject
public RestProjectCreate 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
-
getProjectVariables
-
updateProjectVariable
-
deleteProject
-
deleteAllProjects
public void deleteAllProjects()Delete all plans and projects -
projectExists
-
tearDown
public void tearDown()Description copied from class:BackdoorControl
Cleanup resources- Overrides:
tearDown
in classBackdoorControl<ProjectsControl>
-
assignRssRepository
-
unassignRssRepository
-
assignedRepositoryIds
-
markProjectToBeDeleted
-