Class CollectStep
java.lang.Object
fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
fr.gouv.vitam.functionaltest.cucumber.step.CollectStep
step defining collect behaviors
-
Nested Class Summary
Nested classes/interfaces inherited from class fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
CommonStep.MyRunnable -
Field Summary
FieldsFields inherited from class fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckOperationProject(String action) Check result of actionvoidThis check is done before every scenario and it avoids failures if collect (external) service is not deployed!voidvoidvoidvoidvoidgenerated_manifest_contains_binary_objects(int nbBinaryObjects) voidvoidgenerated_manifest_contains_n_times_the_tag(int count, String tag) voidgenerated_manifest_contains_physical_objects(int nbPhysicalObjects) voidgenerated_manifest_contains_units(int nbUnits) voidvoidvoidi_use_the_following_file_query(String jsonFilename) define a json from a file to reuse it aftervoidvoidvoidvoidpurge projectvoidvoidvoidvoidshould_upload_metadata_csv(String arboFileName) voidshould_upload_metadata_jsonl(String arboFileName) voidshould_upload_project_zip(String arboFileName) voidshould_upload_sip_zip(String arboFileName) voidupdate_project(String name) update field name of projectvoidupdate_transaction(String name) update field name of transactionvoiduploadBinary(String binaryFilename) voidvoidvoidvoidverifyKOStatus(String status) voidverifyStatus(String status) voidverifyTransactionStatus(String status) booleanwaitTransaction(String status, int nbTry, long timeWait, TimeUnit timeUnit) Methods inherited from class fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
checkOperationStatus, runInVitamThread
-
Field Details
-
TRANSACTION_RETURN_AN_ERROR
- See Also:
-
-
Constructor Details
-
CollectStep
-
-
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
- 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
- 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
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
- Throws:
Throwable
-
find_transaction
- Throws:
Throwable
-
uploadUnit
- Throws:
Exception
-
getUnitByDslQuery
@When("^je recherche l\'au par rapport \u00e0 son titre") public void getUnitByDslQuery() throws Exception- Throws:
Exception
-
uploadGot
- Throws:
Exception
-
uploadBinary
@When("^j\'upload le fichier suivant (.*)$") public void uploadBinary(String binaryFilename) throws Exception - Throws:
Exception
-
closeTransaction
- 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
-
verifyTransactionStatus
@Given("^je constate que la transaction passe au statut (.*)$") public void verifyTransactionStatus(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
- 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_sip_zip
@When("^j\'importe le sip suivant (.*)$") public void should_upload_sip_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
-
search_archive_unit
@When("^je recherche les unit\u00e9s archivistiques de la transaction$") public void search_archive_unit() throws Throwable- Throws:
Throwable
-
downloadTransactionSip
@When("^je t\u00e9l\u00e9charge le SIP de la transaction$") public void downloadTransactionSip() throws Exception- Throws:
Exception
-
generated_manifest_contains_n_times_the_tag
@Then("^le manifest g\u00e9n\u00e9r\u00e9 de la transaction contient (.*) balise[s]? de type (.*)$") public void generated_manifest_contains_n_times_the_tag(int count, String tag) throws IOException - Throws:
IOException
-
generated_manifest_contains_complex_value
@Then("^le manifest g\u00e9n\u00e9r\u00e9 de la transaction contient la cha\u00eene de caract\u00e8res$") public void generated_manifest_contains_complex_value(String value) throws IOException - Throws:
IOException
-
generated_manifest_contains_units
@Then("^le manifest g\u00e9n\u00e9r\u00e9 de la transaction contient (.*) unit\u00e9[s]? archivistique[s]?$") public void generated_manifest_contains_units(int nbUnits) throws IOException - Throws:
IOException
-
generated_manifest_contains_binary_objects
@Then("^le manifest g\u00e9n\u00e9r\u00e9 de la transaction contient (.*) objet[s]? binaire[s]?$") public void generated_manifest_contains_binary_objects(int nbBinaryObjects) throws IOException - Throws:
IOException
-
generated_manifest_contains_physical_objects
@Then("^le manifest g\u00e9n\u00e9r\u00e9 de la transaction contient (.*) objet[s]? physique[s]?$") public void generated_manifest_contains_physical_objects(int nbPhysicalObjects) throws IOException - Throws:
IOException
-
generated_manifest_contains_value
@Then("^le manifest g\u00e9n\u00e9r\u00e9 de la transaction contient (?:la|les) valeur[s]? (.*)$") public void generated_manifest_contains_value(String values) throws IOException - Throws:
IOException
-