Remove unnecessary defaults from rally task file 59/15459/2
authorJuha Kosonen <juha.kosonen@nokia.com>
Mon, 13 Jun 2016 13:59:29 +0000 (13:59 +0000)
committerJuha Kosonen <juha.kosonen@nokia.com>
Mon, 13 Jun 2016 14:03:42 +0000 (14:03 +0000)
Parameters used in test scenarios are defined and correctly set by run
script. No need to hardcode defaults in task file.

JIRA: FUNCTEST-311

Change-Id: Ic7decfc5144c40a50cd32862eb4aed263930a78e
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
testcases/OpenStack/rally/run_rally-cert.py
testcases/OpenStack/rally/task.yaml

index a8628bc..abff07b 100755 (executable)
@@ -176,6 +176,7 @@ def build_task_args(test_file_name):
     task_args['sup_dir'] = SUPPORT_DIR
     task_args['users_amount'] = USERS_AMOUNT
     task_args['tenants_amount'] = TENANTS_AMOUNT
+    task_args['use_existing_users'] = False
     task_args['iterations'] = ITERATIONS_AMOUNT
     task_args['concurrency'] = CONCURRENCY
 
index b678916..3dded7d 100644 (file)
@@ -1,18 +1,6 @@
-{%- set glance_image_location = glance_image_location|default("http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img") %}
-{%- set image_name = image_name|default("functest-img-rally") %}
-{%- set flavor_name = flavor_name|default("m1.tiny") %}
-{%- set use_existing_users = use_existing_users|default(false) %}
-{%- set service_list = service_list|default(["authenticate", "cinder", "keystone", "nova", "glance", "neutron", "quotas", "requests", "heat", "vm"]) %}
-{%- set live_migration = live_migration|default(false) %}
-{%- set smoke = smoke|default(true) %}
-{%- set floating_network = floating_network|default("net04_ext") %}
-{%- set controllers_amount = controllers_amount|default(1) %}
 {%- if smoke %}
 {%- set users_amount = 1 %}
 {%- set tenants_amount = 1 %}
-{%- else %}
-{%- set users_amount = users_amount|default(1) %}
-{%- set tenants_amount = tenants_amount|default(1) %}
 {%- endif %}
 
 {%- from "macro/macro.yaml" import user_context, vm_params, unlimited_volumes, constant_runner, rps_runner, no_failures_sla -%}