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
Fields inherited from class fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkOperationProject
(String action) Check result of actionvoid
This check is done before every scenario and it avoids failures if collect (external) service is not deployed!void
closeTransaction
(String status) void
void
void
void
i_use_the_following_file_query
(String jsonFilename) define a json from a file to reuse it aftervoid
void
void
void
purge projectvoid
void
void
should_upload_metadata_csv
(String arboFileName) void
should_upload_metadata_jsonl
(String arboFileName) void
should_upload_project_zip
(String arboFileName) void
update_project
(String name) update field name of projectvoid
update_transaction
(String name) update field name of transactionvoid
uploadBinary
(String binaryFilename) void
void
void
void
verifyKOStatus
(String status) void
verifyOkStatus
(String status) void
verifyStatus
(String status) boolean
waitTransaction
(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
@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
- 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
-