Class ApplicativeTestResource
- java.lang.Object
-
- fr.gouv.vitam.ihmrecette.appserver.applicativetest.ApplicativeTestResource
-
@Path("/v1/api/applicative-test") public class ApplicativeTestResource extends java.lang.Objectresource to manage system test
-
-
Constructor Summary
Constructors Constructor Description ApplicativeTestResource(ApplicativeTestService applicativeTestService, java.lang.String testSystemSipDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponselaunchCucumberPiecesTest(java.lang.String pieces)launch cucumber testjavax.ws.rs.core.ResponselaunchCucumberTest()launch cucumber testjavax.ws.rs.core.ResponselistGitBranches()list git branchesjavax.ws.rs.core.ResponselistReports()list the report of system testjavax.ws.rs.core.ResponsereportByName(java.lang.String fileName)PDL return a specific report according to his name.javax.ws.rs.core.Responsestatus()get status of the testjavax.ws.rs.core.ResponsesynchronizedPiecesTestDirectoryWithBranch(java.lang.String branch)synchronize git branchjavax.ws.rs.core.ResponsesynchronizedTestDirectory()synchronize tnr directory
-
-
-
Constructor Detail
-
ApplicativeTestResource
public ApplicativeTestResource(ApplicativeTestService applicativeTestService, java.lang.String testSystemSipDirectory)
- Parameters:
applicativeTestService- servicetestSystemSipDirectory- base path on feature
-
-
Method Detail
-
launchCucumberTest
@POST @Produces("application/json") public javax.ws.rs.core.Response launchCucumberTest()launch cucumber test- Returns:
- 202 if test are in progress, 200 if the previous test are done
-
launchCucumberPiecesTest
@POST @Path("/testFeature") @Produces("application/json") public javax.ws.rs.core.Response launchCucumberPiecesTest(java.lang.String pieces)launch cucumber test- Returns:
- 200 if the previous test are done
-
status
@HEAD public javax.ws.rs.core.Response status()
get status of the test- Returns:
- 202 if test are in progress, 200 if the previous test are done
-
listReports
@GET @Produces("application/json") public javax.ws.rs.core.Response listReports() throws java.io.IOExceptionlist the report of system test- Returns:
- list of report
- Throws:
java.io.IOException
-
listGitBranches
@GET @Path("/gitBranches") @Produces("application/json") public javax.ws.rs.core.Response listGitBranches() throws java.io.IOException, java.lang.InterruptedExceptionlist git branches- Returns:
- list of git branches
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
reportByName
@GET @Path("/{report}") @Produces("application/octet-stream") public javax.ws.rs.core.Response reportByName(@PathParam("report") java.lang.String fileName)PDL return a specific report according to his name.- Parameters:
fileName- name of the report- Returns:
- 200 if report is ok, 404 if exception occurs
-
synchronizedPiecesTestDirectoryWithBranch
@POST @Path("/syncTnrPiecesWithBranch") @Produces("application/json") public javax.ws.rs.core.Response synchronizedPiecesTestDirectoryWithBranch(java.lang.String branch) throws java.io.IOException, java.lang.InterruptedExceptionsynchronize git branch- Returns:
- Status of the command
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
synchronizedTestDirectory
@POST @Path("/sync") public javax.ws.rs.core.Response synchronizedTestDirectory() throws java.io.IOException, java.lang.InterruptedExceptionsynchronize tnr directory- Returns:
- status of the command
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
-