Class StageResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.testutils.rest.resource.stage.StageResource
-
@Singleton public class StageResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static RestStageBatch
API_DOC_EXAMPLE_CREATE_STAGES
static RestStageBatch.RestStageJobBatch
API_DOC_EXAMPLE_JOB_BATCH
-
Constructor Summary
Constructors Constructor Description StageResource(StageTestService stageTestService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createStages(RestStageBatch stageBatch)
Create a number of stages in the given plan with randomised names.
-
-
-
Field Detail
-
API_DOC_EXAMPLE_JOB_BATCH
public static final RestStageBatch.RestStageJobBatch API_DOC_EXAMPLE_JOB_BATCH
-
API_DOC_EXAMPLE_CREATE_STAGES
public static final RestStageBatch API_DOC_EXAMPLE_CREATE_STAGES
-
-
Constructor Detail
-
StageResource
public StageResource(StageTestService stageTestService)
-
-
Method Detail
-
createStages
public javax.ws.rs.core.Response createStages(RestStageBatch stageBatch) throws WebValidationException
Create a number of stages in the given plan with randomised names. Each stage can optionally be created with a random number of jobs within a given range.- Parameters:
stageBatch
- details of the stages and jobs to be created.- Throws:
WebValidationException
- if invalid input is provided.
-
-