Fix a bug in test. 83/4683/1
authorasteroide <thomas.duval@orange.com>
Wed, 16 Dec 2015 15:17:57 +0000 (16:17 +0100)
committerasteroide <thomas.duval@orange.com>
Wed, 16 Dec 2015 15:17:57 +0000 (16:17 +0100)
Change-Id: I3def005a8b627fefbf0da7445631610940369d46

moonclient/moonclient/tests/tests_external_commands.json

index b01fde2..bfb7ac1 100644 (file)
         "description": "Check that authz ie has been correctly added for tenant demo ",
         "command_options": "-c name -c intra_authz_extension_id -f value"
       },
+      {
+        "name": "select_authz_ie",
+        "command": "intraextension select $uuid_authz",
+        "result": "Select $uuid_authz IntraExtension.",
+        "description": "Select the authz IntraExtension",
+        "command_options": ""
+      },
+      {
+        "name": "check_select_authz_ie",
+        "command": "intraextension show selected",
+        "result": "$uuid_authz",
+        "description": "Check the selected authz IntraExtension",
+        "command_options": "-c id -f value"
+      },
       {
         "name": "set_tenant_admin",
         "command": "tenant set --admin $uuid_admin $uuid",
         "command_options": "-c name -c intra_admin_extension_id -f value"
       },
 
+      {
+        "name": "get aggregation algorithm",
+        "command": "aggregation algorithm list",
+        "result": "(?P<uuid_aggregation>\\w+)\\s+one_true",
+        "description": "Get aggregation algorithm.",
+        "command_options": "-c id -c name -f value"
+      },
+      {
+        "name": "set aggregation algorithm",
+        "command": "aggregation algorithm set $uuid_aggregation",
+        "result": "",
+        "description": "Set aggregation algorithm to one_true.",
+        "command_options": ""
+      },
+      {
+        "name": "get aggregation algorithm",
+        "command": "aggregation algorithm show",
+        "result": "$uuid_aggregation\\s+one_true",
+        "description": "Check aggregation algorithm.",
+        "command_options": "-c id -c name -f value"
+      },
+
       {
         "name": "check nova command",
         "external_command": "nova list",