Class StorageStep
- java.lang.Object
-
- fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
-
- fr.gouv.vitam.functionaltest.cucumber.step.StorageStep
-
public class StorageStep extends CommonStep
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
Constructors Constructor Description StorageStep(World world)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
a_file_named(java.lang.String fileName)
define a sipvoid
list_srategy(cucumber.api.DataTable dataTable)
void
save_this_file(java.lang.String strategy)
void
storage_accesslog_backup()
void
storage_backup()
void
storage_log_traceability()
boolean
store(java.nio.file.Path sip, java.lang.String uri, java.lang.String strategy, java.lang.String guid)
Store a filevoid
the_sip_is_stored_in_offers(cucumber.api.DataTable dataTable)
Check that the file is stored in the offers-
Methods inherited from class fr.gouv.vitam.functionaltest.cucumber.step.CommonStep
checkOperationStatus, runInVitamThread
-
-
-
-
Constructor Detail
-
StorageStep
public StorageStep(World world) throws java.io.FileNotFoundException, InvalidParseOperationException
- Throws:
java.io.FileNotFoundException
InvalidParseOperationException
-
-
Method Detail
-
a_file_named
@Given("^un fichier nomm\u00e9 (.*)$") public void a_file_named(java.lang.String fileName)
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(java.lang.String strategy) throws java.io.IOException
- Throws:
java.io.IOException
-
storage_backup
@When("^je lance une sauvegarde des journaux des \u00e9critures") public void storage_backup() throws java.io.IOException
- Throws:
java.io.IOException
-
storage_accesslog_backup
@When("^je lance une sauvegarde des journaux des logs d\'acc\u00e8s") public void storage_accesslog_backup() throws java.io.IOException
- Throws:
java.io.IOException
-
storage_log_traceability
@When("^je lance une s\u00e9curisation du journal des \u00e9critures") public void storage_log_traceability() throws java.io.IOException
- Throws:
java.io.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(cucumber.api.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(cucumber.api.DataTable dataTable) throws StorageException, StorageServerClientException
-
store
public boolean store(java.nio.file.Path sip, java.lang.String uri, java.lang.String strategy, java.lang.String guid) throws StorageServerClientException, StorageNotFoundClientException, StorageAlreadyExistsClientException, ContentAddressableStorageServerException, ContentAddressableStorageAlreadyExistException, ContentAddressableStorageNotFoundException, java.io.IOException
Store a file- Parameters:
sip
-uri
-guid
-- Returns:
- true
- Throws:
StorageServerClientException
StorageNotFoundClientException
StorageAlreadyExistsClientException
ContentAddressableStorageServerException
ContentAddressableStorageAlreadyExistException
ContentAddressableStorageNotFoundException
java.io.IOException
-
-