Class ApplicativeTestResource


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

      • ApplicativeTestResource

        public ApplicativeTestResource​(ApplicativeTestService applicativeTestService,
                                       java.lang.String testSystemSipDirectory)
        Parameters:
        applicativeTestService - service
        testSystemSipDirectory - 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.IOException
        list 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.InterruptedException
        list git branches
        Returns:
        list of git branches
        Throws:
        java.io.IOException
        java.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.InterruptedException
        synchronize git branch
        Returns:
        Status of the command
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • synchronizedTestDirectory

        @POST
        @Path("/sync")
        public javax.ws.rs.core.Response synchronizedTestDirectory()
                                                            throws java.io.IOException,
                                                                   java.lang.InterruptedException
        synchronize tnr directory
        Returns:
        status of the command
        Throws:
        java.io.IOException
        java.lang.InterruptedException