aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--moonclient/moonclient/tests/tests_empty_policy_new_user.json12
1 files changed, 9 insertions, 3 deletions
diff --git a/moonclient/moonclient/tests/tests_empty_policy_new_user.json b/moonclient/moonclient/tests/tests_empty_policy_new_user.json
index b5a762c1..311f59e9 100644
--- a/moonclient/moonclient/tests/tests_empty_policy_new_user.json
+++ b/moonclient/moonclient/tests/tests_empty_policy_new_user.json
@@ -76,6 +76,12 @@
"description": "Create a new tenant"
},
{
+ "name": "create user demo",
+ "external_command": "openstack user create --password console",
+ "result": "",
+ "description": "Create user demo"
+ },
+ {
"name": "add role admin to demo",
"external_command": "openstack role add --project admin --user demo admin",
"result": "",
@@ -3442,19 +3448,19 @@
{
"name": "demo: check nova command",
- "external_command": "nova --os-user-name demo --os-project-name demo list",
+ "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 pause $uuid_server",
+ "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 list",
+ "external_command": "nova --os-user-name demo --os-project-name demo --os-password console list",
"result": "\\| (?P<uuid_server>[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running",
"description": "Check that nova server is still in running state."
},