java.lang.Object
fr.gouv.vitam.functionaltest.cucumber.step.World

public class World extends Object
  • Field Details

  • Constructor Details

    • World

      public World()
  • Method Details

    • init

      public void init() throws IOException
      initialization of client
      Throws:
      IOException
    • the_test_are_done_on_tenant

      @Given("^les tests effectu\u00e9s sur le tenant (\\d+)$") public void the_test_are_done_on_tenant(int tenantId) throws Throwable
      define a tenant
      Parameters:
      tenantId - id of the tenant
      Throws:
      Throwable
    • the_test_are_done_on_contract

      @Given("^les tests effectu\u00e9s sur le contrat id (.*)$") public void the_test_are_done_on_contract(String contractId) throws Throwable
      define a contractId
      Parameters:
      contractId - id of the access contract
      Throws:
      Throwable
    • the_tests_are_done_with_application_session_id

      @Given("^les tests effectu\u00e9s avec l\'identifiant de transaction (.*)$") public void the_tests_are_done_with_application_session_id(String applicationSessionId)
      defines application session id
      Parameters:
      applicationSessionId - id of the application session
      Throws:
      Throwable
    • the_reinit_of_test_set

      @Given("^les jeux de tests r\u00e9initialis\u00e9s$") public void the_reinit_of_test_set()
      Clear the map of operations ids by testSet.
    • getTenantId

      public int getTenantId()
      Returns:
      tenant ID
    • getIngestClient

      public IngestExternalClient getIngestClient()
      Returns:
      ingest client
    • getAccessClient

      public AccessExternalClient getAccessClient()
      Returns:
      access client
    • getAdminClient

      public AdminExternalClient getAdminClient()
      Returns:
      admin client
    • getWorkspaceClient

      public WorkspaceClient getWorkspaceClient()
      Workspace client
      Returns:
      workspaceClient
    • getLogbookOperationsClient

      public LogbookOperationsClient getLogbookOperationsClient()
      Workspace client
      Returns:
      logbookOperationsClient
    • getStorageClient

      public StorageClient getStorageClient()
      Storage client
      Returns:
      storageClient
    • getOperationId

      public String getOperationId()
      Returns:
      operation ID
    • setOperationId

      public void setOperationId(String operationId)
      Parameters:
      operationId - operation ID
    • getEliminationOperationId

      public String getEliminationOperationId()
    • setEliminationOperationId

      public void setEliminationOperationId(String eliminationOperationId)
    • getQuery

      public String getQuery()
      Returns:
      the dsl query
    • setQuery

      public void setQuery(String query)
      Parameters:
      query - the query
    • getOperationId

      public static String getOperationId(String testSet)
      Get an operation id for the test set
      Parameters:
      testSet - test set identifier
      Returns:
      operation id
    • setOperationId

      public static void setOperationId(String testSet, String operationId)
      Set an operation id for a test set
      Parameters:
      testSet - test set identifier
      operationId - operation id
    • getNamedOperationId

      public String getNamedOperationId(String name)
    • setNamedOperationId

      public void setNamedOperationId(String name, String namedOperationId)
    • getUnitId

      public String getUnitId()
      Returns:
      unitId
    • setUnitId

      public void setUnitId(String unitId)
      Parameters:
      unitId -
    • setObjectGroupId

      public void setObjectGroupId(String objectGroupId)
      Parameters:
      objectGroupId -
    • getObjectGroupId

      public String getObjectGroupId()
      Returns:
      objectGroupId
    • getContractId

      public String getContractId()
      Returns:
      contractId
    • setContractId

      @Given("^J\'utilise le contrat d\'access (.*)$") public World setContractId(String contractId)
      Parameters:
      contractId -
      Returns:
      this
    • getApplicationSessionId

      public String getApplicationSessionId()
    • getLogbookService

      public LogbookService getLogbookService()
    • getAccessService

      public AccessService getAccessService()
    • finish

      public void finish()
    • writeOperationId

      public void writeOperationId(io.cucumber.java.Scenario scenario)
      write operation ID on cucumber report
      Parameters:
      scenario -
    • getBaseDirectory

      public String getBaseDirectory()
      Returns:
      base directory on .feature file
    • getAdminClientV2

      public AccessExternalClientV2 getAdminClientV2()
    • getCollectExternalClient

      public CollectExternalClient getCollectExternalClient()
    • getSipFile

      public Path getSipFile()
    • setSipFile

      public void setSipFile(Path path)
    • getDipFile

      public Path getDipFile()
    • setDipFile

      public void setDipFile(Path dipFile)
    • getTransferFile

      public Path getTransferFile()
    • setTransferFile

      public World setTransferFile(Path transferFile)
    • getAtrFile

      public Path getAtrFile()
    • setAtrFile

      public World setAtrFile(Path atrFile)
    • getProjectId

      public String getProjectId()
    • setProjectId

      public void setProjectId(String projectId)
    • getTransactionId

      public String getTransactionId()
    • setTransactionId

      public void setTransactionId(String transactionId)