public class AccessStep extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
AccessStep.MyRunnable |
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_IDENTIFIER |
static String |
INGEST_CONTRACT_IDENTIFIER |
Constructor and Description |
---|
AccessStep(World world) |
Modifier and Type | Method and Description |
---|---|
void |
check_property_metadata(String propertyName,
String unitTitle,
cucumber.api.DataTable dataTable) |
void |
check_rule_metadata(String ruleId,
String unitTitle,
cucumber.api.DataTable dataTable) |
void |
check_unit_inherited_rules_json(String unitTitle,
String filename) |
void |
facetmetadata_contains_values_count(String facetName,
int count,
String value)
Check facet bucket value count
|
void |
facetmetadata_does_not_contains_value(String facetName,
String value)
Check facet does not contains bucket for value
|
void |
i_import_or_check_the_file_for_the_admin_collection(String action,
String filename,
String collection)
Import or Check an admin referential file
|
void |
i_use_the_following_file_query(String queryFilename)
define a query from a file to reuse it after
|
void |
i_use_the_following_parameter_query_with_an_id(String parameter)
replace in the loaded query the given parameter by an id previously retrieved
|
void |
i_use_the_following_parameter_query_with_values(String parameter,
String value)
replace in the loaded query the given parameter by the given value
|
void |
i_use_the_following_query(String query)
define a query to reuse it after
|
void |
i_use_the_following_unit_guid_for_title(String title)
replace in the loaded query the string {{guid}} by the guid of the first unit found for given title
|
void |
je_lance_l_audit_en_service_producteur(String action,
String originatingAgnecy) |
void |
je_modifie_le_contrat_d_accès(String name,
String queryFilename) |
void |
je_veux_faire_l_audit_des_objets_de_tenant(String action,
int tenant) |
void |
le_réultat_de_l_audit_est_succès() |
void |
metadata_are_for_particular_result(int resultNumber,
cucumber.api.DataTable dataTable)
check if the metadata are valid.
|
void |
metadata_are_for_particular_result(String category,
String unitTitle)
Select unit rule category
|
void |
metadata_are(cucumber.api.DataTable dataTable)
check if the metadata are valid.
|
void |
number_of_result_are(int numberOfResult)
check if the number of result is OK
|
void |
objectgroup_lfc_traceability() |
void |
rule_category_rules_and_properties_count_check(int nbRules,
int nbProperties) |
void |
saveOperationId(String operationIdName) |
void |
search_archive_unit_object_group()
Search an archive unit and retrieve object groups according to the query define before.
|
void |
search_archive_unit_object_group(String title)
Search an archive unit and retrieve object groups according to the query define before.
|
void |
search_archive_unit()
search an archive unit according to the query define before
|
void |
search_archive_unit(String originatingSystemId) |
void |
search_archive_units_with_inherited_rules()
search an archive unit with inherited rules
|
void |
search_in_admin_collection(String collection)
Search in admin collection according to the query define before
|
void |
search_logbook_operation()
search logbook operations according to the query define before
|
void |
search_object_groups()
search an object groups according to the query define before
|
void |
search_one_archive_unit()
search an archive unit according to the query define before
|
void |
search_one_object_group()
search an archive unit according to the query define before
|
void |
start_elimination_action(String deleteDate,
String status)
elimination action
|
void |
start_elimination_analysis(String analysisDate,
String status)
elimination analysis
|
void |
the_status_of_the_request(String status)
check if the status of the select result is unauthorized
|
void |
the_status_of_the_select_result(String status)
check if the status of the select result is unauthorized
|
void |
the_status_of_the_update_result(String status)
check if the status of the update result is unauthorized
|
void |
unit_lfc_traceability() |
void |
unit_traceability_audit() |
void |
update_archive_unit_with_query(String query)
update an archive unit according to the query define before
|
void |
update_archive_unit()
update an archive unit according to the query define before
|
void |
upload_contract_ingest_with_noeud(String title)
Upload contract with noeud
|
public static final String CONTEXT_IDENTIFIER
public static final String INGEST_CONTRACT_IDENTIFIER
public AccessStep(World world)
@Then(value="^le r\u00e9sultat pour la facet (.*) contient (\\d+) valeurs (.*)$") public void facetmetadata_contains_values_count(String facetName, int count, String value) throws Throwable
facetName
- facet namecount
- bucket countvalue
- bucket valueThrowable
- when not valid@Then(value="^le r\u00e9sultat pour la facet (.*) ne contient pas la valeur (.*)$") public void facetmetadata_does_not_contains_value(String facetName, String value) throws Throwable
facetName
- facet namevalue
- valueThrowable
- when not valid@Then(value="^les metadonn\u00e9es sont$") public void metadata_are(cucumber.api.DataTable dataTable) throws Throwable
dataTable
- dataTableThrowable
@Then(value="^les metadonn\u00e9es pour le r\u00e9sultat (\\d+)$") public void metadata_are_for_particular_result(int resultNumber, cucumber.api.DataTable dataTable) throws Throwable
dataTable
- dataTableresultNumber
- resultNumberThrowable
@When(value="^j\'importe le contrat d\'entr\u00e9e avec le noeud de rattachement dont le titre est (.*)") public void upload_contract_ingest_with_noeud(String title) throws Throwable
title
- IOException
Throwable
@Then(value="^le nombre de r\u00e9sultat est (\\d+)$") public void number_of_result_are(int numberOfResult) throws Throwable
numberOfResult
- number of result.Throwable
@Then(value="^le statut de select r\u00e9sultat est (.*)$") public void the_status_of_the_select_result(String status) throws Throwable
status
- Throwable
@Then(value="^le statut de la requete est (.*)$") public void the_status_of_the_request(String status) throws Throwable
status
- Throwable
@Then(value="^le statut de update r\u00e9sultat est (.*)$") public void the_status_of_the_update_result(String status) throws Throwable
status
- Throwable
@When(value="^j\'utilise le fichier de requ\u00eate suivant (.*)$") public void i_use_the_following_file_query(String queryFilename) throws Throwable
queryFilename
- name of the file containing the queryThrowable
@When(value="^j\'utilise dans la requ\u00eate le param\u00e8tre (.*) avec la valeur (.*)$") public void i_use_the_following_parameter_query_with_values(String parameter, String value) throws Throwable
parameter
- parameter name in the queryvalue
- the valeur to replace the parameterThrowable
@When(value="^j\'utilise dans la requ\u00eate le param\u00e8tre (.*) avec l\'id$") public void i_use_the_following_parameter_query_with_an_id(String parameter) throws Throwable
parameter
- parameter name in the queryThrowable
@When(value="^j\'utilise dans la requ\u00eate le GUID de l\'unit\u00e9 archivistique pour le titre (.*)$") public void i_use_the_following_unit_guid_for_title(String title) throws Throwable
title
- title of the unitThrowable
@When(value="^j\'utilise la requ\u00eate suivante$") public void i_use_the_following_query(String query) throws Throwable
query
- Throwable
@Then(value="^je nomme l\'identifiant de l\'op\u00e9ration (.*)$") public void saveOperationId(String operationIdName) throws Throwable
Throwable
@When(value="^je recherche les unit\u00e9s archivistiques$") public void search_archive_unit() throws Throwable
Throwable
@When(value="^je recherche les unit\u00e9s archivistiques pour trouver l\'unite (.*)$") public void search_archive_unit(String originatingSystemId) throws Throwable
Throwable
@When(value="^je recherche une unit\u00e9 archivistique et je recup\u00e8re son id$") public void search_one_archive_unit() throws Throwable
Throwable
- throw@When(value="^je recherche les unit\u00e9s archivistiques avec leurs r\u00e8gles de gestion h\u00e9rit\u00e9es$") public void search_archive_units_with_inherited_rules() throws Throwable
Throwable
@When(value="^je s\u00e9lectionne la cat\u00e9gorie (.*) pour l\'unit\u00e9 (.*)$") public void metadata_are_for_particular_result(String category, String unitTitle) throws Throwable
Throwable
@Then(value="^la cat\u00e9gorie contient (\\d+) r\u00e8gles et (\\d+) propri\u00e9t\u00e9s h\u00e9rit\u00e9es$") public void rule_category_rules_and_properties_count_check(int nbRules, int nbProperties) throws Throwable
Throwable
@When(value="^je recherche les groupes d\'objets$") public void search_object_groups() throws Throwable
Throwable
@Then(value="^la cat\u00e9gorie contient une r\u00e8gle (.*) h\u00e9rit\u00e9e depuis l\'unit\u00e9 (.*) avec pour m\u00e9tadonn\u00e9es$") public void check_rule_metadata(String ruleId, String unitTitle, cucumber.api.DataTable dataTable) throws Throwable
Throwable
@Then(value="^la cat\u00e9gorie contient une propri\u00e9t\u00e9 (.*) h\u00e9rit\u00e9e depuis l\'unit\u00e9 (.*) avec pour m\u00e9tadonn\u00e9es$") public void check_property_metadata(String propertyName, String unitTitle, cucumber.api.DataTable dataTable) throws Throwable
Throwable
@Then(value="^les r\u00e8gles h\u00e9rit\u00e9s de l\'unit\u00e9 (.*) correspondent au fichier json (.*)$") public void check_unit_inherited_rules_json(String unitTitle, String filename) throws Throwable
Throwable
@When(value="^je recherche une unit\u00e9 archivistique ayant un groupe d\'objets et je recup\u00e8re son id et son objet$") public void search_one_object_group() throws Throwable
Throwable
@When(value="^je modifie les unit\u00e9s archivistiques$") public void update_archive_unit() throws Throwable
Throwable
@When(value="^je modifie l\'unit\u00e9 archivistique avec la requete$") public void update_archive_unit_with_query(String query) throws Throwable
Throwable
@When(value="^je recherche les groupes d\'objets des unit\u00e9s archivistiques$") public void search_archive_unit_object_group() throws Throwable
Throwable
@When(value="^je recherche les groupes d\'objets de l\'unit\u00e9 archivistique dont le titre est (.*)$") public void search_archive_unit_object_group(String title) throws Throwable
Throwable
@When(value="^je recherche les journaux d\'op\u00e9ration$") public void search_logbook_operation() throws Throwable
Throwable
@When(value="^(?:je |j\')(.*) le fichier nomm\u00e9 (.*) (?:pour|dans) le r\u00e9f\u00e9rentiel (.*)$") public void i_import_or_check_the_file_for_the_admin_collection(String action, String filename, String collection) throws Throwable
action
- the action we want to execute : "vérifie" for check / "importe" for importfilename
- name of the file to import or checkcollection
- name of the collectionThrowable
@When(value="^je recherche les donn\u00e9es dans le r\u00e9f\u00e9rentiel (.*)$") public void search_in_admin_collection(String collection) throws Throwable
collection
- name of the collectionThrowable
@When(value="^je modifie le contrat d\'acc\u00e8s (.*) avec le fichier de requ\u00eate suivant (.*)$") public void je_modifie_le_contrat_d_accès(String name, String queryFilename) throws Throwable
Throwable
@When(value="^je lance une analyse d\'\u00e9limination avec pour date le (.*) qui se termine avec le statut (.*)$") public void start_elimination_analysis(String analysisDate, String status) throws Throwable
Throwable
@When(value="^je lance une \u00e9limination d\u00e9finitive avec pour date le (.*) qui se termine avec le statut (.*)$") public void start_elimination_action(String deleteDate, String status) throws Throwable
Throwable
@When(value="^je veux faire un audit sur (.*) des objets par service producteur \"([^\"]*)\"$") public void je_lance_l_audit_en_service_producteur(String action, String originatingAgnecy) throws Throwable
Throwable
@When(value="^je veux faire un audit sur (.*) des objets par tenant (\\d+)$") public void je_veux_faire_l_audit_des_objets_de_tenant(String action, int tenant) throws Throwable
Throwable
@Then(value="^le r\u00e9ultat de l\'audit est succ\u00e8s$") public void le_réultat_de_l_audit_est_succès() throws Throwable
Throwable
@When(value="^je r\u00e9alise un audit de tra\u00e7abilit\u00e9 de la requete$") public void unit_traceability_audit() throws Throwable
Throwable
@When(value="^on lance la tra\u00e7abilit\u00e9 des journaux de cycles de vie des unit\u00e9s archivistiques$") public void unit_lfc_traceability()
@When(value="^on lance la tra\u00e7abilit\u00e9 des journaux de cycles de vie des groupes d\'objets$") public void objectgroup_lfc_traceability()
Copyright © 2018 Vitam. All rights reserved.