Package com.atlassian.bamboo.export
Class ConfigImportTestUtils
- java.lang.Object
-
- com.atlassian.bamboo.export.ConfigImportTestUtils
-
public class ConfigImportTestUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
REST_DEPLOYMENT_IMPORT
static String
REST_DEPLOYMENT_PERMISSION_IMPORT
static String
REST_ENVIRONMENT_PERMISSION_IMPORT
static String
REST_PLAN_PERMISSION_IMPORT
-
Constructor Summary
Constructors Constructor Description ConfigImportTestUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
REST_DEPLOYMENT_IMPORT
public static final String REST_DEPLOYMENT_IMPORT
- See Also:
- Constant Field Values
-
REST_PLAN_PERMISSION_IMPORT
public static final String REST_PLAN_PERMISSION_IMPORT
- See Also:
- Constant Field Values
-
REST_DEPLOYMENT_PERMISSION_IMPORT
public static final String REST_DEPLOYMENT_PERMISSION_IMPORT
- See Also:
- Constant Field Values
-
REST_ENVIRONMENT_PERMISSION_IMPORT
public static final String REST_ENVIRONMENT_PERMISSION_IMPORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
-