Class ApplicativeTestResource
java.lang.Object
fr.gouv.vitam.ihmrecette.appserver.applicativetest.ApplicativeTestResource
resource to manage system test
-
Constructor Summary
ConstructorDescriptionApplicativeTestResource
(ApplicativeTestService applicativeTestService, String testSystemSipDirectory) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
launchCucumberPiecesTest
(String pieces) launch cucumber testjavax.ws.rs.core.Response
launch cucumber testjavax.ws.rs.core.Response
list git branchesjavax.ws.rs.core.Response
list the report of system testjavax.ws.rs.core.Response
reportByName
(String fileName) PDL return a specific report according to his name.javax.ws.rs.core.Response
status()
get status of the testjavax.ws.rs.core.Response
synchronize git branchjavax.ws.rs.core.Response
synchronize tnr directory
-
Constructor Details
-
ApplicativeTestResource
public ApplicativeTestResource(ApplicativeTestService applicativeTestService, String testSystemSipDirectory) - Parameters:
applicativeTestService
- servicetestSystemSipDirectory
- base path on feature
-
-
Method Details
-
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(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 IOExceptionlist the report of system test- Returns:
- list of report
- Throws:
IOException
-
listGitBranches
@GET @Path("/gitBranches") @Produces("application/json") public javax.ws.rs.core.Response listGitBranches() throws IOException, InterruptedExceptionlist git branches- Returns:
- list of git branches
- Throws:
IOException
InterruptedException
-
reportByName
@GET @Path("/{report}") @Produces("application/octet-stream") public javax.ws.rs.core.Response reportByName(@PathParam("report") 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(String branch) throws IOException, InterruptedException synchronize git branch- Returns:
- Status of the command
- Throws:
IOException
InterruptedException
-
synchronizedTestDirectory
@POST @Path("/sync") public javax.ws.rs.core.Response synchronizedTestDirectory() throws IOException, InterruptedExceptionsynchronize tnr directory- Returns:
- status of the command
- Throws:
IOException
InterruptedException
-