summaryrefslogtreecommitdiffstats
path: root/moonclient
diff options
context:
space:
mode:
authorThomas Duval <thomas.duval@orange.com>2016-09-08 16:04:45 +0200
committerThomas Duval <thomas.duval@orange.com>2016-09-20 10:38:38 +0200
commit5400372d88d618a2b015e8ae7c324c85d732ea40 (patch)
treee439eadd7aaabca343fd85f502e984fc35b989a2 /moonclient
parent229c100c2fa4210eea40dd4d0c521497cc69f381 (diff)
Create user demo if he doesn't exist and force his passord.
Change-Id: Ifbf1514e7694d241e85a151a2aab5e00bfd06043 (cherry picked from commit bbe7fc7d91252ad454df8c7b3407cd7478badddd)
Diffstat (limited to 'moonclient')
-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."
},