Class ContractsStep
java.lang.Object
fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
fr.gouv.vitam.functionaltest.cucumber.step.ContractsStep
-
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
a_contract_json_named
(String fileName) define a contract json filevoid
void
com.fasterxml.jackson.databind.JsonNode
getModel()
void
metadata_are
(io.cucumber.datatable.DataTable dataTable) void
search_contracts
(String type, String name) void
setContractType
(String contractType) void
setModel
(com.fasterxml.jackson.databind.JsonNode model) void
update_access_contract
(Integer statusCode) void
update_contract_by_query
(String type, String queryFilename, Integer statusCode) static void
updateContext
(AdminExternalClient adminExternalClient, String applicationSessionId, String contextIdentifier, List<PermissionModel> permissions, Boolean expectedSuccessStatus) void
upload_contract
(String type) Use Only when the contract is not in the databasevoid
Tentative d'import d'un contrat si jamais il n'existe pasvoid
Upload a contract that will lead to an errorvoid
verify_contrat_or_import
(String contractNames, String type, String fileName) check if contract are imported or import themMethods inherited from class fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
checkOperationStatus, runInVitamThread
-
Field Details
-
CONTEXT_IDENTIFIER
- See Also:
-
INGEST_CONTRACT_NOT_IN_CONTEXT
- See Also:
-
-
Constructor Details
-
ContractsStep
-
-
Method Details
-
getModel
public com.fasterxml.jackson.databind.JsonNode getModel()- Returns:
- generic Model
-
getContractType
-
setContractType
-
setModel
public void setModel(com.fasterxml.jackson.databind.JsonNode model) -
a_contract_json_named
define a contract json file- Parameters:
fileName
- name of contract json file
-
upload_contract
@Then("^j\'importe ce contrat de type (.*)") public void upload_contract(String type) throws Exception Use Only when the contract is not in the database- Parameters:
type
- the type of contract- Throws:
IOException
IngestExternalException
Exception
-
upload_contract_without_failure
@Then("^j\'importe ce contrat sans \u00e9chec de type (.*)") public void upload_contract_without_failure(String type) Tentative d'import d'un contrat si jamais il n'existe pas- Parameters:
type
-- Throws:
IOException
-
upload_incorrect_contract
@Then("^j\'importe ce contrat incorrect de type (.*)") public void upload_incorrect_contract(String type) throws Exception Upload a contract that will lead to an error- Parameters:
type
- the type of contract- Throws:
IOException
IngestExternalException
Exception
-
updateContext
public static void updateContext(AdminExternalClient adminExternalClient, String applicationSessionId, String contextIdentifier, List<PermissionModel> permissions, Boolean expectedSuccessStatus) throws InvalidParseOperationException, InvalidCreateOperationException, AccessExternalClientException -
search_contracts
@When("^je cherche un contrat de type (.*) et nomm\u00e9 (.*)") public void search_contracts(String type, String name) throws AccessExternalClientException, InvalidParseOperationException, InvalidCreateOperationException, VitamClientException -
contract_found
@Then("^le contrat existe$") public void contract_found() -
contract_not_found
@Then("^le contrat n\'existe pas$") public void contract_not_found() -
metadata_are
@Then("^les m\u00e9tadonn\u00e9es du contrat sont$") public void metadata_are(io.cucumber.datatable.DataTable dataTable) throws Throwable - Throws:
Throwable
-
update_contract_by_query
@When("^je modifie un contrat de type (.*) avec le fichier de requ\u00eate suivant (.*) le statut de la requ\u00eate est (.*)$") public void update_contract_by_query(String type, String queryFilename, Integer statusCode) throws IOException, InvalidParseOperationException, AccessExternalClientException, VitamClientException -
update_access_contract
@When("^je modifie un contrat d\'acc\u00e8s et le statut de la requ\u00eate est (.*)$") public void update_access_contract(Integer statusCode) throws InvalidParseOperationException, AccessExternalClientException -
verify_contrat_or_import
@Then("^le[s]? contract[s]? (.*) de type (.*) (?:d\u00e9finie|d\u00e9finies) dans le fichier (.*)$") public void verify_contrat_or_import(String contractNames, String type, String fileName) throws Exception check if contract are imported or import them- Parameters:
contractNames
- list of contract's name to verifytype
- contract typefileName
- contract json file- Throws:
Exception
-