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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
CommonStep.MyRunnable
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TRANSACTION_RETURN_AN_ERROR
-
Fields inherited from class fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
world
-
-
Constructor Summary
Constructors Constructor Description CollectStep(World world)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkOperationProject(java.lang.String action)
Check result of actionvoid
checkSkippableScenario()
This check is done before every scenario and it avoids failures if collect (external) service is not deployed!void
closeTransaction(java.lang.String status)
void
find_project()
void
find_transaction()
void
getUnitByDslQuery()
void
i_use_the_following_file_query(java.lang.String jsonFilename)
define a json from a file to reuse it aftervoid
init_project()
void
init_transaction()
void
json_metadata_are_for_particular_result(java.lang.String filename)
void
purge_project()
purge projectvoid
sentSip(java.lang.String status)
void
should_find_au()
void
should_upload_metadata_csv(java.lang.String arboFileName)
void
should_upload_metadata_jsonl(java.lang.String arboFileName)
void
should_upload_project_zip(java.lang.String arboFileName)
void
update_project(java.lang.String name)
update field name of projectvoid
update_transaction(java.lang.String name)
update field name of transactionvoid
uploadBinary(java.lang.String binaryFilename)
void
uploadGot()
void
uploadUnit()
void
verifyKOStatus(java.lang.String status)
void
verifyOkStatus(java.lang.String status)
void
verifyStatus(java.lang.String status)
boolean
waitTransaction(java.lang.String status, int nbTry, long timeWait, java.util.concurrent.TimeUnit timeUnit)
-
Methods inherited from class fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
checkOperationStatus, runInVitamThread
-
-
-
-
Field Detail
-
TRANSACTION_RETURN_AN_ERROR
public static final java.lang.String TRANSACTION_RETURN_AN_ERROR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CollectStep
public CollectStep(World world)
-
-
Method Detail
-
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 java.lang.Throwable
- Throws:
java.lang.Throwable
-
i_use_the_following_file_query
@When("^j\'utilise le fichier json suivant (.*)$") public void i_use_the_following_file_query(java.lang.String jsonFilename) throws java.lang.Throwable
define a json from a file to reuse it after- Parameters:
jsonFilename
- name of the file containing the json- Throws:
java.lang.Throwable
-
find_project
@When("^je recherche le projet") public void find_project() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
update_project
@When("^je met a jour le projet avec le nom (.*)$") public void update_project(java.lang.String name) throws java.lang.Throwable
update field name of project- Parameters:
name
-- Throws:
java.lang.Throwable
-
update_transaction
@When("^je met a jour la transaction avec le nom (.*)$") public void update_transaction(java.lang.String name) throws java.lang.Exception
update field name of transaction- Parameters:
name
-- Throws:
java.lang.Exception
-
purge_project
@When("^je supprime le projet") public void purge_project() throws java.lang.Throwable
purge project- Throws:
java.lang.Throwable
-
checkOperationProject
@Then("^le projet est (.*) en succ\u00e8s$") public void checkOperationProject(java.lang.String action) throws InvalidParseOperationException
Check result of action- Parameters:
action
-- Throws:
InvalidParseOperationException
-
init_transaction
@When("^j\'initialise une transaction") public void init_transaction() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
find_transaction
@When("^je recherche la transaction") public void find_transaction() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
uploadUnit
@When("^je cr\u00e9e une au") public void uploadUnit() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getUnitByDslQuery
@When("^je recherche l\'au par rapport \u00e0 son titre") public void getUnitByDslQuery() throws java.lang.Exception
- Throws:
java.lang.Exception
-
uploadGot
@When("^je cr\u00e9e un GOT") public void uploadGot() throws java.lang.Exception
- Throws:
java.lang.Exception
-
uploadBinary
@When("^j\'upload le fichier suivant (.*)$") public void uploadBinary(java.lang.String binaryFilename) throws java.lang.Exception
- Throws:
java.lang.Exception
-
closeTransaction
@When("^je cl\u00f4ture et je constate son statut (.*)$") public void closeTransaction(java.lang.String status) throws java.lang.Exception
- Throws:
java.lang.Exception
-
sentSip
@When("^j\'envoie le SIP et je constate son statut (.*)$") public void sentSip(java.lang.String status) throws java.lang.Exception
- Throws:
java.lang.Exception
-
waitTransaction
public boolean waitTransaction(java.lang.String status, int nbTry, long timeWait, java.util.concurrent.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(java.lang.String status) throws java.lang.Exception
- Throws:
java.lang.Exception
-
verifyKOStatus
@Given("^je re\u00e7ois un statut KO depuis l\'ingest et je constate son statut (.*)$") public void verifyKOStatus(java.lang.String status) throws java.lang.Exception
- Throws:
java.lang.Exception
-
verifyStatus
public void verifyStatus(java.lang.String status) throws java.lang.Exception
- Throws:
java.lang.Exception
-
should_upload_project_zip
@When("^j\'envoie l\'arborescence bureautique suivante (.*)$") public void should_upload_project_zip(java.lang.String arboFileName) throws java.lang.Exception
- Throws:
java.lang.Exception
-
should_upload_metadata_csv
@When("^j\'envoie un fichier de mise \u00e0 jour CSV (.*)$") public void should_upload_metadata_csv(java.lang.String arboFileName) throws java.lang.Exception
- Throws:
java.lang.Exception
-
should_upload_metadata_jsonl
@When("^j\'envoie un fichier de mise \u00e0 jour JSONL (.*)$") public void should_upload_metadata_jsonl(java.lang.String arboFileName) throws java.lang.Exception
- Throws:
java.lang.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(java.lang.String filename) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
should_find_au
@When("^je constate qu\'une AU ainsi qu\'un GOT sont cr\u00e9\u00e9s") public void should_find_au() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-