public class ContractsStep extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_IDENTIFIER |
static String |
INGEST_CONTRACT_NOT_IN_CONTEXT |
Constructor and Description |
---|
ContractsStep(World world) |
Modifier and Type | Method and Description |
---|---|
void |
a_sip_named(String fileName)
define a sip
|
void |
contract_found_are() |
String |
getContractType() |
com.fasterxml.jackson.databind.JsonNode |
getModel() |
void |
metadata_are(cucumber.api.DataTable dataTable) |
void |
search_contracts(String type,
String name) |
void |
setContractType(String contractType) |
void |
setModel(com.fasterxml.jackson.databind.JsonNode model) |
void |
update_contract_by_query(String type,
String queryFilename,
Integer statusCode) |
static void |
updateContext(AdminExternalClient adminExternalClient,
String applicationSessionId,
String contextIdentifier,
List<PermissionModel> permissions) |
void |
upload_contract_without_fail(String type)
Tentative d'import d'un contrat si jamais il n'existe pas
|
void |
upload_contract(String type)
Use Only when the contract is not in the database
|
void |
upload_incorrect_contract(String type)
Upload a contract that will lead to an error
|
public static final String CONTEXT_IDENTIFIER
public static final String INGEST_CONTRACT_NOT_IN_CONTEXT
public ContractsStep(World world)
public com.fasterxml.jackson.databind.JsonNode getModel()
public String getContractType()
public void setContractType(String contractType)
public void setModel(com.fasterxml.jackson.databind.JsonNode model)
@Given(value="^un contract nomm\u00e9 (.*)$") public void a_sip_named(String fileName)
fileName
- name of a sip@Then(value="^j\'importe ce contrat de type (.*)") public void upload_contract(String type) throws IOException
type
- the type of contractIOException
IngestExternalException
@Then(value="^j\'importe ce contrat sans \u00e9chec de type (.*)") public void upload_contract_without_fail(String type) throws IOException
type
- IOException
public static void updateContext(AdminExternalClient adminExternalClient, String applicationSessionId, String contextIdentifier, List<PermissionModel> permissions) throws InvalidParseOperationException, InvalidCreateOperationException, AccessExternalClientException
@Then(value="^j\'importe ce contrat incorrect de type (.*)") public void upload_incorrect_contract(String type)
type
- the type of contractIOException
IngestExternalException
@When(value="^je cherche un contrat de type (.*) et nomm\u00e9 (.*)") public void search_contracts(String type, String name) throws AccessExternalClientException, InvalidParseOperationException, InvalidCreateOperationException, VitamClientException
@Then(value="^le contrat existe$") public void contract_found_are()
@Then(value="^les m\u00e9tadonn\u00e9es du contrat sont$") public void metadata_are(cucumber.api.DataTable dataTable) throws Throwable
Throwable
@When(value="^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
Copyright © 2018 Vitam. All rights reserved.