Package com.atlassian.bamboo.export
Class ConfigImportTestUtils
java.lang.Object
com.atlassian.bamboo.export.ConfigImportTestUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
createOrUpdateDeployment
(BambooEnvironmentData bambooEnvironmentData, com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties props) static void
createOrUpdateDeploymentPermissions
(BambooEnvironmentData bambooEnvironmentData, com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties props) static void
createOrUpdateEnvironmentPermissions
(BambooEnvironmentData bambooEnvironmentData, com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties props) static void
createOrUpdateParentRepository
(BambooEnvironmentData bambooEnvironmentData, String yaml) static void
createOrUpdatePlan
(BambooEnvironmentData bambooEnvironmentData, com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties) static void
createOrUpdatePlanBranch
(BambooEnvironmentData bambooEnvironmentData, com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties, String branch) static com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties
exportDeployment
(BambooEnvironmentData bambooEnvironmentData, long deploymentProjectId) static com.atlassian.bamboo.specs.api.model.plan.PlanProperties
exportPlan
(BambooEnvironmentData bambooEnvironmentData, PlanKey planKey) static String
getImportUrlByType
(com.atlassian.bamboo.specs.api.model.EntityProperties specs) static void
updatePlanPermission
(BambooEnvironmentData bambooEnvironmentData, com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties planPermissionProperties)
-
Field Details
-
REST_DEPLOYMENT_IMPORT
- See Also:
-
REST_PLAN_PERMISSION_IMPORT
- See Also:
-
REST_DEPLOYMENT_PERMISSION_IMPORT
- See Also:
-
REST_ENVIRONMENT_PERMISSION_IMPORT
- See Also:
-
-
Constructor Details
-
ConfigImportTestUtils
public ConfigImportTestUtils()
-
-
Method Details
-
createOrUpdateParentRepository
public static void createOrUpdateParentRepository(BambooEnvironmentData bambooEnvironmentData, String yaml) throws Exception - Throws:
Exception
-
createOrUpdateDeployment
public static long createOrUpdateDeployment(BambooEnvironmentData bambooEnvironmentData, com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties props) throws Exception - Throws:
Exception
-
createOrUpdateDeploymentPermissions
public static void createOrUpdateDeploymentPermissions(BambooEnvironmentData bambooEnvironmentData, com.atlassian.bamboo.specs.api.model.permission.DeploymentPermissionsProperties props) throws Exception - Throws:
Exception
-
createOrUpdateEnvironmentPermissions
public static void createOrUpdateEnvironmentPermissions(BambooEnvironmentData bambooEnvironmentData, com.atlassian.bamboo.specs.api.model.permission.EnvironmentPermissionsProperties props) throws Exception - Throws:
Exception
-
updatePlanPermission
public static void updatePlanPermission(BambooEnvironmentData bambooEnvironmentData, com.atlassian.bamboo.specs.api.model.permission.PlanPermissionsProperties planPermissionProperties) throws Exception - Throws:
Exception
-
createOrUpdatePlan
public static void createOrUpdatePlan(BambooEnvironmentData bambooEnvironmentData, com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties) throws Exception - Throws:
Exception
-
createOrUpdatePlanBranch
public static void createOrUpdatePlanBranch(BambooEnvironmentData bambooEnvironmentData, com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties, String branch) throws Exception - Throws:
Exception
-
exportPlan
public static com.atlassian.bamboo.specs.api.model.plan.PlanProperties exportPlan(BambooEnvironmentData bambooEnvironmentData, PlanKey planKey) throws Exception - Throws:
Exception
-
exportDeployment
public static com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties exportDeployment(BambooEnvironmentData bambooEnvironmentData, long deploymentProjectId) throws Exception - Throws:
Exception
-
getImportUrlByType
public static String getImportUrlByType(com.atlassian.bamboo.specs.api.model.EntityProperties specs)
-