[Promise test case] Use proper way to get parameters from yaml
[functest.git] / testcases / OpenStack / rally / scenario / opnfv-heat.yaml
1 {# all scenarios included only in full mode #}
2
3 {% if full_mode %}
4
5   HeatStacks.create_and_delete_stack:
6     -
7       args:
8         template_path: "{{ tmpl_dir }}/default.yaml.template"
9       context:
10         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
11       runner:
12         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
13       sla:
14         {{ no_failures_sla() }}
15     -
16       args:
17         template_path: "{{ tmpl_dir }}/server_with_ports.yaml.template"
18         parameters:
19           public_net: {{ floating_network }}
20           image: {{ image_name }}
21           flavor: {{ flavor_name }}
22       context:
23         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
24       runner:
25         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
26       sla:
27         {{ no_failures_sla() }}
28     -
29       args:
30         template_path: "{{ tmpl_dir }}/server_with_volume.yaml.template"
31         parameters:
32           image: {{ image_name }}
33           flavor: {{ flavor_name }}
34           network_id: {{ netid }}
35       context:
36         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
37       runner:
38         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
39       sla:
40         {{ no_failures_sla() }}
41
42   HeatStacks.create_and_list_stack:
43     -
44       args:
45         template_path: "{{ tmpl_dir }}/default.yaml.template"
46       context:
47         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
48       runner:
49         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
50       sla:
51         {{ no_failures_sla() }}
52
53   HeatStacks.create_update_delete_stack:
54     -
55       args:
56         template_path: "{{ tmpl_dir }}/random_strings.yaml.template"
57         updated_template_path: "{{ tmpl_dir }}/updated_random_strings_add.yaml.template"
58       context:
59         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
60       runner:
61         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
62       sla:
63         {{ no_failures_sla() }}
64     -
65       args:
66         template_path: "{{ tmpl_dir }}/random_strings.yaml.template"
67         updated_template_path: "{{ tmpl_dir }}/updated_random_strings_delete.yaml.template"
68       context:
69         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
70       runner:
71         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
72       sla:
73         {{ no_failures_sla() }}
74     -
75       args:
76         template_path: "{{ tmpl_dir }}/resource_group.yaml.template"
77         updated_template_path: "{{ tmpl_dir }}/updated_resource_group_increase.yaml.template"
78       context:
79         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
80       runner:
81         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
82       sla:
83         {{ no_failures_sla() }}
84     -
85       args:
86         template_path: "{{ tmpl_dir }}/autoscaling_policy.yaml.template"
87         updated_template_path: "{{ tmpl_dir }}/updated_autoscaling_policy_inplace.yaml.template"
88       context:
89         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
90       runner:
91         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
92       sla:
93         {{ no_failures_sla() }}
94     -
95       args:
96         template_path: "{{ tmpl_dir }}/resource_group.yaml.template"
97         updated_template_path: "{{ tmpl_dir }}/updated_resource_group_reduce.yaml.template"
98       context:
99         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
100       runner:
101         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
102       sla:
103         {{ no_failures_sla() }}
104     -
105       args:
106         template_path: "{{ tmpl_dir }}/random_strings.yaml.template"
107         updated_template_path: "{{ tmpl_dir }}/updated_random_strings_replace.yaml.template"
108       context:
109         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
110       runner:
111         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
112       sla:
113         {{ no_failures_sla() }}
114
115 {% else %}
116
117   HeatStacks.create_update_delete_stack:
118     -
119       args:
120         template_path: "{{ tmpl_dir }}/autoscaling_policy.yaml.template"
121         updated_template_path: "{{ tmpl_dir }}/updated_autoscaling_policy_inplace.yaml.template"
122       context:
123         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
124       runner:
125         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
126       sla:
127         {{ no_failures_sla() }}
128
129 {% endif %}
130
131   HeatStacks.create_check_delete_stack:
132     -
133       args:
134         template_path: "{{ tmpl_dir }}/random_strings.yaml.template"
135       context:
136         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
137       runner:
138         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
139       sla:
140         {{ no_failures_sla() }}
141
142   HeatStacks.create_suspend_resume_delete_stack:
143     -
144       args:
145         template_path: "{{ tmpl_dir }}/random_strings.yaml.template"
146       context:
147         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
148       runner:
149         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
150       sla:
151         {{ no_failures_sla() }}
152
153   HeatStacks.list_stacks_and_resources:
154     -
155       context:
156         {{ user_context(tenants_amount, users_amount, use_existing_users) }}
157       runner:
158         {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
159       sla:
160         {{ no_failures_sla() }}