{ "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": "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": "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": "" } ] } }