Class JobResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.testutils.rest.resource.job.JobResource
-
@Singleton public class JobResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static RestJobBatch
API_DOC_EXAMPLE_CREATE_JOBS
-
Constructor Summary
Constructors Constructor Description JobResource(JobTestService jobTestService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createJobs(RestJobBatch jobBatch)
Create a number of jobs in the given stage with randomised keys and names.
-
-
-
Field Detail
-
API_DOC_EXAMPLE_CREATE_JOBS
public static final RestJobBatch API_DOC_EXAMPLE_CREATE_JOBS
-
-
Constructor Detail
-
JobResource
public JobResource(JobTestService jobTestService)
-
-
Method Detail
-
createJobs
public javax.ws.rs.core.Response createJobs(RestJobBatch jobBatch) throws WebValidationException
Create a number of jobs in the given stage with randomised keys and names.- Parameters:
jobBatch
- details of the jobs to be created.- Throws:
WebValidationException
- if invalid input is provided.
-
-