diff options
author | RHE <rebirthmonkey@gmail.com> | 2017-12-26 13:35:54 +0100 |
---|---|---|
committer | RHE <rebirthmonkey@gmail.com> | 2017-12-26 13:35:54 +0100 |
commit | 454e9c5f8664ea99ccea2417b6cc3ffb238cf834 (patch) | |
tree | 479a6d0fcee5ba6c17ea12370125e6681594128a /moonclient/moonclient/tests/todo/tests_empty_policy_swift.json | |
parent | 19a69441bbcc8b5e9e334f81c66d0f3720405fdd (diff) |
moon v4 re-organization
Change-Id: I73665f739f35ae18175f98d0739567e403c1fa80
Signed-off-by: RHE <rebirthmonkey@gmail.com>
Diffstat (limited to 'moonclient/moonclient/tests/todo/tests_empty_policy_swift.json')
-rw-r--r-- | moonclient/moonclient/tests/todo/tests_empty_policy_swift.json | 1175 |
1 files changed, 0 insertions, 1175 deletions
diff --git a/moonclient/moonclient/tests/todo/tests_empty_policy_swift.json b/moonclient/moonclient/tests/todo/tests_empty_policy_swift.json deleted file mode 100644 index e935da98..00000000 --- a/moonclient/moonclient/tests/todo/tests_empty_policy_swift.json +++ /dev/null @@ -1,1175 +0,0 @@ -{ - "command_options": "-f value", - "tests_group": { - "authz": [ - { - "auth_name": "admin", - "auth_password": "console", - "auth_tenant": "admin", - "description": "Change user to admin (just in case...)" - }, - - { - "name": "swift list", - "external_command": "swift list", - "no_result": "moonclient_test", - "description": "Check Swift command" - }, - { - "name": "add swift container", - "external_command": "swift post moonclient_test", - "result": "", - "description": "Add a new container" - }, - { - "name": "swift list", - "external_command": "swift list", - "result": "moonclient_test", - "description": "Check the added container" - }, - { - "name": "get accound ID", - "external_command": "swift stat", - "result": "Account: (?P<uuid_account>[\\w_]+)", - "description": "Check the added container" - }, - - { - "name": "list tenant", - "command": "tenant list", - "no_result": "admin", - "description": "Check if tenant demo is used." - }, - { - "name": "add tenant admin", - "command": "tenant add admin", - "result": "^$", - "description": "Add a new tenant", - "command_options": "" - }, - { - "name": "check tenant admin", - "command": "tenant list", - "result": "(?P<uuid>\\w+)\\s+admin", - "description": "Check that tenant demo has been correctly added" - }, - { - "name": "create_intraextension_authz", - "command": "intraextension add --policy_model policy_empty_authz empty_test", - "result": "IntraExtension created: (?P<uuid_authz>\\w+)", - "description": "Create an authz intra extension", - "command_options": "" - }, - { - "name": "list_intraextension_authz", - "command": "intraextension list", - "result": "$uuid_authz", - "description": "Check the existence of that authz intra extension" - }, - { - "name": "set_tenant_authz", - "command": "tenant set --authz $uuid_authz $uuid", - "result": "", - "description": "Connect the authz intra extension to the tenant demo", - "command_options": "" - }, - { - "name": "list tenant", - "command": "tenant list", - "result": "admin", - "description": "Check if tenant admin is used." - }, - { - "name": "select_authz_ie", - "command": "intraextension select $uuid_authz", - "result": "Select $uuid_authz IntraExtension.", - "description": "Select the authz IntraExtension", - "command_options": "" - }, - { - "name": "check_select_authz_ie", - "command": "intraextension show selected", - "result": "$uuid_authz", - "description": "Check the selected authz IntraExtension", - "command_options": "-c id -f value" - }, - { - "name": "add_subject", - "command": "subject add admin --subject_pass password", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_subject", - "command": "subject list", - "result": "(?P<uuid_subject_admin>\\w+)\\s+admin", - "description": "Check that admin subject was added." - }, - { - "name": "add_subject", - "command": "subject add demo --subject_pass password", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_subject", - "command": "subject list", - "result": "(?P<uuid_subject_demo>\\w+)\\s+demo", - "description": "Check that demo subject was added." - }, - { - "name": "add_object", - "command": "object add servers", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_object", - "command": "object list", - "result": "(?P<uuid_object_servers>\\w+)\\s+servers", - "description": "Check that servers subject was added." - }, - { - "name": "add_action", - "command": "action add pause", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_pause>\\w+)\\s+pause", - "description": "Check that pause action was added." - }, - { - "name": "add_action", - "command": "action add unpause", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_unpause>\\w+)\\s+unpause", - "description": "Check that unpause action was added." - }, - { - "name": "add_action", - "command": "action add list", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_list>\\w+)\\s+list", - "description": "Check that list action was added." - }, - { - "name": "add_action", - "command": "action add start", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_start>\\w+)\\s+start", - "description": "Check that start action was added." - }, - { - "name": "add_action", - "command": "action add stop", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_stop>\\w+)\\s+stop", - "description": "Check that stop action was added." - }, - { - "name": "add_action", - "command": "action add create", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_create>\\w+)\\s+create", - "description": "Check that create action was added." - }, - { - "name": "add_action", - "command": "action add upload", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_upload>\\w+)\\s+upload", - "description": "Check that upload action was added." - }, - { - "name": "add_action", - "command": "action add download", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_download>\\w+)\\s+download", - "description": "Check that download action was added." - }, - { - "name": "add_action", - "command": "action add post", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_post>\\w+)\\s+post", - "description": "Check that post action was added." - }, - { - "name": "add_action", - "command": "action add storage_list", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_storage_list>\\w+)\\s+storage_list", - "description": "Check that storage_list action was added." - }, - - { - "name": "add_subject_category", - "command": "subject category add subject_security_level", - "result": "", - "description": "Add the new subject category subject_security_level", - "command_options": "" - }, - { - "name": "list_subject_category", - "command": "subject category list", - "result": "(?P<uuid_subject_category>\\w+)\\s+subject_security_level", - "description": "Check that subject_security_level subject_category was added." - }, - { - "name": "add_object_category", - "command": "object category add object_security_level", - "result": "", - "description": "Add the new object category object_security_level", - "command_options": "" - }, - { - "name": "list_object_category", - "command": "object category list", - "result": "(?P<uuid_object_category>\\w+)\\s+object_security_level", - "description": "Check that object_security_level object_category was added." - }, - { - "name": "add_action_category", - "command": "action category add resource_action", - "result": "", - "description": "Add the new action category resource_action", - "command_options": "" - }, - { - "name": "list_subject_category", - "command": "action category list", - "result": "(?P<uuid_action_category>\\w+)\\s+resource_action", - "description": "Check that resource_action action_category was added." - }, - - { - "name": "add_scope", - "command": "subject scope add $uuid_subject_category high --description \"high\"", - "result": "^$", - "description": "Add one scope to subject category role", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "subject scope list $uuid_subject_category", - "result": "(?P<uuid_subject_scope_high>\\w+)\\s+high\\s+high", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - { - "name": "add_scope", - "command": "subject scope add $uuid_subject_category medium --description \"medium\"", - "result": "^$", - "description": "Add one scope to subject category role", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "subject scope list $uuid_subject_category", - "result": "(?P<uuid_subject_scope_medium>\\w+)\\s+medium\\s+medium", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - { - "name": "add_scope", - "command": "subject scope add $uuid_subject_category low --description \"low\"", - "result": "^$", - "description": "Add one scope to subject category role", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "subject scope list $uuid_subject_category", - "result": "(?P<uuid_subject_scope_low>\\w+)\\s+low\\s+low", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - { - "name": "add_scope", - "command": "object scope add $uuid_object_category high --description \"high\"", - "result": "^$", - "description": "Add one scope to object category role", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category", - "result": "(?P<uuid_object_scope_high>\\w+)\\s+high\\s+high", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - { - "name": "add_scope", - "command": "object scope add $uuid_object_category medium --description \"medium\"", - "result": "^$", - "description": "Add one scope to object category role", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category", - "result": "(?P<uuid_object_scope_medium>\\w+)\\s+medium\\s+medium", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - { - "name": "add_scope", - "command": "object scope add $uuid_object_category low --description \"low\"", - "result": "^$", - "description": "Add one scope to object category role", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category", - "result": "(?P<uuid_object_scope_low>\\w+)\\s+low\\s+low", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - { - "name": "add_scope", - "command": "action scope add $uuid_action_category vm_admin --description \"vm_admin\"", - "result": "^$", - "description": "Add one scope to action category role", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "action scope list $uuid_action_category", - "result": "(?P<uuid_action_scope_vm_admin>\\w+)\\s+vm_admin\\s+vm_admin", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - { - "name": "add_scope", - "command": "action scope add $uuid_action_category vm_access --description \"vm_access\"", - "result": "^$", - "description": "Add one scope to action category role", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "action scope list $uuid_action_category", - "result": "(?P<uuid_action_scope_vm_access>\\w+)\\s+vm_access\\s+vm_access", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - { - "name": "add_scope", - "command": "action scope add $uuid_action_category storage_admin --description \"storage_admin\"", - "result": "^$", - "description": "Add one scope to action category role", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "action scope list $uuid_action_category", - "result": "(?P<uuid_action_scope_storage_admin>\\w+)\\s+storage_admin\\s+storage_admin", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - { - "name": "add_scope", - "command": "action scope add $uuid_action_category storage_access --description \"storage_access\"", - "result": "^$", - "description": "Add one scope to action category role", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "action scope list $uuid_action_category", - "result": "(?P<uuid_action_scope_storage_access>\\w+)\\s+storage_access\\s+storage_access", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_assignment", - "command": "subject assignment add $uuid_subject_admin $uuid_subject_category $uuid_subject_scope_high", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "subject assignment list $uuid_subject_admin $uuid_subject_category", - "result": "$uuid_subject_scope_high high", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "subject assignment add $uuid_subject_demo $uuid_subject_category $uuid_subject_scope_medium", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "subject assignment list $uuid_subject_demo $uuid_subject_category", - "result": "$uuid_subject_scope_medium medium", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_servers $uuid_object_category $uuid_object_scope_low", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_servers $uuid_object_category", - "result": "$uuid_object_scope_low low", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_pause $uuid_action_category $uuid_action_scope_vm_admin", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_pause $uuid_action_category", - "result": "$uuid_action_scope_vm_admin vm_admin", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_unpause $uuid_action_category $uuid_action_scope_vm_admin", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_unpause $uuid_action_category", - "result": "$uuid_action_scope_vm_admin vm_admin", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_start $uuid_action_category $uuid_action_scope_vm_admin", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_start $uuid_action_category", - "result": "$uuid_action_scope_vm_admin vm_admin", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_stop $uuid_action_category $uuid_action_scope_vm_admin", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_stop $uuid_action_category", - "result": "$uuid_action_scope_vm_admin vm_admin", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_list $uuid_action_category $uuid_action_scope_vm_admin", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_list $uuid_action_category", - "result": "$uuid_action_scope_vm_admin vm_admin", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_list $uuid_action_category $uuid_action_scope_vm_access", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_list $uuid_action_category", - "result": "$uuid_action_scope_vm_access vm_access", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_create $uuid_action_category $uuid_action_scope_vm_admin", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_create $uuid_action_category", - "result": "$uuid_action_scope_vm_admin vm_admin", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_storage_list $uuid_action_category $uuid_action_scope_storage_access", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_storage_list $uuid_action_category", - "result": "$uuid_action_scope_storage_access storage_access", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_download $uuid_action_category $uuid_action_scope_storage_access", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_download $uuid_action_category", - "result": "$uuid_action_scope_storage_access storage_access", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_upload $uuid_action_category $uuid_action_scope_storage_admin", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_upload $uuid_action_category", - "result": "$uuid_action_scope_storage_admin storage_admin", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_post $uuid_action_category $uuid_action_scope_storage_admin", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_post $uuid_action_category", - "result": "$uuid_action_scope_storage_admin storage_admin", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "check_submetarules", - "command": "submetarule show", - "result": "(?P<submetarule_uuid>\\w+)", - "description": "Get one submetarule ID", - "command_options": "-c id -f value" - }, - { - "name": "set_submetarule", - "command": "submetarule set $submetarule_uuid --subject_category_id=\"$uuid_subject_category\" --object_category_id=\"$uuid_object_category\" --action_category_id=\"$uuid_action_category\"", - "result": "^$", - "description": "Set a new submetarule", - "command_options": "" - }, - { - "name": "check_submetarule", - "command": "submetarule show", - "result": "$submetarule_uuid \\s*subject_security_level", - "description": "Check the new submetarule", - "command_options": "-c id -c \"subject categories\" -f value" - }, - { - "name": "check_submetarule", - "command": "submetarule show", - "result": "$submetarule_uuid \\s*object_security_level", - "description": "Check the new submetarule", - "command_options": "-c id -c \"object categories\" -f value" - }, - { - "name": "check_submetarule", - "command": "submetarule show", - "result": "$submetarule_uuid \\s*resource_action", - "description": "Check the new submetarule", - "command_options": "-c id -c \"action categories\" -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid \"high,vm_admin,medium\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid", - "result": "(?P<rule_id>\\w+)\\s+high\\s+vm_admin\\s+medium", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:subject_security_level -c a:resource_action -c o:object_security_level -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid \"high,vm_admin,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid", - "result": "(?P<rule_id>\\w+)\\s+high\\s+vm_admin\\s+low", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:subject_security_level -c a:resource_action -c o:object_security_level -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid \"medium,vm_admin,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid", - "result": "(?P<rule_id>\\w+)\\s+medium\\s+vm_admin\\s+low", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:subject_security_level -c a:resource_action -c o:object_security_level -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid \"high,vm_access,medium\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid", - "result": "(?P<rule_id>\\w+)\\s+high\\s+vm_access\\s+medium", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:subject_security_level -c a:resource_action -c o:object_security_level -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid \"high,vm_access,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid", - "result": "(?P<rule_id>\\w+)\\s+high\\s+vm_access\\s+low", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:subject_security_level -c a:resource_action -c o:object_security_level -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid \"medium,vm_access,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid", - "result": "(?P<rule_id>\\w+)\\s+medium\\s+vm_access\\s+low", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:subject_security_level -c a:resource_action -c o:object_security_level -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid \"high,storage_admin,medium\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid", - "result": "(?P<rule_id>\\w+)\\s+high\\s+storage_admin\\s+medium", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:subject_security_level -c a:resource_action -c o:object_security_level -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid \"high,storage_admin,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid", - "result": "(?P<rule_id>\\w+)\\s+high\\s+storage_admin\\s+low", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:subject_security_level -c a:resource_action -c o:object_security_level -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid \"medium,storage_admin,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid", - "result": "(?P<rule_id>\\w+)\\s+medium\\s+storage_admin\\s+low", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:subject_security_level -c a:resource_action -c o:object_security_level -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid \"high,storage_access,medium\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid", - "result": "(?P<rule_id>\\w+)\\s+high\\s+storage_access\\s+medium", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:subject_security_level -c a:resource_action -c o:object_security_level -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid \"high,storage_access,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid", - "result": "(?P<rule_id>\\w+)\\s+high\\s+storage_access\\s+low", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:subject_security_level -c a:resource_action -c o:object_security_level -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid \"medium,storage_access,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid", - "result": "(?P<rule_id>\\w+)\\s+medium\\s+storage_access\\s+low", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:subject_security_level -c a:resource_action -c o:object_security_level -f value" - }, - { - "name": "get aggregation algorithm", - "command": "aggregation algorithm list", - "result": "(?P<uuid_aggregation>\\w+)\\s+one_true", - "description": "Get aggregation algorithm.", - "command_options": "-c id -c name -f value" - }, - { - "name": "set aggregation algorithm", - "command": "aggregation algorithm set $uuid_aggregation", - "result": "", - "description": "Set aggregation algorithm to one_true.", - "command_options": "" - }, - { - "name": "get aggregation algorithm", - "command": "aggregation algorithm show", - "result": "$uuid_aggregation\\s+one_true", - "description": "Check aggregation algorithm.", - "command_options": "-c id -c name -f value" - }, - { - "name": "get submetarule algorithm", - "command": "submetarule algorithm list", - "result": "(?P<uuid_submetarule_algo>\\w+)\\s+inclusion", - "description": "Get submetarule algorithm named inclusion.", - "command_options": "-c id -c name -f value" - }, - { - "name": "set submetarule algorithm", - "command": "submetarule set --algorithm_name inclusion $submetarule_uuid", - "result": "", - "description": "Set submetarule algorithm to inclusion.", - "command_options": "" - }, - - { - "name": "swift list", - "external_command": "swift list", - "no_result": "moonclient_test", - "description": "Check Swift command, it must be impossible due to current rules" - }, - - { - "name": "list tenant", - "command": "tenant list", - "result": "admin", - "description": "Check if tenant admin is used." - }, - - { - "name": "add_object", - "command": "object add $uuid_account", - "result": "", - "description": "Add the new swift account", - "command_options": "" - }, - { - "name": "list_object", - "command": "object list", - "result": "(?P<uuid_object_swift_account>\\w+)\\s+$uuid_account", - "description": "Check that the new swift account was added." - }, - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_swift_account $uuid_object_category $uuid_object_scope_low", - "result": "^$", - "description": "Set the assignment 'low' to swift account", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_swift_account $uuid_object_category", - "result": "$uuid_object_scope_low low", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_action", - "command": "action add get_account_details --description 'Swift action'", - "result": "", - "description": "Add the action get_account_details", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_swift_get_account_details>\\w+)\\s+get_account_details", - "description": "Check that the new swift action was added." - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_swift_get_account_details $uuid_action_category $uuid_action_scope_storage_access", - "result": "^$", - "description": "Set the assignment 'storage_access' to swift action", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_swift_get_account_details $uuid_action_category", - "result": "$uuid_action_scope_storage_access storage_access", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "swift list", - "external_command": "swift list", - "result": "moonclient_test", - "description": "Check Swift command, it must be now possible due to current rules" - }, - { - "name": "create temp file", - "external_command": "touch /tmp/test.txt", - "result": "", - "description": "Create a temporary file to put in swift." - }, - { - "name": "swift post file", - "external_command": "swift upload moonclient_test /tmp/test.txt", - "result": "", - "description": "Try to put the test file in the container, impossible due to the absence of the object" - }, - { - "name": "swift list", - "external_command": "swift list moonclient_test", - "no_result": "tmp/test.txt", - "description": "Check that test file has not been uploaded." - }, - { - "name": "add_object", - "command": "object add AUTH_6c7f27a7aaf94423a28ea8ac30fea929-moonclient_test", - "result": "", - "description": "Add the new swift container", - "command_options": "" - }, - { - "name": "list_object", - "command": "object list", - "result": "(?P<uuid_object_swift_container>\\w+)\\s+AUTH_6c7f27a7aaf94423a28ea8ac30fea929-moonclient_test", - "description": "Check that the new swift container was added." - }, - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_swift_container $uuid_object_category $uuid_object_scope_low", - "result": "^$", - "description": "Set the assignment 'low' to swift container", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_swift_container $uuid_object_category", - "result": "$uuid_object_scope_low low", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_object", - "command": "object add AUTH_6c7f27a7aaf94423a28ea8ac30fea929-moonclient_test-tmp-test-txt", - "result": "", - "description": "Add the new swift object", - "command_options": "" - }, - { - "name": "list_object", - "command": "object list", - "result": "(?P<uuid_object_swift_object>\\w+)\\s+AUTH_6c7f27a7aaf94423a28ea8ac30fea929-moonclient_test-tmp-test-txt", - "description": "Check that the new swift object was added." - }, - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_swift_object $uuid_object_category $uuid_object_scope_low", - "result": "^$", - "description": "Set the assignment 'low' to swift object", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_swift_object $uuid_object_category", - "result": "$uuid_object_scope_low low", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_action", - "command": "action add get_container --description 'Swift action'", - "result": "", - "description": "Add the action get_container", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_swift_get_container>\\w+)\\s+get_container", - "description": "Check that the new swift action was added." - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_swift_get_container $uuid_action_category $uuid_action_scope_storage_access", - "result": "^$", - "description": "Set the assignment 'storage_access' to swift action", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_swift_get_container $uuid_action_category", - "result": "$uuid_action_scope_storage_access storage_access", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_action", - "command": "action add get_object_metadata --description 'Swift action'", - "result": "", - "description": "Add the action get_object_metadata", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_swift_get_object_metadata>\\w+)\\s+get_object_metadata", - "description": "Check that the new swift action was added." - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_swift_get_object_metadata $uuid_action_category $uuid_action_scope_storage_access", - "result": "^$", - "description": "Set the assignment 'storage_access' to swift action", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_swift_get_object_metadata $uuid_action_category", - "result": "$uuid_action_scope_storage_access storage_access", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_action", - "command": "action add create_object --description 'Swift action'", - "result": "", - "description": "Add the action create_object", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_swift_create_object>\\w+)\\s+create_object", - "description": "Check that the new swift action was added." - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_swift_create_object $uuid_action_category $uuid_action_scope_storage_admin", - "result": "^$", - "description": "Set the assignment 'storage_access' to swift action", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_swift_create_object $uuid_action_category", - "result": "$uuid_action_scope_storage_admin storage_admin", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_action", - "command": "action add create_container --description 'Swift action'", - "result": "", - "description": "Add the action create_container", - "command_options": "" - }, - { - "name": "list_action", - "command": "action list", - "result": "(?P<uuid_action_swift_create_container>\\w+)\\s+create_container", - "description": "Check that the new swift action was added." - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_swift_create_container $uuid_action_category $uuid_action_scope_storage_admin", - "result": "^$", - "description": "Set the assignment 'storage_access' to swift action", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_swift_create_container $uuid_action_category", - "result": "$uuid_action_scope_storage_admin storage_admin", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "swift post file", - "external_command": "swift upload moonclient_test /tmp/test.txt", - "result": "", - "description": "Put the test file in the container" - }, - { - "name": "swift list", - "external_command": "swift list moonclient_test", - "result": "tmp/test.txt", - "description": "Check that test file has been uploaded." - }, - - - { - "name": "delete_authz_intra_extension", - "command": "intraextension delete $uuid_authz", - "result": "", - "description": "Delete the authz intra extension", - "command_options": "" - }, - { - "name": "delete_tenant", - "command": "tenant delete $uuid", - "result": "", - "description": "Delete the tenant admin", - "command_options": "" - }, - { - "name": "swift delete new container", - "external_command": "swift delete moonclient_test", - "result": "", - "description": "Delete the new server" - } - ] - } -}
\ No newline at end of file |