Class ApplicativeTestResource

java.lang.Object
fr.gouv.vitam.ihmrecette.appserver.applicativetest.ApplicativeTestResource

@Path("/v1/api/applicative-test") public class ApplicativeTestResource extends Object
resource to manage system test
  • Constructor Details

    • ApplicativeTestResource

      public ApplicativeTestResource(ApplicativeTestService applicativeTestService, String testSystemSipDirectory)
      Parameters:
      applicativeTestService - service
      testSystemSipDirectory - 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 IOException
      list 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, InterruptedException
      list 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, InterruptedException
      synchronize tnr directory
      Returns:
      status of the command
      Throws:
      IOException
      InterruptedException