From bbe7fc7d91252ad454df8c7b3407cd7478badddd Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Thu, 8 Sep 2016 16:04:45 +0200 Subject: Create user demo if he doesn't exist and force his passord. Change-Id: Ifbf1514e7694d241e85a151a2aab5e00bfd06043 --- moonclient/moonclient/tests/tests_empty_policy_new_user.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'moonclient') 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 @@ -75,6 +75,12 @@ "result": "", "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", @@ -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[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", "description": "Check that nova server is still in running state." }, -- cgit 1.2.3-korg