Add more checks when setting tenant. 49/1649/1
authorasteroide <thomas.duval@orange.com>
Wed, 16 Sep 2015 14:41:29 +0000 (16:41 +0200)
committerasteroide <thomas.duval@orange.com>
Wed, 16 Sep 2015 14:41:29 +0000 (16:41 +0200)
Change-Id: I76d812d94c2c2a9c48ee26395f45a3f130883201

moonclient/moonclient/tests/tests_tenants.json

index ca2d228..2f24a29 100644 (file)
@@ -1,7 +1,7 @@
 {
   "command_options": "-f value",
   "tests_group": {
-    "group1": [
+    "main": [
       {
         "name": "list tenant",
         "command": "tenant list",
       },
       {
         "name": "set_tenant_authz",
-        "command": "tenant set --authz $uuid_authz demo",
+        "command": "tenant set --authz $uuid_authz $uuid",
         "result": "",
-        "description": "Connect the authz intra extension to the tenant demo",
+        "description": "Connect the authz intra extension to the tenant alt_demo",
         "command_options": ""
       },
+      {
+        "name": "check authz ie for tenant alt_demo",
+        "command": "tenant list",
+        "result": "alt_demo $uuid_authz",
+        "description": "Check that authz ie has been correctly added for tenant alt_demo ",
+        "command_options": "-c name -c intra_authz_extension_id -f value"
+      },
       {
         "name": "set_tenant_admin",
-        "command": "tenant set --admin $uuid_admin demo",
+        "command": "tenant set --admin $uuid_admin $uuid",
         "result": "",
-        "description": "Connect the admin intra extension to the tenant demo",
+        "description": "Connect the admin intra extension to the tenant alt_demo",
         "command_options": ""
       },
+      {
+        "name": "check admin ie for tenant alt_demo",
+        "command": "tenant list",
+        "result": "alt_demo $uuid_admin",
+        "description": "Check that admin ie has been correctly added for tenant alt_demo ",
+        "command_options": "-c name -c intra_admin_extension_id -f value"
+      },
       {
         "name": "delete_admin_intra_extension",
         "command": "intraextension delete $uuid_admin",