From 4fc038ee9c0a633a0c505d750818698331c19c69 Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Fri, 9 Sep 2016 15:00:37 +0200 Subject: Udate the basic auth for the federation test and move some moonclient tests. Change-Id: I8ee356a79d642fe3e6911a29315cbbde9a5fc34a (cherry picked from commit 09f675366af24386f77f556b31a3e8fa2a6397dd) --- .../tests/tests_empty_policy_new_user.json | 3627 -------------------- .../moonclient/tests/tests_empty_policy_nova.json | 1079 ------ .../moonclient/tests/tests_empty_policy_swift.json | 1175 ------- .../moonclient/tests/tests_external_commands.json | 228 -- .../tests/todo/tests_empty_policy_new_user.json | 3627 ++++++++++++++++++++ .../tests/todo/tests_empty_policy_nova.json | 1079 ++++++ .../tests/todo/tests_empty_policy_swift.json | 1175 +++++++ .../tests/todo/tests_external_commands.json | 228 ++ tests/run_tests.py | 40 +- 9 files changed, 6129 insertions(+), 6129 deletions(-) delete mode 100644 moonclient/moonclient/tests/tests_empty_policy_new_user.json delete mode 100644 moonclient/moonclient/tests/tests_empty_policy_nova.json delete mode 100644 moonclient/moonclient/tests/tests_empty_policy_swift.json delete mode 100644 moonclient/moonclient/tests/tests_external_commands.json create mode 100644 moonclient/moonclient/tests/todo/tests_empty_policy_new_user.json create mode 100644 moonclient/moonclient/tests/todo/tests_empty_policy_nova.json create mode 100644 moonclient/moonclient/tests/todo/tests_empty_policy_swift.json create mode 100644 moonclient/moonclient/tests/todo/tests_external_commands.json diff --git a/moonclient/moonclient/tests/tests_empty_policy_new_user.json b/moonclient/moonclient/tests/tests_empty_policy_new_user.json deleted file mode 100644 index ad9d7e52..00000000 --- a/moonclient/moonclient/tests/tests_empty_policy_new_user.json +++ /dev/null @@ -1,3627 +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": "get cirros image", - "external_command": "wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img -o /tmp/cirros.img", - "result": "", - "description": "Download a Cirros image" - }, - { - "name": "install cirros image", - "external_command": "glance image-create --name \"cirros\" --disk-format qcow2 --file /tmp/cirros.img --container-format bare", - "result": "", - "description": "Upload the Cirros image in glance" - }, - { - "name": "create secgroup", - "external_command": "nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0", - "result": "", - "description": "Create a new secgroup in Nova" - }, - { - "name": "create secgroup", - "external_command": "nova secgroup-add-rule default tcp 22 22 0.0.0.0/0", - "result": "", - "description": "Create a new secgroup in Nova" - }, - { - "name": "create router", - "external_command": "neutron router-create demo-router", - "result": "", - "description": "Create a new router" - }, - { - "name": "set router", - "external_command": "neutron router-gateway-set demo-router ext-net", - "result": "", - "description": "Configure the new router" - }, - { - "name": "set router", - "external_command": "neutron net-create demo-net", - "result": "", - "description": "Configure the new router" - }, - { - "name": "set router", - "external_command": "neutron subnet-create demo-net 192.168.1.0/24 --name demo-subnet --gateway 192.168.1.1", - "result": "", - "description": "Configure the new router" - }, - { - "name": "set router", - "external_command": "neutron router-interface-add demo-router demo-subnet", - "result": "", - "description": "Configure the new router" - }, - { - "name": "openstack image list", - "external_command": "nova image-list", - "result": "(?P[\\w-]+)\\s+\\| cirros", - "description": "Get an Image ID" - }, - { - "name": "create tenant test", - "external_command": "openstack project create test_moonclient", - "result": "", - "description": "Create a new tenant" - }, - { - "name": "create user demo", - "external_command": "openstack user create --password console demo", - "result": "", - "description": "Create user demo" - }, - { - "name": "add role admin to demo", - "external_command": "openstack role add --project admin --user demo admin", - "result": "", - "description": "Force the admin role for the user demo on the project admin (for testing purpose)." - }, - { - "name": "neutron net-list", - "external_command": "neutron net-list", - "result": "(?P[\\w-]+)\\s+\\| demo-net", - "description": "Get an Net ID" - }, - { - "name": "nova boot new server", - "external_command": "nova boot --flavor m1.tiny --image $uuid_image --nic net-id=$uuid_net --security-group default test_moonclient", - "result": "", - "description": "Get an Image ID" - }, - { - "name": "sleep", - "external_command": "sleep 10", - "result": "", - "description": "time for server to really boot" - }, - { - "name": "nova get new server", - "external_command": "nova list", - "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", - "description": "Get the ID of the new server" - }, - { - "name": "list tenant", - "command": "tenant list", - "no_result": "demo", - "description": "Check if tenant demo is used." - }, - { - "name": "add tenant demo", - "command": "tenant add demo", - "result": "^$", - "description": "Add a new tenant", - "command_options": "" - }, - { - "name": "check tenant demo", - "command": "tenant list", - "result": "(?P\\w+)\\s+demo", - "description": "Check that tenant demo has been correctly added" - }, - { - "name": "add role admin to demo", - "external_command": "openstack role add --project demo --user demo admin ", - "result": "", - "description": "Add role admin to user demo (an error may occurred)" - }, - { - "name": "create_intraextension_authz", - "command": "intraextension add --policy_model policy_empty_authz empty_test", - "result": "IntraExtension created: (?P\\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": "demo", - "description": "Check if tenant demo 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 console", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_subject", - "command": "subject list", - "result": "(?P\\w+)\\s+admin", - "description": "Check that admin subject was added." - }, - { - "name": "add_subject", - "command": "subject add demo --subject_pass console", - "result": "", - "description": "", - "command_options": "" - }, - { - "name": "list_subject", - "command": "subject list", - "result": "(?P\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\w+)\\s+resource_action", - "description": "Check that resource_action action_category was added." - }, - - { - "name": "add_scope", - "command": "subject scope add $uuid_subject_category_authz 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_authz", - "result": "(?P\\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_authz 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_authz", - "result": "(?P\\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_authz 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_authz", - "result": "(?P\\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_authz 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_authz", - "result": "(?P\\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_authz 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_authz", - "result": "(?P\\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_authz 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_authz", - "result": "(?P\\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_authz 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_authz", - "result": "(?P\\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_authz 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_authz", - "result": "(?P\\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_authz 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_authz", - "result": "(?P\\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_authz 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_authz", - "result": "(?P\\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_authz $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_authz", - "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_authz $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_authz", - "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_authz $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_authz", - "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_authz $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_authz", - "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_authz $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_authz", - "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_authz $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_authz", - "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_authz $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_authz", - "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_authz $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_authz", - "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_authz $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_authz", - "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_authz $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_authz", - "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_authz $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_authz", - "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_authz $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_authz", - "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_authz $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_authz", - "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_authz $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_authz", - "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\\w+)", - "description": "Get one submetarule ID", - "command_options": "-c id -f value" - }, - { - "name": "set_submetarule", - "command": "submetarule set $submetarule_uuid_authz --subject_category_id=\"$uuid_subject_category_authz\" --object_category_id=\"$uuid_object_category_authz\" --action_category_id=\"$uuid_action_category_authz\"", - "result": "^$", - "description": "Set a new submetarule", - "command_options": "" - }, - { - "name": "check_submetarule", - "command": "submetarule show", - "result": "$submetarule_uuid_authz \\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_authz \\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_authz \\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_authz \"high,vm_admin,medium\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_authz", - "result": "(?P\\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_authz \"high,vm_admin,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_authz", - "result": "(?P\\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_authz \"medium,vm_admin,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_authz", - "result": "(?P\\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_authz \"high,vm_access,medium\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_authz", - "result": "(?P\\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_authz \"high,vm_access,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_authz", - "result": "(?P\\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_authz \"medium,vm_access,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_authz", - "result": "(?P\\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_authz \"high,storage_admin,medium\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_authz", - "result": "(?P\\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_authz \"high,storage_admin,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_authz", - "result": "(?P\\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_authz \"medium,storage_admin,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_authz", - "result": "(?P\\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_authz \"high,storage_access,medium\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_authz", - "result": "(?P\\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_authz \"high,storage_access,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_authz", - "result": "(?P\\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_authz \"medium,storage_access,low\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_authz", - "result": "(?P\\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\\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\\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_authz", - "result": "", - "description": "Set submetarule algorithm to inclusion.", - "command_options": "" - }, - - { - "name": "create_intraextension_admin", - "command": "intraextension add --policy_model policy_empty_admin empty_admin_test", - "result": "IntraExtension created: (?P\\w+)", - "description": "Create an admin intra extension", - "command_options": "" - }, - { - "name": "list_intraextension_authz", - "command": "intraextension list", - "result": "$uuid_admin", - "description": "Check the existence of that admin intra extension" - }, - { - "name": "set_tenant_admin", - "command": "tenant set --admin $uuid_admin $uuid", - "result": "", - "description": "Connect the admin intra extension to the tenant demo", - "command_options": "" - }, - { - "name": "list tenant", - "command": "tenant list", - "result": "demo", - "description": "Check if tenant demo is used." - }, - { - "name": "select_admin_ie", - "command": "intraextension select $uuid_admin", - "result": "Select $uuid_admin IntraExtension.", - "description": "Select the admin IntraExtension", - "command_options": "" - }, - { - "name": "check_select_admin_ie", - "command": "intraextension show selected", - "result": "$uuid_admin", - "description": "Check the selected admin IntraExtension", - "command_options": "-c id -f value" - }, - - { - "name": "add_subject", - "command": "subject add admin --subject_pass console", - "result": "", - "description": "Add admin subject.", - "command_options": "" - }, - { - "name": "list_subject", - "command": "subject list", - "result": "(?P\\w+)\\s+admin", - "description": "Check that admin subject was already there." - }, - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.subjects", - "description": "Check that authz_subjects subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.objects", - "description": "Check that authz_objects subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.actions", - "description": "Check that authz_actions subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.subject_categories", - "description": "Check that authz_subject_categories subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.object_categories", - "description": "Check that authz_object_categories subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.action_categories", - "description": "Check that authz_action_categories subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.subject_scopes", - "description": "Check that authz_subject_scopes subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.object_scopes", - "description": "Check that authz_object_scopes subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.action_scopes", - "description": "Check that authz_action_scopes subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.subject_assignments", - "description": "Check that authz_subject_assignments subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.object_assignments", - "description": "Check that authz_object_assignments subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.action_assignments", - "description": "Check that authz_action_assignments subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.aggregation_algorithm", - "description": "Check that authz_aggregation_algorithm subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.sub_meta_rules", - "description": "Check that authz_sub_meta_rules subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+authz.rules", - "description": "Check that authz_rules subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.subjects", - "description": "Check that admin_subjects subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.objects", - "description": "Check that admin_objects subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.actions", - "description": "Check that admin_actions subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.subject_categories", - "description": "Check that admin_subject_categories subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.object_categories", - "description": "Check that admin_object_categories subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.action_categories", - "description": "Check that admin_action_categories subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.subject_scopes", - "description": "Check that admin_subject_scopes subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.object_scopes", - "description": "Check that admin_object_scopes subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.action_scopes", - "description": "Check that admin_action_scopes subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.subject_assignments", - "description": "Check that admin_subject_assignments subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.object_assignments", - "description": "Check that admin_object_assignments subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.action_assignments", - "description": "Check that admin_action_assignments subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.aggregation_algorithm", - "description": "Check that admin_aggregation_algorithm subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.sub_meta_rules", - "description": "Check that admin_sub_meta_rules subject was already there." - }, - - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+admin.rules", - "description": "Check that admin_rules subject was already there." - }, - - { - "name": "list_action", - "command": "action list", - "result": "(?P\\w+)\\s+read", - "description": "Check that read action was already there." - }, - - { - "name": "list_action", - "command": "action list", - "result": "(?P\\w+)\\s+write", - "description": "Check that write action was already there." - }, - - { - "name": "add_subject_category", - "command": "subject category add role", - "result": "", - "description": "Add the new subject category role", - "command_options": "" - }, - { - "name": "list_subject_category", - "command": "subject category list", - "result": "(?P\\w+)\\s+role", - "description": "Check that role subject_category was added." - }, - { - "name": "add_object_category", - "command": "object category add object_id", - "result": "", - "description": "Add the new object category object_id", - "command_options": "" - }, - { - "name": "list_object_category", - "command": "object category list", - "result": "(?P\\w+)\\s+object_id", - "description": "Check that object_id object_category was added." - }, - { - "name": "add_action_category", - "command": "action category add action_id", - "result": "", - "description": "Add the new action category action_id", - "command_options": "" - }, - { - "name": "list_subject_category", - "command": "action category list", - "result": "(?P\\w+)\\s+action_id", - "description": "Check that action_id action_category was added." - }, - - { - "name": "add_scope", - "command": "subject scope add $uuid_subject_category_admin root_role --description \"root role\"", - "result": "^$", - "description": "Add one scope to subject category role", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "subject scope list $uuid_subject_category_admin", - "result": "(?P\\w+)\\s+root_role\\s+root role", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - { - "name": "add_scope", - "command": "subject scope add $uuid_subject_category_admin dev_role --description \"dev role\"", - "result": "^$", - "description": "Add one scope to subject category role", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "subject scope list $uuid_subject_category_admin", - "result": "(?P\\w+)\\s+dev_role\\s+dev role", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_subjects --description \"authz subjects\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.subjects\\s+authz subjects", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_objects --description \"authz objects\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.objects\\s+authz objects", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_actions --description \"authz actions\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.actions\\s+authz actions", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_subject_categories --description \"authz subject categories\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.subject_categories\\s+authz subject categories", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_object_categories --description \"authz object categories\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.object_categories\\s+authz object categories", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_action_categories --description \"authz action categories\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.action_categories\\s+authz action categories", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_subject_scopes --description \"authz subject scopes\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.subject_scopes\\s+authz subject scopes", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_object_scopes --description \"authz object scopes\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.object_scopes\\s+authz object scopes", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_action_scopes --description \"authz action scopes\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.action_scopes\\s+authz action scopes", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_subject_assignments --description \"authz subject assignments\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.subject_assignments\\s+authz subject assignments", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_object_assignments --description \"authz object assignments\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.object_assignments\\s+authz object assignments", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_action_assignments --description \"authz action assignments\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.action_assignments\\s+authz action assignments", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_aggregation_algorithm --description \"authz aggregation algorithm\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.aggregation_algorithm\\s+authz aggregation algorithm", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_sub_meta_rules --description \"authz sub meta rules\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.sub_meta_rules\\s+authz sub meta rules", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin authz_rules --description \"authz rules\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+authz.rules\\s+authz rules", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_subjects --description \"admin subjects\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.subjects\\s+admin subjects", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_objects --description \"admin objects\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.objects\\s+admin objects", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_actions --description \"admin actions\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.actions\\s+admin actions", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_subject_categories --description \"admin subject categories\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.subject_categories\\s+admin subject categories", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_object_categories --description \"admin object categories\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.object_categories\\s+admin object categories", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_action_categories --description \"admin action categories\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.action_categories\\s+admin action categories", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_subject_scopes --description \"admin subject scopes\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.subject_scopes\\s+admin subject scopes", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_object_scopes --description \"admin object scopes\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.object_scopes\\s+admin object scopes", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_action_scopes --description \"admin action scopes\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.action_scopes\\s+admin action scopes", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_subject_assignments --description \"admin subject assignments\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.subject_assignments\\s+admin subject assignments", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_object_assignments --description \"admin object assignments\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.object_assignments\\s+admin object assignments", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_action_assignments --description \"admin action assignments\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.action_assignments\\s+admin action assignments", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_aggregation_algorithm --description \"admin aggregation algorithm\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.aggregation_algorithm\\s+admin aggregation algorithm", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_sub_meta_rules --description \"admin sub meta rules\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.sub_meta_rules\\s+admin sub meta rules", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - - { - "name": "add_scope", - "command": "object scope add $uuid_object_category_admin admin_rules --description \"admin rules\"", - "result": "^$", - "description": "Add one scope to object category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "object scope list $uuid_object_category_admin", - "result": "(?P\\w+)\\s+admin.rules\\s+admin rules", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - { - "name": "add_scope", - "command": "action scope add $uuid_action_category_admin read --description \"read\"", - "result": "^$", - "description": "Add one scope to action category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "action scope list $uuid_action_category_admin", - "result": "(?P\\w+)\\s+read\\s+read", - "description": "Check added scope.", - "command_options": "-c id -c name -c description -f value" - }, - { - "name": "add_scope", - "command": "action scope add $uuid_action_category_admin write --description \"write\"", - "result": "^$", - "description": "Add one scope to action category", - "command_options": "" - }, - { - "name": "check_added_scope", - "command": "action scope list $uuid_action_category_admin", - "result": "(?P\\w+)\\s+write\\s+write", - "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_admin $uuid_subject_scope_root_role", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "subject assignment list $uuid_subject_admin $uuid_subject_category_admin", - "result": "$uuid_subject_scope_root_role root_role", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_subjects $uuid_object_category_admin $uuid_object_scope_authz_subjects", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_subjects $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_subjects authz_subjects", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_objects $uuid_object_category_admin $uuid_object_scope_authz_objects", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_objects $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_objects authz_objects", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_actions $uuid_object_category_admin $uuid_object_scope_authz_actions", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_actions $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_actions authz_actions", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_subject_categories $uuid_object_category_admin $uuid_object_scope_authz_subject_categories", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_subject_categories $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_subject_categories authz_subject_categories", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_object_categories $uuid_object_category_admin $uuid_object_scope_authz_object_categories", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_object_categories $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_object_categories authz_object_categories", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_action_categories $uuid_object_category_admin $uuid_object_scope_authz_action_categories", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_action_categories $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_action_categories authz_action_categories", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_subject_scopes $uuid_object_category_admin $uuid_object_scope_authz_subject_scopes", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_subject_scopes $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_subject_scopes authz_subject_scopes", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_object_scopes $uuid_object_category_admin $uuid_object_scope_authz_object_scopes", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_object_scopes $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_object_scopes authz_object_scopes", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_action_scopes $uuid_object_category_admin $uuid_object_scope_authz_action_scopes", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_action_scopes $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_action_scopes authz_action_scopes", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_subject_assignments $uuid_object_category_admin $uuid_object_scope_authz_subject_assignments", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_subject_assignments $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_subject_assignments authz_subject_assignments", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_object_assignments $uuid_object_category_admin $uuid_object_scope_authz_object_assignments", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_object_assignments $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_object_assignments authz_object_assignments", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_action_assignments $uuid_object_category_admin $uuid_object_scope_authz_action_assignments", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_action_assignments $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_action_assignments authz_action_assignments", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_aggregation_algorithm $uuid_object_category_admin $uuid_object_scope_authz_aggregation_algorithm", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_aggregation_algorithm $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_aggregation_algorithm authz_aggregation_algorithm", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_sub_meta_rules $uuid_object_category_admin $uuid_object_scope_authz_sub_meta_rules", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_sub_meta_rules $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_sub_meta_rules authz_sub_meta_rules", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_authz_rules $uuid_object_category_admin $uuid_object_scope_authz_rules", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_authz_rules $uuid_object_category_admin", - "result": "$uuid_object_scope_authz_rules authz_rules", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_subjects $uuid_object_category_admin $uuid_object_scope_admin_subjects", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_subjects $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_subjects admin_subjects", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_objects $uuid_object_category_admin $uuid_object_scope_admin_objects", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_objects $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_objects admin_objects", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_actions $uuid_object_category_admin $uuid_object_scope_admin_actions", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_actions $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_actions admin_actions", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_subject_categories $uuid_object_category_admin $uuid_object_scope_admin_subject_categories", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_subject_categories $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_subject_categories admin_subject_categories", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_object_categories $uuid_object_category_admin $uuid_object_scope_admin_object_categories", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_object_categories $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_object_categories admin_object_categories", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_action_categories $uuid_object_category_admin $uuid_object_scope_admin_action_categories", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_action_categories $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_action_categories admin_action_categories", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_subject_scopes $uuid_object_category_admin $uuid_object_scope_admin_subject_scopes", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_subject_scopes $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_subject_scopes admin_subject_scopes", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_object_scopes $uuid_object_category_admin $uuid_object_scope_admin_object_scopes", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_object_scopes $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_object_scopes admin_object_scopes", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_action_scopes $uuid_object_category_admin $uuid_object_scope_admin_action_scopes", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_action_scopes $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_action_scopes admin_action_scopes", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_subject_assignments $uuid_object_category_admin $uuid_object_scope_admin_subject_assignments", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_subject_assignments $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_subject_assignments admin_subject_assignments", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_object_assignments $uuid_object_category_admin $uuid_object_scope_admin_object_assignments", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_object_assignments $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_object_assignments admin_object_assignments", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_action_assignments $uuid_object_category_admin $uuid_object_scope_admin_action_assignments", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_action_assignments $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_action_assignments admin_action_assignments", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_aggregation_algorithm $uuid_object_category_admin $uuid_object_scope_admin_aggregation_algorithm", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_aggregation_algorithm $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_aggregation_algorithm admin_aggregation_algorithm", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_sub_meta_rules $uuid_object_category_admin $uuid_object_scope_admin_sub_meta_rules", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_sub_meta_rules $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_sub_meta_rules admin_sub_meta_rules", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_admin_rules $uuid_object_category_admin $uuid_object_scope_admin_rules", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_admin_rules $uuid_object_category_admin", - "result": "$uuid_object_scope_admin_rules admin_rules", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_read $uuid_action_category_admin $uuid_action_scope_read", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_read $uuid_action_category_admin", - "result": "$uuid_action_scope_read read", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_assignment", - "command": "action assignment add $uuid_action_write $uuid_action_category_admin $uuid_action_scope_write", - "result": "^$", - "description": "Add a new assignment", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "action assignment list $uuid_action_write $uuid_action_category_admin", - "result": "$uuid_action_scope_write write", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "check_submetarules", - "command": "submetarule show", - "result": "(?P\\w+)", - "description": "Get one submetarule ID", - "command_options": "-c id -f value" - }, - { - "name": "set_submetarule", - "command": "submetarule set $submetarule_uuid_admin --subject_category_id=\"$uuid_subject_category_admin\" --object_category_id=\"$uuid_object_category_admin\" --action_category_id=\"$uuid_action_category_admin\"", - "result": "^$", - "description": "Set a new submetarule", - "command_options": "" - }, - { - "name": "check_submetarule", - "command": "submetarule show", - "result": "$submetarule_uuid_admin \\s*role", - "description": "Check the new submetarule", - "command_options": "-c id -c \"subject categories\" -f value" - }, - { - "name": "check_submetarule", - "command": "submetarule show", - "result": "$submetarule_uuid_admin \\s*object_id", - "description": "Check the new submetarule", - "command_options": "-c id -c \"object categories\" -f value" - }, - { - "name": "check_submetarule", - "command": "submetarule show", - "result": "$submetarule_uuid_admin \\s*action_id", - "description": "Check the new submetarule", - "command_options": "-c id -c \"action categories\" -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_subjects\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.subjects", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_objects\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.objects", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_actions\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.actions", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_subject_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.subject_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_object_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.object_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_action_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.action_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_subject_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.subject_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_object_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.object_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_action_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.action_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_subject_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.subject_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_object_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.object_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_action_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.action_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_aggregation_algorithm\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.aggregation_algorithm", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_sub_meta_rules\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.sub_meta_rules", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_rules\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.rules", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_subjects\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.subjects", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_objects\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.objects", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_actions\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.actions", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_subject_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.subject_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_object_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.object_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_action_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.action_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_subject_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.subject_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_object_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.object_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_action_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.action_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_subject_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.subject_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_object_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.object_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_action_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.action_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_aggregation_algorithm\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.aggregation_algorithm", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_sub_meta_rules\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.sub_meta_rules", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_rules\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.rules", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_subjects\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.subjects", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_objects\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.objects", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_actions\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.actions", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_subject_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.subject_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_object_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.object_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_action_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.action_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_subject_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.subject_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_object_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.object_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_action_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.action_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_subject_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.subject_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_object_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.object_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_action_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.action_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_aggregation_algorithm\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.aggregation_algorithm", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_sub_meta_rules\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.sub_meta_rules", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_rules\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.rules", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_subjects\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.subjects", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_objects\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.objects", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_actions\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.actions", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_subject_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.subject_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_object_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.object_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_action_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.action_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_subject_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.subject_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_object_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.object_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_action_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.action_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_subject_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.subject_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_object_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.object_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_action_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.action_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_aggregation_algorithm\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.aggregation_algorithm", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_sub_meta_rules\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.sub_meta_rules", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_rules\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.rules", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - { - "name": "get aggregation algorithm", - "command": "aggregation algorithm list", - "result": "(?P\\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\\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_admin", - "result": "", - "description": "Set submetarule algorithm to inclusion.", - "command_options": "" - }, - - { - "name": "select_admin_ie", - "command": "intraextension select $uuid_admin", - "result": "Select $uuid_admin IntraExtension.", - "description": "Select the admin IntraExtension", - "command_options": "" - }, - { - "name": "check_select_admin_ie", - "command": "intraextension show selected", - "result": "$uuid_admin", - "description": "Check the selected admin IntraExtension", - "command_options": "-c id -f value" - }, - { - "name": "add_subject", - "command": "subject add demo --subject_pass console", - "result": "", - "description": "Add demo subject.", - "command_options": "" - }, - { - "name": "list_subject", - "command": "subject list", - "result": "(?P\\w+)\\s+demo", - "description": "Check that demo subject was added." - }, - { - "name": "add_new_role", - "command": "subject scope add $uuid_subject_category_admin demo_role", - "result": "", - "description": "Add demo_role to demo subject.", - "command_options": "" - }, - { - "name": "check_new_role", - "command": "subject scope list $uuid_subject_category_admin", - "result": "(?P\\w+)\\s+demo_role", - "description": "Check that demo_role was added." - }, - { - "name": "add_new_assignment", - "command": "subject assignment add $uuid_subject_demo_admin $uuid_subject_category_admin $uuid_subject_scope_demo_role", - "result": "", - "description": "Link the demo subject to the demo_role scope.", - "command_options": "" - }, - { - "name": "check_new_assignment", - "command": "subject assignment list $uuid_subject_demo_admin $uuid_subject_category_admin", - "result": "$uuid_subject_scope_demo_role demo_role", - "description": "Check that assignment was added.", - "command_options": "-c id -c name -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"demo_role,read,authz_objects\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+demo_role\\s+read\\s+authz_objects", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"demo_role,write,authz_objects\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+demo_role\\s+write\\s+authz_objects", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"demo_role,read,authz_object_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+demo_role\\s+read\\s+authz_object_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"demo_role,write,authz_object_assignments\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+demo_role\\s+write\\s+authz_object_assignments", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"demo_role,read,authz_object_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+demo_role\\s+read\\s+authz_object_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"demo_role,write,authz_object_scopes\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+demo_role\\s+write\\s+authz_object_scopes", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"demo_role,read,authz_object_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+demo_role\\s+read\\s+authz_object_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - { - "name": "add_a_new_rule", - "command": "rule add $submetarule_uuid_admin \"demo_role,write,authz_object_categories\"", - "result": "^$", - "description": "Add a new rule.", - "command_options": "" - }, - { - "name": "check_added_rule", - "command": "rule list $submetarule_uuid_admin", - "result": "(?P\\w+)\\s+demo_role\\s+write\\s+authz_object_categories", - "description": "Check that the rule was correctly added.", - "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" - }, - - { - "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 admin IntraExtension", - "command_options": "-c id -f value" - }, - { - "name": "add_subject", - "command": "subject add demo --subject_pass console", - "result": "", - "description": "Add demo subject.", - "command_options": "" - }, - { - "name": "list_subject", - "command": "subject list", - "result": "(?P\\w+)\\s+demo", - "description": "Check that admin subject was added." - }, - - { - "name": "demo: check nova command", - "external_command": "nova --os-user-name demo --os-project-name demo --os-password console list", - "result": "test_moonclient", - "description": "Check demo can list nova servers due to the current rules" - }, - { - "name": "demo: try to pause nova instance", - "external_command": "nova --os-username demo --os-project-name demo --os-password console pause $uuid_server", - "result": "^$", - "description": "Pausing the server must be impossible due to the current rules" - }, - { - "name": "check nova command", - "external_command": "nova --os-user-name demo --os-project-name demo --os-password console list", - "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", - "description": "Check that nova server is still in running state." - }, - - { - "name": "list tenant", - "command": "tenant list", - "result": "demo", - "description": "Check if tenant demo 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" - }, - - { - "auth_name": "demo", - "auth_password": "console", - "auth_tenant": "demo", - "description": "Change user to demo" - }, - - { - "name": "add_object", - "command": "object add $uuid_server", - "result": "", - "description": "Add the new nova server", - "command_options": "" - }, - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+$uuid_server", - "description": "Check that the new nova server was added." - }, - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_nova_server $uuid_object_category_authz $uuid_object_scope_low", - "result": "^$", - "description": "Set the assignment 'low' to nova server", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_nova_server $uuid_object_category_authz", - "result": "$uuid_object_scope_low low", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "check nova command", - "external_command": "nova list", - "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", - "description": "Check that we can now list nova servers due to the current rules" - }, - { - "name": "try to pause nova instance", - "external_command": "nova pause $uuid_server", - "result": "^$", - "description": "Pausing the server must be possible now" - }, - { - "name": "check nova command", - "external_command": "nova list", - "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| PAUSED\\s+\\| [\\w\\-]+\\s+\\| Paused", - "description": "Check that we can still list nova servers due to the current rules" - }, - { - "name": "reactivate nova instance", - "external_command": "nova unpause $uuid_server", - "result": "^$", - "description": "Unpausing the server for next tests" - }, - - { - "name": "del_assignment", - "command": "object assignment delete $uuid_object_nova_server $uuid_object_category_authz $uuid_object_scope_low", - "result": "^$", - "description": "Delete the assignment 'low' to nova server", - "command_options": "" - }, - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_nova_server $uuid_object_category_authz $uuid_object_scope_high", - "result": "^$", - "description": "Set the assignment 'high' to nova server", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_nova_server $uuid_object_category_authz", - "result": "$uuid_object_scope_high high", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "check nova command", - "external_command": "nova list", - "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", - "description": "Check that we can now list nova servers due to the current rules" - }, - { - "name": "try to pause nova instance", - "external_command": "nova pause $uuid_server", - "result": "^$", - "description": "Pausing the server must be not possible now" - }, - { - "name": "check nova command", - "external_command": "nova list", - "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", - "description": "Check that we can still list nova servers due to the current rules" - }, - - - { - "auth_name": "admin", - "auth_tenant": "admin", - "description": "Change user to admin" - }, - - { - "name": "delete_authz_intra_extension", - "command": "intraextension delete $uuid_authz", - "result": "", - "description": "Delete the authz intra extension", - "command_options": "" - }, - { - "name": "delete_admin_intra_extension", - "command": "intraextension delete $uuid_admin", - "result": "", - "description": "Delete the admin intra extension", - "command_options": "" - }, - { - "name": "delete_tenant", - "command": "tenant delete $uuid", - "result": "", - "description": "Delete the tenant demo", - "command_options": "" - }, - { - "name": "nova delete new server", - "external_command": "nova delete $uuid_server", - "result": "", - "description": "Delete the new server" - } - ] - } -} diff --git a/moonclient/moonclient/tests/tests_empty_policy_nova.json b/moonclient/moonclient/tests/tests_empty_policy_nova.json deleted file mode 100644 index 399710be..00000000 --- a/moonclient/moonclient/tests/tests_empty_policy_nova.json +++ /dev/null @@ -1,1079 +0,0 @@ -{ - "command_options": "-f value", - "tests_group": { - "authz": [ - { - "auth_name": "admin", - "description": "Change user to admin (just in case...)" - }, - - { - "name": "get cirros image", - "external_command": "wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img -o /tmp/cirros.img", - "result": "", - "description": "Download a Cirros image" - }, - { - "name": "install cirros image", - "external_command": "glance image-create --name \"cirros\" --disk-format qcow2 --file /tmp/cirros.img --container-format bare", - "result": "", - "description": "Upload the Cirros image in glance" - }, - { - "name": "create secgroup", - "external_command": "nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0", - "result": "", - "description": "Create a new secgroup in Nova" - }, - { - "name": "create secgroup", - "external_command": "nova secgroup-add-rule default tcp 22 22 0.0.0.0/0", - "result": "", - "description": "Create a new secgroup in Nova" - }, - { - "name": "create router", - "external_command": "neutron router-create demo-router", - "result": "", - "description": "Create a new router" - }, - { - "name": "set router", - "external_command": "neutron router-gateway-set demo-router ext-net", - "result": "", - "description": "Configure the new router" - }, - { - "name": "set router", - "external_command": "neutron net-create demo-net", - "result": "", - "description": "Configure the new router" - }, - { - "name": "set router", - "external_command": "neutron subnet-create demo-net 192.168.1.0/24 --name demo-subnet --gateway 192.168.1.1", - "result": "", - "description": "Configure the new router" - }, - { - "name": "set router", - "external_command": "neutron router-interface-add demo-router demo-subnet", - "result": "", - "description": "Configure the new router" - }, - { - "name": "nova image-list", - "external_command": "nova image-list", - "result": "(?P[\\w-]+)\\s+\\| cirros", - "description": "Get an Image ID" - }, - { - "name": "neutron net-list", - "external_command": "neutron net-list", - "result": "(?P[\\w-]+)\\s+\\| ext-net", - "description": "Get an Net ID" - }, - { - "name": "nova boot new server", - "external_command": "nova boot --flavor m1.tiny --image $uuid_image --nic net-id=$uuid_net --security-group default test_moonclient", - "result": "", - "description": "Get an Image ID" - }, - { - "name": "sleep", - "external_command": "sleep 10", - "result": "", - "description": "time for server to really boot" - }, - { - "name": "nova get new server", - "external_command": "nova list", - "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", - "description": "Get the ID of the new server" - }, - { - "name": "list tenant", - "command": "tenant list", - "no_result": "demo", - "description": "Check if tenant demo is used." - }, - { - "name": "add tenant demo", - "command": "tenant add demo", - "result": "^$", - "description": "Add a new tenant", - "command_options": "" - }, - { - "name": "check tenant demo", - "command": "tenant list", - "result": "(?P\\w+)\\s+demo", - "description": "Check that tenant demo has been correctly added" - }, - - { - "name": "check nova command", - "external_command": "nova list", - "no_result": "test_moonclient", - "description": "Check that we cannot list nova servers due to the current rules" - }, - { - "name": "try to pause nova instance", - "external_command": "nova pause $uuid_server", - "result": "^$", - "description": "Pausing the server must be impossible due to the current rules" - }, - - { - "name": "create_intraextension_authz", - "command": "intraextension add --policy_model policy_empty_authz empty_test", - "result": "IntraExtension created: (?P\\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": "demo", - "description": "Check if tenant demo 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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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": "list tenant", - "command": "tenant list", - "result": "demo", - "description": "Check if tenant demo is used." - }, - - { - "name": "add_object", - "command": "object add $uuid_server", - "result": "", - "description": "Add the new nova server", - "command_options": "" - }, - { - "name": "list_object", - "command": "object list", - "result": "(?P\\w+)\\s+$uuid_server", - "description": "Check that the new nova server was added." - }, - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_nova_server $uuid_object_category $uuid_object_scope_low", - "result": "^$", - "description": "Set the assignment 'low' to nova server", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_nova_server $uuid_object_category", - "result": "$uuid_object_scope_low low", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "check nova command", - "external_command": "nova list", - "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", - "description": "Check that we can now list nova servers due to the current rules" - }, - { - "name": "try to pause nova instance", - "external_command": "nova pause $uuid_server", - "result": "^$", - "description": "Pausing the server must be possible now" - }, - { - "name": "check nova command", - "external_command": "nova list", - "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| PAUSED\\s+\\| [\\w\\-]+\\s+\\| Paused", - "description": "Check that we can still list nova servers due to the current rules" - }, - { - "name": "reactivate nova instance", - "external_command": "nova unpause $uuid_server", - "result": "^$", - "description": "Unpausing the server for next tests" - }, - - { - "name": "del_assignment", - "command": "object assignment delete $uuid_object_nova_server $uuid_object_category $uuid_object_scope_low", - "result": "^$", - "description": "Delete the assignment 'low' to nova server", - "command_options": "" - }, - { - "name": "add_assignment", - "command": "object assignment add $uuid_object_nova_server $uuid_object_category $uuid_object_scope_high", - "result": "^$", - "description": "Set the assignment 'high' to nova server", - "command_options": "" - }, - { - "name": "check_added_assignment", - "command": "object assignment list $uuid_object_nova_server $uuid_object_category", - "result": "$uuid_object_scope_high high", - "description": "Check added assignment.", - "command_options": "-c id -c name -f value" - }, - - { - "name": "check nova command", - "external_command": "nova list", - "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", - "description": "Check that we can now list nova servers due to the current rules" - }, - { - "name": "try to pause nova instance", - "external_command": "nova pause $uuid_server", - "result": "^$", - "description": "Pausing the server must be not possible now" - }, - { - "name": "check nova command", - "external_command": "nova list", - "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", - "description": "Check that we can still list nova servers due to the current rules" - }, - - - { - "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 demo", - "command_options": "" - }, - { - "name": "nova delete new server", - "external_command": "nova delete $uuid_server", - "result": "", - "description": "Delete the new server" - } - ] - } -} \ No newline at end of file diff --git a/moonclient/moonclient/tests/tests_empty_policy_swift.json b/moonclient/moonclient/tests/tests_empty_policy_swift.json deleted file mode 100644 index e935da98..00000000 --- a/moonclient/moonclient/tests/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[\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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 diff --git a/moonclient/moonclient/tests/tests_external_commands.json b/moonclient/moonclient/tests/tests_external_commands.json deleted file mode 100644 index 4caa0df1..00000000 --- a/moonclient/moonclient/tests/tests_external_commands.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "command_options": "-f value", - "tests_group": { - "main": [ - { - "auth_name": "admin", - "description": "Change user to admin (just in case...)" - }, - - { - "name": "list tenant", - "command": "tenant list", - "no_result": "demo", - "description": "List all tenants (must be empty)" - }, - { - "name": "add tenant demo", - "command": "tenant add demo", - "result": "^$", - "description": "Add a new tenant", - "command_options": "" - }, - { - "name": "check tenant demo", - "command": "tenant list", - "result": "(?P\\w+)\\s+demo", - "description": "Check that tenant demo has been correctly added" - }, - { - "name": "create_intraextension_admin", - "command": "intraextension add --policy_model policy_rbac_admin admin_test", - "result": "IntraExtension created: (?P\\w+)", - "description": "Create an admin intra extension", - "command_options": "" - }, - { - "name": "list_intraextension_admin", - "command": "intraextension list", - "result": "$uuid_admin", - "description": "Check the existence of that admin intra extension" - }, - { - "name": "create_intraextension_authz", - "command": "intraextension add --policy_model policy_authz authz_test", - "result": "IntraExtension created: (?P\\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": "check authz ie for tenant demo", - "command": "tenant list", - "result": "demo $uuid_authz", - "description": "Check that authz ie has been correctly added for tenant demo ", - "command_options": "-c name -c intra_authz_extension_id -f value" - }, - { - "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": "set_tenant_admin", - "command": "tenant set --admin $uuid_admin $uuid", - "result": "", - "description": "Connect the admin intra extension to the tenant demo", - "command_options": "" - }, - { - "name": "check admin ie for tenant demo", - "command": "tenant list", - "result": "demo $uuid_admin", - "description": "Check that admin ie has been correctly added for tenant demo ", - "command_options": "-c name -c intra_admin_extension_id -f value" - }, - - { - "name": "get aggregation algorithm", - "command": "aggregation algorithm list", - "result": "(?P\\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 cirros image", - "external_command": "wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img -o /tmp/cirros.img", - "result": "", - "description": "Download a Cirros image" - }, - { - "name": "install cirros image", - "external_command": "glance image-create --name \"cirros\" --disk-format qcow2 --file /tmp/cirros.img --container-format bare", - "result": "", - "description": "Upload the Cirros image in glance" - }, - { - "name": "create secgroup", - "external_command": "nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0", - "result": "", - "description": "Create a new secgroup in Nova" - }, - { - "name": "create secgroup", - "external_command": "nova secgroup-add-rule default tcp 22 22 0.0.0.0/0", - "result": "", - "description": "Create a new secgroup in Nova" - }, - { - "name": "create router", - "external_command": "neutron router-create demo-router", - "result": "", - "description": "Create a new router" - }, - { - "name": "set router", - "external_command": "neutron router-gateway-set demo-router ext-net", - "result": "", - "description": "Configure the new router" - }, - { - "name": "set router", - "external_command": "neutron net-create demo-net", - "result": "", - "description": "Configure the new router" - }, - { - "name": "set router", - "external_command": "neutron subnet-create demo-net 192.168.1.0/24 --name demo-subnet --gateway 192.168.1.1", - "result": "", - "description": "Configure the new router" - }, - { - "name": "set router", - "external_command": "neutron router-interface-add demo-router demo-subnet", - "result": "", - "description": "Configure the new router" - }, - { - "name": "nova image-list", - "external_command": "nova image-list", - "result": "(?P[\\w-]+)\\s+\\| cirros", - "description": "Get an Image ID" - }, - { - "name": "neutron net-list", - "external_command": "neutron net-list", - "result": "(?P[\\w-]+)\\s+\\| ext-net", - "description": "Get an Net ID" - }, - { - "name": "nova boot new server", - "external_command": "nova boot --flavor m1.tiny --image $uuid_image --nic net-id=$uuid_net --security-group default test_moonclient", - "result": "", - "description": "Get an Image ID" - }, - { - "name": "sleep", - "external_command": "sleep 10", - "result": "", - "description": "time for server to really boot" - }, - { - "name": "check nova command", - "external_command": "nova list", - "result": "\\| (?P[\\w\\-]+)\\s+\\| (?P\\w+)\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", - "description": "Check that nova is running and get the ID of one running server" - }, - - { - "name": "delete_admin_intra_extension", - "command": "intraextension delete $uuid_admin", - "result": "", - "description": "Delete the admin intra extension", - "command_options": "" - }, - { - "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 demo", - "command_options": "" - } - ] - } -} \ No newline at end of file diff --git a/moonclient/moonclient/tests/todo/tests_empty_policy_new_user.json b/moonclient/moonclient/tests/todo/tests_empty_policy_new_user.json new file mode 100644 index 00000000..ad9d7e52 --- /dev/null +++ b/moonclient/moonclient/tests/todo/tests_empty_policy_new_user.json @@ -0,0 +1,3627 @@ +{ + "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": "get cirros image", + "external_command": "wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img -o /tmp/cirros.img", + "result": "", + "description": "Download a Cirros image" + }, + { + "name": "install cirros image", + "external_command": "glance image-create --name \"cirros\" --disk-format qcow2 --file /tmp/cirros.img --container-format bare", + "result": "", + "description": "Upload the Cirros image in glance" + }, + { + "name": "create secgroup", + "external_command": "nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0", + "result": "", + "description": "Create a new secgroup in Nova" + }, + { + "name": "create secgroup", + "external_command": "nova secgroup-add-rule default tcp 22 22 0.0.0.0/0", + "result": "", + "description": "Create a new secgroup in Nova" + }, + { + "name": "create router", + "external_command": "neutron router-create demo-router", + "result": "", + "description": "Create a new router" + }, + { + "name": "set router", + "external_command": "neutron router-gateway-set demo-router ext-net", + "result": "", + "description": "Configure the new router" + }, + { + "name": "set router", + "external_command": "neutron net-create demo-net", + "result": "", + "description": "Configure the new router" + }, + { + "name": "set router", + "external_command": "neutron subnet-create demo-net 192.168.1.0/24 --name demo-subnet --gateway 192.168.1.1", + "result": "", + "description": "Configure the new router" + }, + { + "name": "set router", + "external_command": "neutron router-interface-add demo-router demo-subnet", + "result": "", + "description": "Configure the new router" + }, + { + "name": "openstack image list", + "external_command": "nova image-list", + "result": "(?P[\\w-]+)\\s+\\| cirros", + "description": "Get an Image ID" + }, + { + "name": "create tenant test", + "external_command": "openstack project create test_moonclient", + "result": "", + "description": "Create a new tenant" + }, + { + "name": "create user demo", + "external_command": "openstack user create --password console demo", + "result": "", + "description": "Create user demo" + }, + { + "name": "add role admin to demo", + "external_command": "openstack role add --project admin --user demo admin", + "result": "", + "description": "Force the admin role for the user demo on the project admin (for testing purpose)." + }, + { + "name": "neutron net-list", + "external_command": "neutron net-list", + "result": "(?P[\\w-]+)\\s+\\| demo-net", + "description": "Get an Net ID" + }, + { + "name": "nova boot new server", + "external_command": "nova boot --flavor m1.tiny --image $uuid_image --nic net-id=$uuid_net --security-group default test_moonclient", + "result": "", + "description": "Get an Image ID" + }, + { + "name": "sleep", + "external_command": "sleep 10", + "result": "", + "description": "time for server to really boot" + }, + { + "name": "nova get new server", + "external_command": "nova list", + "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", + "description": "Get the ID of the new server" + }, + { + "name": "list tenant", + "command": "tenant list", + "no_result": "demo", + "description": "Check if tenant demo is used." + }, + { + "name": "add tenant demo", + "command": "tenant add demo", + "result": "^$", + "description": "Add a new tenant", + "command_options": "" + }, + { + "name": "check tenant demo", + "command": "tenant list", + "result": "(?P\\w+)\\s+demo", + "description": "Check that tenant demo has been correctly added" + }, + { + "name": "add role admin to demo", + "external_command": "openstack role add --project demo --user demo admin ", + "result": "", + "description": "Add role admin to user demo (an error may occurred)" + }, + { + "name": "create_intraextension_authz", + "command": "intraextension add --policy_model policy_empty_authz empty_test", + "result": "IntraExtension created: (?P\\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": "demo", + "description": "Check if tenant demo 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 console", + "result": "", + "description": "", + "command_options": "" + }, + { + "name": "list_subject", + "command": "subject list", + "result": "(?P\\w+)\\s+admin", + "description": "Check that admin subject was added." + }, + { + "name": "add_subject", + "command": "subject add demo --subject_pass console", + "result": "", + "description": "", + "command_options": "" + }, + { + "name": "list_subject", + "command": "subject list", + "result": "(?P\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\w+)\\s+resource_action", + "description": "Check that resource_action action_category was added." + }, + + { + "name": "add_scope", + "command": "subject scope add $uuid_subject_category_authz 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_authz", + "result": "(?P\\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_authz 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_authz", + "result": "(?P\\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_authz 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_authz", + "result": "(?P\\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_authz 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_authz", + "result": "(?P\\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_authz 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_authz", + "result": "(?P\\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_authz 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_authz", + "result": "(?P\\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_authz 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_authz", + "result": "(?P\\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_authz 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_authz", + "result": "(?P\\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_authz 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_authz", + "result": "(?P\\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_authz 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_authz", + "result": "(?P\\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_authz $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_authz", + "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_authz $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_authz", + "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_authz $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_authz", + "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_authz $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_authz", + "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_authz $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_authz", + "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_authz $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_authz", + "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_authz $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_authz", + "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_authz $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_authz", + "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_authz $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_authz", + "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_authz $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_authz", + "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_authz $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_authz", + "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_authz $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_authz", + "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_authz $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_authz", + "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_authz $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_authz", + "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\\w+)", + "description": "Get one submetarule ID", + "command_options": "-c id -f value" + }, + { + "name": "set_submetarule", + "command": "submetarule set $submetarule_uuid_authz --subject_category_id=\"$uuid_subject_category_authz\" --object_category_id=\"$uuid_object_category_authz\" --action_category_id=\"$uuid_action_category_authz\"", + "result": "^$", + "description": "Set a new submetarule", + "command_options": "" + }, + { + "name": "check_submetarule", + "command": "submetarule show", + "result": "$submetarule_uuid_authz \\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_authz \\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_authz \\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_authz \"high,vm_admin,medium\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_authz", + "result": "(?P\\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_authz \"high,vm_admin,low\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_authz", + "result": "(?P\\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_authz \"medium,vm_admin,low\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_authz", + "result": "(?P\\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_authz \"high,vm_access,medium\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_authz", + "result": "(?P\\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_authz \"high,vm_access,low\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_authz", + "result": "(?P\\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_authz \"medium,vm_access,low\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_authz", + "result": "(?P\\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_authz \"high,storage_admin,medium\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_authz", + "result": "(?P\\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_authz \"high,storage_admin,low\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_authz", + "result": "(?P\\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_authz \"medium,storage_admin,low\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_authz", + "result": "(?P\\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_authz \"high,storage_access,medium\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_authz", + "result": "(?P\\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_authz \"high,storage_access,low\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_authz", + "result": "(?P\\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_authz \"medium,storage_access,low\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_authz", + "result": "(?P\\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\\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\\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_authz", + "result": "", + "description": "Set submetarule algorithm to inclusion.", + "command_options": "" + }, + + { + "name": "create_intraextension_admin", + "command": "intraextension add --policy_model policy_empty_admin empty_admin_test", + "result": "IntraExtension created: (?P\\w+)", + "description": "Create an admin intra extension", + "command_options": "" + }, + { + "name": "list_intraextension_authz", + "command": "intraextension list", + "result": "$uuid_admin", + "description": "Check the existence of that admin intra extension" + }, + { + "name": "set_tenant_admin", + "command": "tenant set --admin $uuid_admin $uuid", + "result": "", + "description": "Connect the admin intra extension to the tenant demo", + "command_options": "" + }, + { + "name": "list tenant", + "command": "tenant list", + "result": "demo", + "description": "Check if tenant demo is used." + }, + { + "name": "select_admin_ie", + "command": "intraextension select $uuid_admin", + "result": "Select $uuid_admin IntraExtension.", + "description": "Select the admin IntraExtension", + "command_options": "" + }, + { + "name": "check_select_admin_ie", + "command": "intraextension show selected", + "result": "$uuid_admin", + "description": "Check the selected admin IntraExtension", + "command_options": "-c id -f value" + }, + + { + "name": "add_subject", + "command": "subject add admin --subject_pass console", + "result": "", + "description": "Add admin subject.", + "command_options": "" + }, + { + "name": "list_subject", + "command": "subject list", + "result": "(?P\\w+)\\s+admin", + "description": "Check that admin subject was already there." + }, + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.subjects", + "description": "Check that authz_subjects subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.objects", + "description": "Check that authz_objects subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.actions", + "description": "Check that authz_actions subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.subject_categories", + "description": "Check that authz_subject_categories subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.object_categories", + "description": "Check that authz_object_categories subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.action_categories", + "description": "Check that authz_action_categories subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.subject_scopes", + "description": "Check that authz_subject_scopes subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.object_scopes", + "description": "Check that authz_object_scopes subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.action_scopes", + "description": "Check that authz_action_scopes subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.subject_assignments", + "description": "Check that authz_subject_assignments subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.object_assignments", + "description": "Check that authz_object_assignments subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.action_assignments", + "description": "Check that authz_action_assignments subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.aggregation_algorithm", + "description": "Check that authz_aggregation_algorithm subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.sub_meta_rules", + "description": "Check that authz_sub_meta_rules subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+authz.rules", + "description": "Check that authz_rules subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.subjects", + "description": "Check that admin_subjects subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.objects", + "description": "Check that admin_objects subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.actions", + "description": "Check that admin_actions subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.subject_categories", + "description": "Check that admin_subject_categories subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.object_categories", + "description": "Check that admin_object_categories subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.action_categories", + "description": "Check that admin_action_categories subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.subject_scopes", + "description": "Check that admin_subject_scopes subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.object_scopes", + "description": "Check that admin_object_scopes subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.action_scopes", + "description": "Check that admin_action_scopes subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.subject_assignments", + "description": "Check that admin_subject_assignments subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.object_assignments", + "description": "Check that admin_object_assignments subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.action_assignments", + "description": "Check that admin_action_assignments subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.aggregation_algorithm", + "description": "Check that admin_aggregation_algorithm subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.sub_meta_rules", + "description": "Check that admin_sub_meta_rules subject was already there." + }, + + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+admin.rules", + "description": "Check that admin_rules subject was already there." + }, + + { + "name": "list_action", + "command": "action list", + "result": "(?P\\w+)\\s+read", + "description": "Check that read action was already there." + }, + + { + "name": "list_action", + "command": "action list", + "result": "(?P\\w+)\\s+write", + "description": "Check that write action was already there." + }, + + { + "name": "add_subject_category", + "command": "subject category add role", + "result": "", + "description": "Add the new subject category role", + "command_options": "" + }, + { + "name": "list_subject_category", + "command": "subject category list", + "result": "(?P\\w+)\\s+role", + "description": "Check that role subject_category was added." + }, + { + "name": "add_object_category", + "command": "object category add object_id", + "result": "", + "description": "Add the new object category object_id", + "command_options": "" + }, + { + "name": "list_object_category", + "command": "object category list", + "result": "(?P\\w+)\\s+object_id", + "description": "Check that object_id object_category was added." + }, + { + "name": "add_action_category", + "command": "action category add action_id", + "result": "", + "description": "Add the new action category action_id", + "command_options": "" + }, + { + "name": "list_subject_category", + "command": "action category list", + "result": "(?P\\w+)\\s+action_id", + "description": "Check that action_id action_category was added." + }, + + { + "name": "add_scope", + "command": "subject scope add $uuid_subject_category_admin root_role --description \"root role\"", + "result": "^$", + "description": "Add one scope to subject category role", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "subject scope list $uuid_subject_category_admin", + "result": "(?P\\w+)\\s+root_role\\s+root role", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + { + "name": "add_scope", + "command": "subject scope add $uuid_subject_category_admin dev_role --description \"dev role\"", + "result": "^$", + "description": "Add one scope to subject category role", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "subject scope list $uuid_subject_category_admin", + "result": "(?P\\w+)\\s+dev_role\\s+dev role", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_subjects --description \"authz subjects\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.subjects\\s+authz subjects", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_objects --description \"authz objects\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.objects\\s+authz objects", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_actions --description \"authz actions\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.actions\\s+authz actions", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_subject_categories --description \"authz subject categories\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.subject_categories\\s+authz subject categories", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_object_categories --description \"authz object categories\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.object_categories\\s+authz object categories", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_action_categories --description \"authz action categories\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.action_categories\\s+authz action categories", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_subject_scopes --description \"authz subject scopes\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.subject_scopes\\s+authz subject scopes", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_object_scopes --description \"authz object scopes\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.object_scopes\\s+authz object scopes", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_action_scopes --description \"authz action scopes\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.action_scopes\\s+authz action scopes", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_subject_assignments --description \"authz subject assignments\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.subject_assignments\\s+authz subject assignments", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_object_assignments --description \"authz object assignments\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.object_assignments\\s+authz object assignments", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_action_assignments --description \"authz action assignments\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.action_assignments\\s+authz action assignments", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_aggregation_algorithm --description \"authz aggregation algorithm\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.aggregation_algorithm\\s+authz aggregation algorithm", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_sub_meta_rules --description \"authz sub meta rules\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.sub_meta_rules\\s+authz sub meta rules", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin authz_rules --description \"authz rules\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+authz.rules\\s+authz rules", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_subjects --description \"admin subjects\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.subjects\\s+admin subjects", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_objects --description \"admin objects\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.objects\\s+admin objects", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_actions --description \"admin actions\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.actions\\s+admin actions", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_subject_categories --description \"admin subject categories\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.subject_categories\\s+admin subject categories", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_object_categories --description \"admin object categories\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.object_categories\\s+admin object categories", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_action_categories --description \"admin action categories\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.action_categories\\s+admin action categories", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_subject_scopes --description \"admin subject scopes\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.subject_scopes\\s+admin subject scopes", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_object_scopes --description \"admin object scopes\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.object_scopes\\s+admin object scopes", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_action_scopes --description \"admin action scopes\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.action_scopes\\s+admin action scopes", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_subject_assignments --description \"admin subject assignments\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.subject_assignments\\s+admin subject assignments", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_object_assignments --description \"admin object assignments\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.object_assignments\\s+admin object assignments", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_action_assignments --description \"admin action assignments\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.action_assignments\\s+admin action assignments", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_aggregation_algorithm --description \"admin aggregation algorithm\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.aggregation_algorithm\\s+admin aggregation algorithm", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_sub_meta_rules --description \"admin sub meta rules\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.sub_meta_rules\\s+admin sub meta rules", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + + { + "name": "add_scope", + "command": "object scope add $uuid_object_category_admin admin_rules --description \"admin rules\"", + "result": "^$", + "description": "Add one scope to object category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category_admin", + "result": "(?P\\w+)\\s+admin.rules\\s+admin rules", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + { + "name": "add_scope", + "command": "action scope add $uuid_action_category_admin read --description \"read\"", + "result": "^$", + "description": "Add one scope to action category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "action scope list $uuid_action_category_admin", + "result": "(?P\\w+)\\s+read\\s+read", + "description": "Check added scope.", + "command_options": "-c id -c name -c description -f value" + }, + { + "name": "add_scope", + "command": "action scope add $uuid_action_category_admin write --description \"write\"", + "result": "^$", + "description": "Add one scope to action category", + "command_options": "" + }, + { + "name": "check_added_scope", + "command": "action scope list $uuid_action_category_admin", + "result": "(?P\\w+)\\s+write\\s+write", + "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_admin $uuid_subject_scope_root_role", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "subject assignment list $uuid_subject_admin $uuid_subject_category_admin", + "result": "$uuid_subject_scope_root_role root_role", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_subjects $uuid_object_category_admin $uuid_object_scope_authz_subjects", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_subjects $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_subjects authz_subjects", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_objects $uuid_object_category_admin $uuid_object_scope_authz_objects", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_objects $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_objects authz_objects", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_actions $uuid_object_category_admin $uuid_object_scope_authz_actions", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_actions $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_actions authz_actions", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_subject_categories $uuid_object_category_admin $uuid_object_scope_authz_subject_categories", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_subject_categories $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_subject_categories authz_subject_categories", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_object_categories $uuid_object_category_admin $uuid_object_scope_authz_object_categories", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_object_categories $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_object_categories authz_object_categories", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_action_categories $uuid_object_category_admin $uuid_object_scope_authz_action_categories", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_action_categories $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_action_categories authz_action_categories", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_subject_scopes $uuid_object_category_admin $uuid_object_scope_authz_subject_scopes", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_subject_scopes $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_subject_scopes authz_subject_scopes", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_object_scopes $uuid_object_category_admin $uuid_object_scope_authz_object_scopes", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_object_scopes $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_object_scopes authz_object_scopes", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_action_scopes $uuid_object_category_admin $uuid_object_scope_authz_action_scopes", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_action_scopes $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_action_scopes authz_action_scopes", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_subject_assignments $uuid_object_category_admin $uuid_object_scope_authz_subject_assignments", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_subject_assignments $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_subject_assignments authz_subject_assignments", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_object_assignments $uuid_object_category_admin $uuid_object_scope_authz_object_assignments", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_object_assignments $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_object_assignments authz_object_assignments", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_action_assignments $uuid_object_category_admin $uuid_object_scope_authz_action_assignments", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_action_assignments $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_action_assignments authz_action_assignments", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_aggregation_algorithm $uuid_object_category_admin $uuid_object_scope_authz_aggregation_algorithm", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_aggregation_algorithm $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_aggregation_algorithm authz_aggregation_algorithm", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_sub_meta_rules $uuid_object_category_admin $uuid_object_scope_authz_sub_meta_rules", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_sub_meta_rules $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_sub_meta_rules authz_sub_meta_rules", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_authz_rules $uuid_object_category_admin $uuid_object_scope_authz_rules", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_authz_rules $uuid_object_category_admin", + "result": "$uuid_object_scope_authz_rules authz_rules", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_subjects $uuid_object_category_admin $uuid_object_scope_admin_subjects", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_subjects $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_subjects admin_subjects", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_objects $uuid_object_category_admin $uuid_object_scope_admin_objects", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_objects $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_objects admin_objects", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_actions $uuid_object_category_admin $uuid_object_scope_admin_actions", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_actions $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_actions admin_actions", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_subject_categories $uuid_object_category_admin $uuid_object_scope_admin_subject_categories", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_subject_categories $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_subject_categories admin_subject_categories", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_object_categories $uuid_object_category_admin $uuid_object_scope_admin_object_categories", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_object_categories $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_object_categories admin_object_categories", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_action_categories $uuid_object_category_admin $uuid_object_scope_admin_action_categories", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_action_categories $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_action_categories admin_action_categories", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_subject_scopes $uuid_object_category_admin $uuid_object_scope_admin_subject_scopes", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_subject_scopes $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_subject_scopes admin_subject_scopes", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_object_scopes $uuid_object_category_admin $uuid_object_scope_admin_object_scopes", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_object_scopes $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_object_scopes admin_object_scopes", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_action_scopes $uuid_object_category_admin $uuid_object_scope_admin_action_scopes", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_action_scopes $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_action_scopes admin_action_scopes", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_subject_assignments $uuid_object_category_admin $uuid_object_scope_admin_subject_assignments", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_subject_assignments $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_subject_assignments admin_subject_assignments", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_object_assignments $uuid_object_category_admin $uuid_object_scope_admin_object_assignments", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_object_assignments $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_object_assignments admin_object_assignments", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_action_assignments $uuid_object_category_admin $uuid_object_scope_admin_action_assignments", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_action_assignments $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_action_assignments admin_action_assignments", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_aggregation_algorithm $uuid_object_category_admin $uuid_object_scope_admin_aggregation_algorithm", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_aggregation_algorithm $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_aggregation_algorithm admin_aggregation_algorithm", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_sub_meta_rules $uuid_object_category_admin $uuid_object_scope_admin_sub_meta_rules", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_sub_meta_rules $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_sub_meta_rules admin_sub_meta_rules", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_admin_rules $uuid_object_category_admin $uuid_object_scope_admin_rules", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_admin_rules $uuid_object_category_admin", + "result": "$uuid_object_scope_admin_rules admin_rules", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + { + "name": "add_assignment", + "command": "action assignment add $uuid_action_read $uuid_action_category_admin $uuid_action_scope_read", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "action assignment list $uuid_action_read $uuid_action_category_admin", + "result": "$uuid_action_scope_read read", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + { + "name": "add_assignment", + "command": "action assignment add $uuid_action_write $uuid_action_category_admin $uuid_action_scope_write", + "result": "^$", + "description": "Add a new assignment", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "action assignment list $uuid_action_write $uuid_action_category_admin", + "result": "$uuid_action_scope_write write", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "check_submetarules", + "command": "submetarule show", + "result": "(?P\\w+)", + "description": "Get one submetarule ID", + "command_options": "-c id -f value" + }, + { + "name": "set_submetarule", + "command": "submetarule set $submetarule_uuid_admin --subject_category_id=\"$uuid_subject_category_admin\" --object_category_id=\"$uuid_object_category_admin\" --action_category_id=\"$uuid_action_category_admin\"", + "result": "^$", + "description": "Set a new submetarule", + "command_options": "" + }, + { + "name": "check_submetarule", + "command": "submetarule show", + "result": "$submetarule_uuid_admin \\s*role", + "description": "Check the new submetarule", + "command_options": "-c id -c \"subject categories\" -f value" + }, + { + "name": "check_submetarule", + "command": "submetarule show", + "result": "$submetarule_uuid_admin \\s*object_id", + "description": "Check the new submetarule", + "command_options": "-c id -c \"object categories\" -f value" + }, + { + "name": "check_submetarule", + "command": "submetarule show", + "result": "$submetarule_uuid_admin \\s*action_id", + "description": "Check the new submetarule", + "command_options": "-c id -c \"action categories\" -f value" + }, + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_subjects\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.subjects", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_objects\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.objects", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_actions\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.actions", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_subject_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.subject_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_object_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.object_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_action_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.action_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_subject_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.subject_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_object_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.object_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_action_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.action_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_subject_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.subject_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_object_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.object_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_action_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.action_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_aggregation_algorithm\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.aggregation_algorithm", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_sub_meta_rules\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.sub_meta_rules", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,authz_rules\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+authz.rules", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_subjects\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.subjects", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_objects\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.objects", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_actions\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.actions", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_subject_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.subject_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_object_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.object_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_action_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.action_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_subject_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.subject_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_object_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.object_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_action_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.action_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_subject_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.subject_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_object_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.object_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_action_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.action_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_aggregation_algorithm\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.aggregation_algorithm", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_sub_meta_rules\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.sub_meta_rules", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,authz_rules\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+authz.rules", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_subjects\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.subjects", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_objects\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.objects", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_actions\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.actions", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_subject_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.subject_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_object_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.object_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_action_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.action_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_subject_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.subject_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_object_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.object_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_action_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.action_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_subject_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.subject_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_object_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.object_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_action_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.action_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_aggregation_algorithm\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.aggregation_algorithm", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_sub_meta_rules\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.sub_meta_rules", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,read,admin_rules\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+read\\s+admin.rules", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_subjects\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.subjects", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_objects\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.objects", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_actions\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.actions", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_subject_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.subject_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_object_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.object_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_action_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.action_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_subject_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.subject_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_object_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.object_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_action_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.action_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_subject_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.subject_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_object_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.object_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_action_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.action_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_aggregation_algorithm\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.aggregation_algorithm", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_sub_meta_rules\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.sub_meta_rules", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"root_role,write,admin_rules\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+root_role\\s+write\\s+admin.rules", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + { + "name": "get aggregation algorithm", + "command": "aggregation algorithm list", + "result": "(?P\\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\\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_admin", + "result": "", + "description": "Set submetarule algorithm to inclusion.", + "command_options": "" + }, + + { + "name": "select_admin_ie", + "command": "intraextension select $uuid_admin", + "result": "Select $uuid_admin IntraExtension.", + "description": "Select the admin IntraExtension", + "command_options": "" + }, + { + "name": "check_select_admin_ie", + "command": "intraextension show selected", + "result": "$uuid_admin", + "description": "Check the selected admin IntraExtension", + "command_options": "-c id -f value" + }, + { + "name": "add_subject", + "command": "subject add demo --subject_pass console", + "result": "", + "description": "Add demo subject.", + "command_options": "" + }, + { + "name": "list_subject", + "command": "subject list", + "result": "(?P\\w+)\\s+demo", + "description": "Check that demo subject was added." + }, + { + "name": "add_new_role", + "command": "subject scope add $uuid_subject_category_admin demo_role", + "result": "", + "description": "Add demo_role to demo subject.", + "command_options": "" + }, + { + "name": "check_new_role", + "command": "subject scope list $uuid_subject_category_admin", + "result": "(?P\\w+)\\s+demo_role", + "description": "Check that demo_role was added." + }, + { + "name": "add_new_assignment", + "command": "subject assignment add $uuid_subject_demo_admin $uuid_subject_category_admin $uuid_subject_scope_demo_role", + "result": "", + "description": "Link the demo subject to the demo_role scope.", + "command_options": "" + }, + { + "name": "check_new_assignment", + "command": "subject assignment list $uuid_subject_demo_admin $uuid_subject_category_admin", + "result": "$uuid_subject_scope_demo_role demo_role", + "description": "Check that assignment was added.", + "command_options": "-c id -c name -f value" + }, + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"demo_role,read,authz_objects\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+demo_role\\s+read\\s+authz_objects", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"demo_role,write,authz_objects\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+demo_role\\s+write\\s+authz_objects", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"demo_role,read,authz_object_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+demo_role\\s+read\\s+authz_object_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"demo_role,write,authz_object_assignments\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+demo_role\\s+write\\s+authz_object_assignments", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"demo_role,read,authz_object_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+demo_role\\s+read\\s+authz_object_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"demo_role,write,authz_object_scopes\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+demo_role\\s+write\\s+authz_object_scopes", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"demo_role,read,authz_object_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+demo_role\\s+read\\s+authz_object_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + { + "name": "add_a_new_rule", + "command": "rule add $submetarule_uuid_admin \"demo_role,write,authz_object_categories\"", + "result": "^$", + "description": "Add a new rule.", + "command_options": "" + }, + { + "name": "check_added_rule", + "command": "rule list $submetarule_uuid_admin", + "result": "(?P\\w+)\\s+demo_role\\s+write\\s+authz_object_categories", + "description": "Check that the rule was correctly added.", + "command_options": "-c id -c s:role -c a:action_id -c o:object_id -f value" + }, + + { + "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 admin IntraExtension", + "command_options": "-c id -f value" + }, + { + "name": "add_subject", + "command": "subject add demo --subject_pass console", + "result": "", + "description": "Add demo subject.", + "command_options": "" + }, + { + "name": "list_subject", + "command": "subject list", + "result": "(?P\\w+)\\s+demo", + "description": "Check that admin subject was added." + }, + + { + "name": "demo: check nova command", + "external_command": "nova --os-user-name demo --os-project-name demo --os-password console list", + "result": "test_moonclient", + "description": "Check demo can list nova servers due to the current rules" + }, + { + "name": "demo: try to pause nova instance", + "external_command": "nova --os-username demo --os-project-name demo --os-password console pause $uuid_server", + "result": "^$", + "description": "Pausing the server must be impossible due to the current rules" + }, + { + "name": "check nova command", + "external_command": "nova --os-user-name demo --os-project-name demo --os-password console list", + "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", + "description": "Check that nova server is still in running state." + }, + + { + "name": "list tenant", + "command": "tenant list", + "result": "demo", + "description": "Check if tenant demo 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" + }, + + { + "auth_name": "demo", + "auth_password": "console", + "auth_tenant": "demo", + "description": "Change user to demo" + }, + + { + "name": "add_object", + "command": "object add $uuid_server", + "result": "", + "description": "Add the new nova server", + "command_options": "" + }, + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+$uuid_server", + "description": "Check that the new nova server was added." + }, + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_nova_server $uuid_object_category_authz $uuid_object_scope_low", + "result": "^$", + "description": "Set the assignment 'low' to nova server", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_nova_server $uuid_object_category_authz", + "result": "$uuid_object_scope_low low", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "check nova command", + "external_command": "nova list", + "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", + "description": "Check that we can now list nova servers due to the current rules" + }, + { + "name": "try to pause nova instance", + "external_command": "nova pause $uuid_server", + "result": "^$", + "description": "Pausing the server must be possible now" + }, + { + "name": "check nova command", + "external_command": "nova list", + "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| PAUSED\\s+\\| [\\w\\-]+\\s+\\| Paused", + "description": "Check that we can still list nova servers due to the current rules" + }, + { + "name": "reactivate nova instance", + "external_command": "nova unpause $uuid_server", + "result": "^$", + "description": "Unpausing the server for next tests" + }, + + { + "name": "del_assignment", + "command": "object assignment delete $uuid_object_nova_server $uuid_object_category_authz $uuid_object_scope_low", + "result": "^$", + "description": "Delete the assignment 'low' to nova server", + "command_options": "" + }, + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_nova_server $uuid_object_category_authz $uuid_object_scope_high", + "result": "^$", + "description": "Set the assignment 'high' to nova server", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_nova_server $uuid_object_category_authz", + "result": "$uuid_object_scope_high high", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "check nova command", + "external_command": "nova list", + "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", + "description": "Check that we can now list nova servers due to the current rules" + }, + { + "name": "try to pause nova instance", + "external_command": "nova pause $uuid_server", + "result": "^$", + "description": "Pausing the server must be not possible now" + }, + { + "name": "check nova command", + "external_command": "nova list", + "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", + "description": "Check that we can still list nova servers due to the current rules" + }, + + + { + "auth_name": "admin", + "auth_tenant": "admin", + "description": "Change user to admin" + }, + + { + "name": "delete_authz_intra_extension", + "command": "intraextension delete $uuid_authz", + "result": "", + "description": "Delete the authz intra extension", + "command_options": "" + }, + { + "name": "delete_admin_intra_extension", + "command": "intraextension delete $uuid_admin", + "result": "", + "description": "Delete the admin intra extension", + "command_options": "" + }, + { + "name": "delete_tenant", + "command": "tenant delete $uuid", + "result": "", + "description": "Delete the tenant demo", + "command_options": "" + }, + { + "name": "nova delete new server", + "external_command": "nova delete $uuid_server", + "result": "", + "description": "Delete the new server" + } + ] + } +} diff --git a/moonclient/moonclient/tests/todo/tests_empty_policy_nova.json b/moonclient/moonclient/tests/todo/tests_empty_policy_nova.json new file mode 100644 index 00000000..399710be --- /dev/null +++ b/moonclient/moonclient/tests/todo/tests_empty_policy_nova.json @@ -0,0 +1,1079 @@ +{ + "command_options": "-f value", + "tests_group": { + "authz": [ + { + "auth_name": "admin", + "description": "Change user to admin (just in case...)" + }, + + { + "name": "get cirros image", + "external_command": "wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img -o /tmp/cirros.img", + "result": "", + "description": "Download a Cirros image" + }, + { + "name": "install cirros image", + "external_command": "glance image-create --name \"cirros\" --disk-format qcow2 --file /tmp/cirros.img --container-format bare", + "result": "", + "description": "Upload the Cirros image in glance" + }, + { + "name": "create secgroup", + "external_command": "nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0", + "result": "", + "description": "Create a new secgroup in Nova" + }, + { + "name": "create secgroup", + "external_command": "nova secgroup-add-rule default tcp 22 22 0.0.0.0/0", + "result": "", + "description": "Create a new secgroup in Nova" + }, + { + "name": "create router", + "external_command": "neutron router-create demo-router", + "result": "", + "description": "Create a new router" + }, + { + "name": "set router", + "external_command": "neutron router-gateway-set demo-router ext-net", + "result": "", + "description": "Configure the new router" + }, + { + "name": "set router", + "external_command": "neutron net-create demo-net", + "result": "", + "description": "Configure the new router" + }, + { + "name": "set router", + "external_command": "neutron subnet-create demo-net 192.168.1.0/24 --name demo-subnet --gateway 192.168.1.1", + "result": "", + "description": "Configure the new router" + }, + { + "name": "set router", + "external_command": "neutron router-interface-add demo-router demo-subnet", + "result": "", + "description": "Configure the new router" + }, + { + "name": "nova image-list", + "external_command": "nova image-list", + "result": "(?P[\\w-]+)\\s+\\| cirros", + "description": "Get an Image ID" + }, + { + "name": "neutron net-list", + "external_command": "neutron net-list", + "result": "(?P[\\w-]+)\\s+\\| ext-net", + "description": "Get an Net ID" + }, + { + "name": "nova boot new server", + "external_command": "nova boot --flavor m1.tiny --image $uuid_image --nic net-id=$uuid_net --security-group default test_moonclient", + "result": "", + "description": "Get an Image ID" + }, + { + "name": "sleep", + "external_command": "sleep 10", + "result": "", + "description": "time for server to really boot" + }, + { + "name": "nova get new server", + "external_command": "nova list", + "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", + "description": "Get the ID of the new server" + }, + { + "name": "list tenant", + "command": "tenant list", + "no_result": "demo", + "description": "Check if tenant demo is used." + }, + { + "name": "add tenant demo", + "command": "tenant add demo", + "result": "^$", + "description": "Add a new tenant", + "command_options": "" + }, + { + "name": "check tenant demo", + "command": "tenant list", + "result": "(?P\\w+)\\s+demo", + "description": "Check that tenant demo has been correctly added" + }, + + { + "name": "check nova command", + "external_command": "nova list", + "no_result": "test_moonclient", + "description": "Check that we cannot list nova servers due to the current rules" + }, + { + "name": "try to pause nova instance", + "external_command": "nova pause $uuid_server", + "result": "^$", + "description": "Pausing the server must be impossible due to the current rules" + }, + + { + "name": "create_intraextension_authz", + "command": "intraextension add --policy_model policy_empty_authz empty_test", + "result": "IntraExtension created: (?P\\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": "demo", + "description": "Check if tenant demo 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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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": "list tenant", + "command": "tenant list", + "result": "demo", + "description": "Check if tenant demo is used." + }, + + { + "name": "add_object", + "command": "object add $uuid_server", + "result": "", + "description": "Add the new nova server", + "command_options": "" + }, + { + "name": "list_object", + "command": "object list", + "result": "(?P\\w+)\\s+$uuid_server", + "description": "Check that the new nova server was added." + }, + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_nova_server $uuid_object_category $uuid_object_scope_low", + "result": "^$", + "description": "Set the assignment 'low' to nova server", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_nova_server $uuid_object_category", + "result": "$uuid_object_scope_low low", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "check nova command", + "external_command": "nova list", + "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", + "description": "Check that we can now list nova servers due to the current rules" + }, + { + "name": "try to pause nova instance", + "external_command": "nova pause $uuid_server", + "result": "^$", + "description": "Pausing the server must be possible now" + }, + { + "name": "check nova command", + "external_command": "nova list", + "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| PAUSED\\s+\\| [\\w\\-]+\\s+\\| Paused", + "description": "Check that we can still list nova servers due to the current rules" + }, + { + "name": "reactivate nova instance", + "external_command": "nova unpause $uuid_server", + "result": "^$", + "description": "Unpausing the server for next tests" + }, + + { + "name": "del_assignment", + "command": "object assignment delete $uuid_object_nova_server $uuid_object_category $uuid_object_scope_low", + "result": "^$", + "description": "Delete the assignment 'low' to nova server", + "command_options": "" + }, + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_nova_server $uuid_object_category $uuid_object_scope_high", + "result": "^$", + "description": "Set the assignment 'high' to nova server", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_nova_server $uuid_object_category", + "result": "$uuid_object_scope_high high", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "check nova command", + "external_command": "nova list", + "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", + "description": "Check that we can now list nova servers due to the current rules" + }, + { + "name": "try to pause nova instance", + "external_command": "nova pause $uuid_server", + "result": "^$", + "description": "Pausing the server must be not possible now" + }, + { + "name": "check nova command", + "external_command": "nova list", + "result": "\\| (?P[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", + "description": "Check that we can still list nova servers due to the current rules" + }, + + + { + "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 demo", + "command_options": "" + }, + { + "name": "nova delete new server", + "external_command": "nova delete $uuid_server", + "result": "", + "description": "Delete the new server" + } + ] + } +} \ No newline at end of file diff --git a/moonclient/moonclient/tests/todo/tests_empty_policy_swift.json b/moonclient/moonclient/tests/todo/tests_empty_policy_swift.json new file mode 100644 index 00000000..e935da98 --- /dev/null +++ b/moonclient/moonclient/tests/todo/tests_empty_policy_swift.json @@ -0,0 +1,1175 @@ +{ + "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[\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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\\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 diff --git a/moonclient/moonclient/tests/todo/tests_external_commands.json b/moonclient/moonclient/tests/todo/tests_external_commands.json new file mode 100644 index 00000000..4caa0df1 --- /dev/null +++ b/moonclient/moonclient/tests/todo/tests_external_commands.json @@ -0,0 +1,228 @@ +{ + "command_options": "-f value", + "tests_group": { + "main": [ + { + "auth_name": "admin", + "description": "Change user to admin (just in case...)" + }, + + { + "name": "list tenant", + "command": "tenant list", + "no_result": "demo", + "description": "List all tenants (must be empty)" + }, + { + "name": "add tenant demo", + "command": "tenant add demo", + "result": "^$", + "description": "Add a new tenant", + "command_options": "" + }, + { + "name": "check tenant demo", + "command": "tenant list", + "result": "(?P\\w+)\\s+demo", + "description": "Check that tenant demo has been correctly added" + }, + { + "name": "create_intraextension_admin", + "command": "intraextension add --policy_model policy_rbac_admin admin_test", + "result": "IntraExtension created: (?P\\w+)", + "description": "Create an admin intra extension", + "command_options": "" + }, + { + "name": "list_intraextension_admin", + "command": "intraextension list", + "result": "$uuid_admin", + "description": "Check the existence of that admin intra extension" + }, + { + "name": "create_intraextension_authz", + "command": "intraextension add --policy_model policy_authz authz_test", + "result": "IntraExtension created: (?P\\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": "check authz ie for tenant demo", + "command": "tenant list", + "result": "demo $uuid_authz", + "description": "Check that authz ie has been correctly added for tenant demo ", + "command_options": "-c name -c intra_authz_extension_id -f value" + }, + { + "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": "set_tenant_admin", + "command": "tenant set --admin $uuid_admin $uuid", + "result": "", + "description": "Connect the admin intra extension to the tenant demo", + "command_options": "" + }, + { + "name": "check admin ie for tenant demo", + "command": "tenant list", + "result": "demo $uuid_admin", + "description": "Check that admin ie has been correctly added for tenant demo ", + "command_options": "-c name -c intra_admin_extension_id -f value" + }, + + { + "name": "get aggregation algorithm", + "command": "aggregation algorithm list", + "result": "(?P\\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 cirros image", + "external_command": "wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img -o /tmp/cirros.img", + "result": "", + "description": "Download a Cirros image" + }, + { + "name": "install cirros image", + "external_command": "glance image-create --name \"cirros\" --disk-format qcow2 --file /tmp/cirros.img --container-format bare", + "result": "", + "description": "Upload the Cirros image in glance" + }, + { + "name": "create secgroup", + "external_command": "nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0", + "result": "", + "description": "Create a new secgroup in Nova" + }, + { + "name": "create secgroup", + "external_command": "nova secgroup-add-rule default tcp 22 22 0.0.0.0/0", + "result": "", + "description": "Create a new secgroup in Nova" + }, + { + "name": "create router", + "external_command": "neutron router-create demo-router", + "result": "", + "description": "Create a new router" + }, + { + "name": "set router", + "external_command": "neutron router-gateway-set demo-router ext-net", + "result": "", + "description": "Configure the new router" + }, + { + "name": "set router", + "external_command": "neutron net-create demo-net", + "result": "", + "description": "Configure the new router" + }, + { + "name": "set router", + "external_command": "neutron subnet-create demo-net 192.168.1.0/24 --name demo-subnet --gateway 192.168.1.1", + "result": "", + "description": "Configure the new router" + }, + { + "name": "set router", + "external_command": "neutron router-interface-add demo-router demo-subnet", + "result": "", + "description": "Configure the new router" + }, + { + "name": "nova image-list", + "external_command": "nova image-list", + "result": "(?P[\\w-]+)\\s+\\| cirros", + "description": "Get an Image ID" + }, + { + "name": "neutron net-list", + "external_command": "neutron net-list", + "result": "(?P[\\w-]+)\\s+\\| ext-net", + "description": "Get an Net ID" + }, + { + "name": "nova boot new server", + "external_command": "nova boot --flavor m1.tiny --image $uuid_image --nic net-id=$uuid_net --security-group default test_moonclient", + "result": "", + "description": "Get an Image ID" + }, + { + "name": "sleep", + "external_command": "sleep 10", + "result": "", + "description": "time for server to really boot" + }, + { + "name": "check nova command", + "external_command": "nova list", + "result": "\\| (?P[\\w\\-]+)\\s+\\| (?P\\w+)\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", + "description": "Check that nova is running and get the ID of one running server" + }, + + { + "name": "delete_admin_intra_extension", + "command": "intraextension delete $uuid_admin", + "result": "", + "description": "Delete the admin intra extension", + "command_options": "" + }, + { + "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 demo", + "command_options": "" + } + ] + } +} \ No newline at end of file diff --git a/tests/run_tests.py b/tests/run_tests.py index f4f6f542..80dce696 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -85,15 +85,15 @@ def test_federation(): auth_data = {'username': 'admin', 'password': 'console'} # Get basic auth with curl - proc = subprocess.Popen("curl -u {}:{} http://{}:{}/auth/v1/domains".format( - auth_data["username"], auth_data["password"], nhost, nport), - stdout=subprocess.PIPE, stderr=subprocess.PIPE) - _stdout = proc.stdout.read() - _stderr = proc.stderr.read() - if len(_stdout) > 0: - _stdout_json = json.loads(_stdout) - if _stdout_json['code'] not in (200, 201, 202, 204): - return False, "Not able to retrieve ODL auth ({}).".format(_stdout) + # proc = subprocess.Popen("curl -u {}:{} http://{}:{}/auth/v1/domains".format( + # auth_data["username"], auth_data["password"], nhost, nport), + # stdout=subprocess.PIPE, stderr=subprocess.PIPE) + # _stdout = proc.stdout.read() + # _stderr = proc.stderr.read() + # if len(_stdout) > 0: + # _stdout_json = json.loads(_stdout) + # if _stdout_json['code'] not in (200, 201, 202, 204): + # return False, "Not able to retrieve ODL auth ({}).".format(_stdout) # Retrieve token from ODL # conn = client.HTTPConnection(nhost, "8181") @@ -104,17 +104,17 @@ def test_federation(): # return False, "Not able to retrieve ODL token on {}:{} (error code: {}).".format(nhost, "8181", resp.status) # Retrieve basic auth from ODL - # auth_handler = HTTPBasicAuthHandler() - # auth_handler.add_password(realm='Moon', - # uri='http://{host}:{port}/auth/v1/domains'.format(host=HOST_ODL, port=PORT_ODL), - # user='admin', - # passwd='console') - # opener = build_opener(auth_handler) - # install_opener(opener) - # url = urlopen('http://{host}:{port}/auth/v1/domains'.format(host=HOST_ODL, port=PORT_ODL)) - # code = url.getcode() - # if code not in (200, 201, 202, 204): - # return False, "Not able to retrieve ODL token (error code: {}).".format(code) + auth_handler = HTTPBasicAuthHandler() + auth_handler.add_password(realm='Moon', + uri='http://{host}:{port}/auth/v1/domains'.format(host=nhost, port=nport), + user=username, + passwd=password) + opener = build_opener(auth_handler) + install_opener(opener) + url = urlopen('http://{host}:{port}/auth/v1/domains'.format(host=nhost, port=nport)) + code = url.getcode() + if code not in (200, 201, 202, 204): + return False, "Not able to authenticate to ODL (error code: {}).".format(code) return True, "" -- cgit 1.2.3-korg