Class World
- java.lang.Object
-
- fr.gouv.vitam.functionaltest.cucumber.step.World
-
public class World extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_ACCESS_CONTRACT_NAME
static java.lang.String
TNR_BASE_DIRECTORY
-
Constructor Summary
Constructors Constructor Description World()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finish()
AccessExternalClient
getAccessClient()
AccessService
getAccessService()
AdminExternalClient
getAdminClient()
AccessExternalClientV2
getAdminClientV2()
java.lang.String
getApplicationSessionId()
java.nio.file.Path
getAtrFile()
java.lang.String
getBaseDirectory()
CollectExternalClient
getCollectExternalClient()
java.lang.String
getContractId()
java.nio.file.Path
getDipFile()
java.lang.String
getEliminationOperationId()
IngestExternalClient
getIngestClient()
LogbookOperationsClient
getLogbookOperationsClient()
Workspace clientLogbookService
getLogbookService()
java.lang.String
getNamedOperationId(java.lang.String name)
java.lang.String
getObjectGroupId()
java.lang.String
getOperationId()
static java.lang.String
getOperationId(java.lang.String testSet)
Get an operation id for the test setjava.lang.String
getProjectId()
java.lang.String
getQuery()
java.nio.file.Path
getSipFile()
StorageClient
getStorageClient()
Storage clientint
getTenantId()
java.lang.String
getTransactionId()
java.nio.file.Path
getTransferFile()
java.lang.String
getUnitId()
WorkspaceClient
getWorkspaceClient()
Workspace clientvoid
init()
initialization of clientWorld
setAtrFile(java.nio.file.Path atrFile)
World
setContractId(java.lang.String contractId)
void
setDipFile(java.nio.file.Path dipFile)
void
setEliminationOperationId(java.lang.String eliminationOperationId)
void
setNamedOperationId(java.lang.String name, java.lang.String namedOperationId)
void
setObjectGroupId(java.lang.String objectGroupId)
void
setOperationId(java.lang.String operationId)
static void
setOperationId(java.lang.String testSet, java.lang.String operationId)
Set an operation id for a test setvoid
setProjectId(java.lang.String projectId)
void
setQuery(java.lang.String query)
void
setSipFile(java.nio.file.Path path)
void
setTransactionId(java.lang.String transactionId)
World
setTransferFile(java.nio.file.Path transferFile)
void
setUnitId(java.lang.String unitId)
void
the_reinit_of_test_set()
Clear the map of operations ids by testSet.void
the_test_are_done_on_contract(java.lang.String contractId)
define a contractIdvoid
the_test_are_done_on_tenant(int tenantId)
define a tenantvoid
the_tests_are_done_with_application_session_id(java.lang.String applicationSessionId)
defines application session idvoid
writeOperationId(cucumber.api.Scenario scenario)
write operation ID on cucumber report
-
-
-
Field Detail
-
TNR_BASE_DIRECTORY
public static final java.lang.String TNR_BASE_DIRECTORY
- See Also:
- Constant Field Values
-
DEFAULT_ACCESS_CONTRACT_NAME
public static final java.lang.String DEFAULT_ACCESS_CONTRACT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init() throws java.io.IOException
initialization of client- Throws:
java.io.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 java.lang.Throwable
define a tenant- Parameters:
tenantId
- id of the tenant- Throws:
java.lang.Throwable
-
the_test_are_done_on_contract
@Given("^les tests effectu\u00e9s sur le contrat id (.*)$") public void the_test_are_done_on_contract(java.lang.String contractId) throws java.lang.Throwable
define a contractId- Parameters:
contractId
- id of the access contract- Throws:
java.lang.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(java.lang.String applicationSessionId)
defines application session id- Parameters:
applicationSessionId
- id of the application session- Throws:
java.lang.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
public IngestExternalClient getIngestClient()
- Returns:
- ingest client
-
getAccessClient
public AccessExternalClient getAccessClient()
- Returns:
- access client
-
getAdminClient
public AdminExternalClient getAdminClient()
- Returns:
- admin client
-
getWorkspaceClient
public WorkspaceClient getWorkspaceClient()
Workspace client- Returns:
- workspaceClient
-
getLogbookOperationsClient
public LogbookOperationsClient getLogbookOperationsClient()
Workspace client- Returns:
- logbookOperationsClient
-
getStorageClient
public StorageClient getStorageClient()
Storage client- Returns:
- storageClient
-
getOperationId
public java.lang.String getOperationId()
- Returns:
- operation ID
-
setOperationId
public void setOperationId(java.lang.String operationId)
- Parameters:
operationId
- operation ID
-
getEliminationOperationId
public java.lang.String getEliminationOperationId()
-
setEliminationOperationId
public void setEliminationOperationId(java.lang.String eliminationOperationId)
-
getQuery
public java.lang.String getQuery()
- Returns:
- the dsl query
-
setQuery
public void setQuery(java.lang.String query)
- Parameters:
query
- the query
-
getOperationId
public static java.lang.String getOperationId(java.lang.String testSet)
Get an operation id for the test set- Parameters:
testSet
- test set identifier- Returns:
- operation id
-
setOperationId
public static void setOperationId(java.lang.String testSet, java.lang.String operationId)
Set an operation id for a test set- Parameters:
testSet
- test set identifieroperationId
- operation id
-
getNamedOperationId
public java.lang.String getNamedOperationId(java.lang.String name)
-
setNamedOperationId
public void setNamedOperationId(java.lang.String name, java.lang.String namedOperationId)
-
getUnitId
public java.lang.String getUnitId()
- Returns:
- unitId
-
setUnitId
public void setUnitId(java.lang.String unitId)
- Parameters:
unitId
-
-
setObjectGroupId
public void setObjectGroupId(java.lang.String objectGroupId)
- Parameters:
objectGroupId
-
-
getObjectGroupId
public java.lang.String getObjectGroupId()
- Returns:
- objectGroupId
-
getContractId
public java.lang.String getContractId()
- Returns:
- contractId
-
setContractId
@Given("^J\'utilise le contrat d\'access (.*)$") public World setContractId(java.lang.String contractId)
- Parameters:
contractId
-- Returns:
- this
-
getApplicationSessionId
public java.lang.String getApplicationSessionId()
-
getLogbookService
public LogbookService getLogbookService()
-
getAccessService
public AccessService getAccessService()
-
finish
public void finish()
-
writeOperationId
public void writeOperationId(cucumber.api.Scenario scenario)
write operation ID on cucumber report- Parameters:
scenario
-
-
getBaseDirectory
public java.lang.String getBaseDirectory()
- Returns:
- base directory on .feature file
-
getAdminClientV2
public AccessExternalClientV2 getAdminClientV2()
-
getCollectExternalClient
public CollectExternalClient getCollectExternalClient()
-
getSipFile
public java.nio.file.Path getSipFile()
-
setSipFile
public void setSipFile(java.nio.file.Path path)
-
getDipFile
public java.nio.file.Path getDipFile()
-
setDipFile
public void setDipFile(java.nio.file.Path dipFile)
-
getTransferFile
public java.nio.file.Path getTransferFile()
-
setTransferFile
public World setTransferFile(java.nio.file.Path transferFile)
-
getAtrFile
public java.nio.file.Path getAtrFile()
-
setAtrFile
public World setAtrFile(java.nio.file.Path atrFile)
-
getProjectId
public java.lang.String getProjectId()
-
setProjectId
public void setProjectId(java.lang.String projectId)
-
getTransactionId
public java.lang.String getTransactionId()
-
setTransactionId
public void setTransactionId(java.lang.String transactionId)
-
-