{ "command_options": "-f value", "tests_group": { "authz": [ { "name": "list tenant", "command": "tenant list", "result": "(?!alt_demo)", "description": "Check if tenant alt_demo is used." }, { "name": "add tenant alt_demo", "command": "tenant add alt_demo", "result": "^$", "description": "Add a new tenant", "command_options": "" }, { "name": "check tenant alt_demo", "command": "tenant list", "result": "(?P\\w+)\\s+alt_demo", "description": "Check that tenant alt_demo has been correctly added" }, { "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 alt_demo", "command_options": "" }, { "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_object", "command": "object add nova_server_1", "result": "", "description": "Add the new object category nova_server_1", "command_options": "" }, { "name": "list_object", "command": "object list", "result": "(?P\\w+)\\s+nova_server_1", "description": "Check that nova_server_1 object was added." }, { "name": "add_object_category", "command": "object category add my_new_object_category", "result": "", "description": "Add the new object category my_new_object_category", "command_options": "" }, { "name": "list_object_category", "command": "object category list", "result": "(?P\\w+)\\s+my_new_object_category", "description": "Check that my_new_object_category object_category was added." }, { "name": "add_scope", "command": "object scope add $uuid_object_category scope1 --description \"scope1 description\"", "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+scope1\\s+scope1 description", "description": "Check added scope.", "command_options": "-c id -c name -c description -f value" }, { "name": "add_assignment", "command": "object assignment add $uuid_object $uuid_object_category $uuid_object_scope", "result": "^$", "description": "Add a new assignment", "command_options": "" }, { "name": "check_added_assignment", "command": "object assignment list $uuid_object $uuid_object_category", "result": "$uuid_object_scope scope1", "description": "Check added assignment.", "command_options": "-c id -c name -f value" }, { "name": "delete_assignment", "command": "object assignment delete $uuid_object $uuid_object_category $uuid_object_scope", "result": "^$", "description": "Delete the added assignment", "command_options": "" }, { "name": "check_deleted_assignment", "command": "object assignment list $uuid_object $uuid_object_category", "result": "(?!$uuid_object_scope)", "description": "Check deleted assignment.", "command_options": "-c id -f value" }, { "name": "delete_scope", "command": "object scope delete $uuid_object_category $uuid_object_scope", "result": "^$", "description": "Delete one scope from object category role", "command_options": "" }, { "name": "delete_object_category", "command": "object category delete $uuid_object_category", "result": "^$", "description": "Delete my_new_object_category object_category.", "command_options": "" }, { "name": "list_object_category", "command": "object category list", "result": "(?!$uuid_object_category)", "description": "Check that my_new_object_category object_category was deleted." }, { "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 alt_demo", "command_options": "" } ], "authz_and_admin": [ { "name": "list tenant", "command": "tenant list", "result": "(?!alt_demo)", "description": "Check if tenant alt_demo is used." }, { "name": "add tenant alt_demo", "command": "tenant add alt_demo", "result": "^$", "description": "Add a new tenant", "command_options": "" }, { "name": "check tenant alt_demo", "command": "tenant list", "result": "(?P\\w+)\\s+alt_demo", "description": "Check that tenant alt_demo has been correctly added" }, { "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": "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": "set_tenant_authz", "command": "tenant set --authz $uuid_authz $uuid", "result": "", "description": "Connect the authz intra extension to the tenant demo", "command_options": "" }, { "name": "set_tenant_admin", "command": "tenant set --admin $uuid_admin $uuid", "result": "", "description": "Connect the authz intra extension to the tenant alt_demo", "command_options": "" }, { "name": "check tenant alt_demo and authz ie", "command": "tenant list", "result": "alt_demo $uuid_authz", "description": "Check that authz intra extension has been correctly added to the tenant.", "command_options": "-c name -c intra_authz_extension_id -f value" }, { "name": "check tenant alt_demo and admin ie", "command": "tenant list", "result": "$uuid_admin", "description": "Check that admin intra extension has been correctly added to the tenant.", "command_options": "-c intra_admin_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": "add_object", "command": "object add nova_server_1", "result": "", "description": "Add the new object category nova_server_1", "command_options": "" }, { "name": "list_object", "command": "object list", "result": "(?P\\w+)\\s+nova_server_1", "description": "Check that nova_server_1 object was added." }, { "name": "add_object_category", "command": "object category add my_new_object_category", "result": "", "description": "Add the new object category my_new_object_category", "command_options": "" }, { "name": "list_object_category", "command": "object category list", "result": "(?P\\w+)\\s+my_new_object_category", "description": "Check that my_new_object_category object_category was added." }, { "name": "add_scope", "command": "object scope add $uuid_object_category scope1 --description \"scope1 description\"", "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+scope1\\s+scope1 description", "description": "Check added scope.", "command_options": "-c id -c name -c description -f value" }, { "name": "add_assignment", "command": "object assignment add $uuid_object $uuid_object_category $uuid_object_scope", "result": "^$", "description": "Add a new assignment", "command_options": "" }, { "name": "check_added_assignment", "command": "object assignment list $uuid_object $uuid_object_category", "result": "$uuid_object_scope scope1", "description": "Check added assignment.", "command_options": "-c id -c name -f value" }, { "name": "delete_assignment", "command": "object assignment delete $uuid_object $uuid_object_category $uuid_object_scope", "result": "^$", "description": "Delete the added assignment", "command_options": "" }, { "name": "check_deleted_assignment", "command": "object assignment list $uuid_object $uuid_object_category", "result": "(?!$uuid_object_scope)", "description": "Check deleted assignment.", "command_options": "-c id -f value" }, { "name": "delete_scope", "command": "object scope delete $uuid_object_category $uuid_object_scope", "result": "^$", "description": "Delete one scope from object category role", "command_options": "" }, { "name": "delete_object_category", "command": "object category delete $uuid_object_category", "result": "^$", "description": "Delete my_new_object_category object_category.", "command_options": "" }, { "name": "list_object_category", "command": "object category list", "result": "(?!$uuid_object_category)", "description": "Check that my_new_object_category object_category was deleted." }, { "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 alt_demo", "command_options": "" } ] } }