Class World
java.lang.Object
fr.gouv.vitam.functionaltest.cucumber.step.World
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
Workspace clientgetNamedOperationId
(String name) static String
getOperationId
(String testSet) Get an operation id for the test setgetQuery()
Storage clientint
Workspace clientvoid
init()
initialization of clientsetAtrFile
(Path atrFile) setContractId
(String contractId) void
setDipFile
(Path dipFile) void
setEliminationOperationId
(String eliminationOperationId) void
setNamedOperationId
(String name, String namedOperationId) void
setObjectGroupId
(String objectGroupId) void
setOperationId
(String operationId) static void
setOperationId
(String testSet, String operationId) Set an operation id for a test setvoid
setProjectId
(String projectId) void
void
setSipFile
(Path path) void
setTransactionId
(String transactionId) setTransferFile
(Path transferFile) void
void
Clear the map of operations ids by testSet.void
the_test_are_done_on_contract
(String contractId) define a contractIdvoid
the_test_are_done_on_tenant
(int tenantId) define a tenantvoid
the_tests_are_done_with_application_session_id
(String applicationSessionId) defines application session idvoid
writeOperationId
(io.cucumber.java.Scenario scenario) write operation ID on cucumber report
-
Field Details
-
TNR_BASE_DIRECTORY
- See Also:
-
DEFAULT_ACCESS_CONTRACT_NAME
- See Also:
-
-
Constructor Details
-
World
public World()
-
-
Method Details
-
init
initialization of client- Throws:
IOException
-
the_test_are_done_on_tenant
@Given("^les tests effectu\u00e9s sur le tenant (\\d+)$") public void the_test_are_done_on_tenant(int tenantId) throws Throwable define a tenant- Parameters:
tenantId
- id of the tenant- Throws:
Throwable
-
the_test_are_done_on_contract
@Given("^les tests effectu\u00e9s sur le contrat id (.*)$") public void the_test_are_done_on_contract(String contractId) throws Throwable define a contractId- Parameters:
contractId
- id of the access contract- Throws:
Throwable
-
the_tests_are_done_with_application_session_id
@Given("^les tests effectu\u00e9s avec l\'identifiant de transaction (.*)$") public void the_tests_are_done_with_application_session_id(String applicationSessionId) defines application session id- Parameters:
applicationSessionId
- id of the application session- Throws:
Throwable
-
the_reinit_of_test_set
@Given("^les jeux de tests r\u00e9initialis\u00e9s$") public void the_reinit_of_test_set()Clear the map of operations ids by testSet. -
getTenantId
public int getTenantId()- Returns:
- tenant ID
-
getIngestClient
- Returns:
- ingest client
-
getAccessClient
- Returns:
- access client
-
getAdminClient
- Returns:
- admin client
-
getWorkspaceClient
Workspace client- Returns:
- workspaceClient
-
getLogbookOperationsClient
Workspace client- Returns:
- logbookOperationsClient
-
getStorageClient
Storage client- Returns:
- storageClient
-
getOperationId
- Returns:
- operation ID
-
setOperationId
- Parameters:
operationId
- operation ID
-
getEliminationOperationId
-
setEliminationOperationId
-
getQuery
- Returns:
- the dsl query
-
setQuery
- Parameters:
query
- the query
-
getOperationId
Get an operation id for the test set- Parameters:
testSet
- test set identifier- Returns:
- operation id
-
setOperationId
Set an operation id for a test set- Parameters:
testSet
- test set identifieroperationId
- operation id
-
getNamedOperationId
-
setNamedOperationId
-
getUnitId
- Returns:
- unitId
-
setUnitId
- Parameters:
unitId
-
-
setObjectGroupId
- Parameters:
objectGroupId
-
-
getObjectGroupId
- Returns:
- objectGroupId
-
getContractId
- Returns:
- contractId
-
setContractId
- Parameters:
contractId
-- Returns:
- this
-
getApplicationSessionId
-
getLogbookService
-
getAccessService
-
finish
public void finish() -
writeOperationId
public void writeOperationId(io.cucumber.java.Scenario scenario) write operation ID on cucumber report- Parameters:
scenario
-
-
getBaseDirectory
- Returns:
- base directory on .feature file
-
getAdminClientV2
-
getCollectExternalClient
-
getSipFile
-
setSipFile
-
getDipFile
-
setDipFile
-
getTransferFile
-
setTransferFile
-
getAtrFile
-
setAtrFile
-
getProjectId
-
setProjectId
-
getTransactionId
-
setTransactionId
-