Class ContractsStep
- java.lang.Object
-
- fr.gouv.vitam.functionaltest.cucumber.step.ContractsStep
-
public class ContractsStep extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONTEXT_IDENTIFIER
static java.lang.String
INGEST_CONTRACT_NOT_IN_CONTEXT
-
Constructor Summary
Constructors Constructor Description ContractsStep(World world)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
a_sip_named(java.lang.String fileName)
define a sipvoid
contract_found()
void
contract_not_found()
java.lang.String
getContractType()
com.fasterxml.jackson.databind.JsonNode
getModel()
void
metadata_are(cucumber.api.DataTable dataTable)
void
search_contracts(java.lang.String type, java.lang.String name)
void
setContractType(java.lang.String contractType)
void
setModel(com.fasterxml.jackson.databind.JsonNode model)
void
update_access_contract(java.lang.Integer statusCode)
void
update_contract_by_query(java.lang.String type, java.lang.String queryFilename, java.lang.Integer statusCode)
static void
updateContext(AdminExternalClient adminExternalClient, java.lang.String applicationSessionId, java.lang.String contextIdentifier, java.util.List<PermissionModel> permissions, java.lang.Boolean expectedSuccessStatus)
void
upload_contract(java.lang.String type)
Use Only when the contract is not in the databasevoid
upload_contract_without_failure(java.lang.String type)
Tentative d'import d'un contrat si jamais il n'existe pasvoid
upload_incorrect_contract(java.lang.String type)
Upload a contract that will lead to an error
-
-
-
Field Detail
-
CONTEXT_IDENTIFIER
public static final java.lang.String CONTEXT_IDENTIFIER
- See Also:
- Constant Field Values
-
INGEST_CONTRACT_NOT_IN_CONTEXT
public static final java.lang.String INGEST_CONTRACT_NOT_IN_CONTEXT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContractsStep
public ContractsStep(World world)
-
-
Method Detail
-
getModel
public com.fasterxml.jackson.databind.JsonNode getModel()
- Returns:
- generic Model
-
getContractType
public java.lang.String getContractType()
-
setContractType
public void setContractType(java.lang.String contractType)
-
setModel
public void setModel(com.fasterxml.jackson.databind.JsonNode model)
-
a_sip_named
@Given("^un contract nomm\u00e9 (.*)$") public void a_sip_named(java.lang.String fileName)
define a sip- Parameters:
fileName
- name of a sip
-
upload_contract
@Then("^j\'importe ce contrat de type (.*)") public void upload_contract(java.lang.String type) throws java.lang.Exception
Use Only when the contract is not in the database- Parameters:
type
- the type of contract- Throws:
java.io.IOException
IngestExternalException
java.lang.Exception
-
upload_contract_without_failure
@Then("^j\'importe ce contrat sans \u00e9chec de type (.*)") public void upload_contract_without_failure(java.lang.String type)
Tentative d'import d'un contrat si jamais il n'existe pas- Parameters:
type
-- Throws:
java.io.IOException
-
upload_incorrect_contract
@Then("^j\'importe ce contrat incorrect de type (.*)") public void upload_incorrect_contract(java.lang.String type) throws java.lang.Exception
Upload a contract that will lead to an error- Parameters:
type
- the type of contract- Throws:
java.io.IOException
IngestExternalException
java.lang.Exception
-
updateContext
public static void updateContext(AdminExternalClient adminExternalClient, java.lang.String applicationSessionId, java.lang.String contextIdentifier, java.util.List<PermissionModel> permissions, java.lang.Boolean expectedSuccessStatus) throws InvalidParseOperationException, InvalidCreateOperationException, AccessExternalClientException
-
search_contracts
@When("^je cherche un contrat de type (.*) et nomm\u00e9 (.*)") public void search_contracts(java.lang.String type, java.lang.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(cucumber.api.DataTable dataTable) throws java.lang.Throwable
- Throws:
java.lang.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(java.lang.String type, java.lang.String queryFilename, java.lang.Integer statusCode) throws java.io.IOException, InvalidParseOperationException, AccessExternalClientException, VitamClientException
- Throws:
java.io.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(java.lang.Integer statusCode) throws InvalidParseOperationException, AccessExternalClientException
-
-