Assign heat_stack_owner role to the new user 57/48457/1
authorLinda Wang <wangwulin@huawei.com>
Wed, 6 Dec 2017 14:48:32 +0000 (14:48 +0000)
committerLinda Wang <wangwulin@huawei.com>
Wed, 6 Dec 2017 14:48:32 +0000 (14:48 +0000)
For heat scenario in rally, assign heat_stack_owner role to
the new created users.

Change-Id: I86a74ca88993ed3782d21b22eb5933d639d86c94
Signed-off-by: Linda Wang <wangwulin@huawei.com>
functest/opnfv_tests/openstack/rally/scenario/full/opnfv-heat.yaml
functest/opnfv_tests/openstack/rally/scenario/sanity/opnfv-heat.yaml

index 6f3a5c1..3adf8f7 100644 (file)
@@ -4,6 +4,8 @@
         template_path: "{{ tmpl_dir }}/default.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
@@ -17,6 +19,8 @@
           flavor: {{ flavor_name }}
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
@@ -30,6 +34,8 @@
           network_id: {{ netid }}
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
@@ -41,6 +47,8 @@
         template_path: "{{ tmpl_dir }}/default.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
@@ -53,6 +61,8 @@
         updated_template_path: "{{ tmpl_dir }}/updated_random_strings_add.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
@@ -63,6 +73,8 @@
         updated_template_path: "{{ tmpl_dir }}/updated_random_strings_delete.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
@@ -73,6 +85,8 @@
         updated_template_path: "{{ tmpl_dir }}/updated_resource_group_increase.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
@@ -83,6 +97,8 @@
         updated_template_path: "{{ tmpl_dir }}/updated_autoscaling_policy_inplace.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
         updated_template_path: "{{ tmpl_dir }}/updated_resource_group_reduce.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
         updated_template_path: "{{ tmpl_dir }}/updated_random_strings_replace.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
         template_path: "{{ tmpl_dir }}/random_strings.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
         template_path: "{{ tmpl_dir }}/random_strings.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
     -
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
index dc34cc3..5df49aa 100644 (file)
@@ -5,6 +5,8 @@
         updated_template_path: "{{ tmpl_dir }}/updated_autoscaling_policy_inplace.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
@@ -16,6 +18,8 @@
         template_path: "{{ tmpl_dir }}/random_strings.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
@@ -27,6 +31,8 @@
         template_path: "{{ tmpl_dir }}/random_strings.yaml.template"
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla:
@@ -36,6 +42,8 @@
     -
       context:
         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
+        roles:
+          - "heat_stack_owner"
       runner:
         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
       sla: