Class StorageStep
java.lang.Object
fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
fr.gouv.vitam.functionaltest.cucumber.step.StorageStep
Storage step
-
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_file_named
(String fileName) define a sipvoid
list_srategy
(io.cucumber.datatable.DataTable dataTable) void
save_this_file
(String strategy) void
void
void
boolean
Store a filevoid
the_sip_is_stored_in_offers
(io.cucumber.datatable.DataTable dataTable) Check that the file is stored in the offersMethods inherited from class fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
checkOperationStatus, runInVitamThread
-
Constructor Details
-
StorageStep
-
-
Method Details
-
a_file_named
define a sip- Parameters:
fileName
- name of a sip
-
save_this_file
@When("^je sauvegarde le fichier dans la strategie (.*)") public void save_this_file(String strategy) throws IOException - Throws:
IOException
-
storage_backup
@When("^je lance une sauvegarde des journaux des \u00e9critures") public void storage_backup() throws IOException- Throws:
IOException
-
storage_accesslog_backup
@When("^je lance une sauvegarde des journaux des logs d\'acc\u00e8s") public void storage_accesslog_backup() throws IOException- Throws:
IOException
-
storage_log_traceability
@When("^je lance une s\u00e9curisation du journal des \u00e9critures") public void storage_log_traceability() throws IOException- Throws:
IOException
-
the_sip_is_stored_in_offers
@Then("^le fichier est bien stock\u00e9 dans les strategies suivantes") public void the_sip_is_stored_in_offers(io.cucumber.datatable.DataTable dataTable) throws StorageException Check that the file is stored in the offers- Parameters:
dataTable
- the datatable- Throws:
StorageException
- une exeption
-
list_srategy
@Then("^je verifie que toutes ces strategies contiennent des fichiers") public void list_srategy(io.cucumber.datatable.DataTable dataTable) throws StorageException, StorageServerClientException -
store
public boolean store(Path sip, String uri, String strategy, String guid) throws StorageServerClientException, StorageNotFoundClientException, StorageAlreadyExistsClientException, ContentAddressableStorageServerException, ContentAddressableStorageAlreadyExistException, ContentAddressableStorageNotFoundException, IOException Store a file- Parameters:
sip
-uri
-guid
-- Returns:
- true
- Throws:
StorageServerClientException
StorageNotFoundClientException
StorageAlreadyExistsClientException
ContentAddressableStorageServerException
ContentAddressableStorageAlreadyExistException
ContentAddressableStorageNotFoundException
IOException
-