Fix a bug when connecting with demo user to nova 67/21767/1
authorThomas Duval <thomas.duval@orange.com>
Thu, 8 Sep 2016 09:27:12 +0000 (11:27 +0200)
committerThomas Duval <thomas.duval@orange.com>
Tue, 20 Sep 2016 08:38:38 +0000 (10:38 +0200)
Change-Id: I1f73d0c691d0baa24ebaa3eca4163e98625a7ae2
(cherry picked from commit c069b1485d20b44963467cff02d008e44e2b655e)

moonclient/moonclient/tests/tests_empty_policy_new_user.json

index 1b17cc2..b5a762c 100644 (file)
 
       {
         "name": "demo: check nova command",
-        "external_command": "nova --os-user-name demo --os-project-name admin list",
+        "external_command": "nova --os-user-name demo --os-project-name demo 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 admin pause $uuid_server",
+        "external_command": "nova --os-username demo --os-project-name demo 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 admin list",
+        "external_command": "nova --os-user-name demo  --os-project-name demo 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."
       },