Class CollectStep

java.lang.Object
fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
fr.gouv.vitam.functionaltest.cucumber.step.CollectStep

public class CollectStep extends CommonStep
step defining collect behaviors
  • Field Details

  • Constructor Details

    • CollectStep

      public CollectStep(World world)
  • Method Details

    • checkSkippableScenario

      @Given("^Le module de collect est deploy\u00e9") public void checkSkippableScenario()
      This check is done before every scenario and it avoids failures if collect (external) service is not deployed!
    • init_project

      @When("^j\'initialise le project") public void init_project() throws Throwable
      Throws:
      Throwable
    • i_use_the_following_file_query

      @When("^j\'utilise le fichier json suivant (.*)$") public void i_use_the_following_file_query(String jsonFilename) throws Throwable
      define a json from a file to reuse it after
      Parameters:
      jsonFilename - name of the file containing the json
      Throws:
      Throwable
    • find_project

      @When("^je recherche le projet") public void find_project() throws Throwable
      Throws:
      Throwable
    • update_project

      @When("^je met a jour le projet avec le nom (.*)$") public void update_project(String name) throws Throwable
      update field name of project
      Parameters:
      name -
      Throws:
      Throwable
    • update_transaction

      @When("^je met a jour la transaction avec le nom (.*)$") public void update_transaction(String name) throws Exception
      update field name of transaction
      Parameters:
      name -
      Throws:
      Exception
    • purge_project

      @When("^je supprime le projet") public void purge_project() throws Throwable
      purge project
      Throws:
      Throwable
    • checkOperationProject

      @Then("^le projet est (.*) en succ\u00e8s$") public void checkOperationProject(String action) throws InvalidParseOperationException
      Check result of action
      Parameters:
      action -
      Throws:
      InvalidParseOperationException
    • init_transaction

      @When("^j\'initialise une transaction") public void init_transaction() throws Throwable
      Throws:
      Throwable
    • find_transaction

      @When("^je recherche la transaction") public void find_transaction() throws Throwable
      Throws:
      Throwable
    • uploadUnit

      @When("^je cr\u00e9e une au") public void uploadUnit() throws Exception
      Throws:
      Exception
    • getUnitByDslQuery

      @When("^je recherche l\'au par rapport \u00e0 son titre") public void getUnitByDslQuery() throws Exception
      Throws:
      Exception
    • uploadGot

      @When("^je cr\u00e9e un GOT") public void uploadGot() throws Exception
      Throws:
      Exception
    • uploadBinary

      @When("^j\'upload le fichier suivant (.*)$") public void uploadBinary(String binaryFilename) throws Exception
      Throws:
      Exception
    • closeTransaction

      @When("^je cl\u00f4ture et je constate son statut (.*)$") public void closeTransaction(String status) throws Exception
      Throws:
      Exception
    • sentSip

      @When("^j\'envoie le SIP et je constate son statut (.*)$") public void sentSip(String status) throws Exception
      Throws:
      Exception
    • waitTransaction

      public boolean waitTransaction(String status, int nbTry, long timeWait, TimeUnit timeUnit) throws VitamException
      Throws:
      VitamException
    • verifyOkStatus

      @Given("^je re\u00e7ois un statut OK depuis l\'ingest et je constate son statut (.*)$") public void verifyOkStatus(String status) throws Exception
      Throws:
      Exception
    • verifyKOStatus

      @Given("^je re\u00e7ois un statut KO depuis l\'ingest et je constate son statut (.*)$") public void verifyKOStatus(String status) throws Exception
      Throws:
      Exception
    • verifyStatus

      public void verifyStatus(String status) throws Exception
      Throws:
      Exception
    • verify_rattachement

      @When("^je v\u00e9rifie que l\'unit\u00e9 est rattach\u00e9 au noeud de l\'arbre de positionnement$") public void verify_rattachement() throws Throwable
      Throws:
      Throwable
    • should_upload_project_zip

      @When("^j\'envoie l\'arborescence bureautique suivante (.*)$") public void should_upload_project_zip(String arboFileName) throws Exception
      Throws:
      Exception
    • should_upload_metadata_csv

      @When("^j\'envoie un fichier de mise \u00e0 jour CSV (.*)$") public void should_upload_metadata_csv(String arboFileName) throws Exception
      Throws:
      Exception
    • should_upload_metadata_jsonl

      @When("^j\'envoie un fichier de mise \u00e0 jour JSONL (.*)$") public void should_upload_metadata_jsonl(String arboFileName) throws Exception
      Throws:
      Exception
    • json_metadata_are_for_particular_result

      @When("^je constate que des m\u00e9tadonn\u00e9es correspondent au fichier json (.+)$") public void json_metadata_are_for_particular_result(String filename) throws Throwable
      Throws:
      Throwable
    • should_find_au

      @When("^je constate qu\'une AU ainsi qu\'un GOT sont cr\u00e9\u00e9s") public void should_find_au() throws Exception
      Throws:
      Exception