summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuha Kosonen <juha.kosonen@nokia.com>2018-03-05 17:17:53 +0200
committerJuha Kosonen <juha.kosonen@nokia.com>2018-03-05 17:17:53 +0200
commiteab92fc81496812c614c2e4edde0c922d1509fb5 (patch)
tree3182f0563e7c79b9f6a62e8d1270d2cbc0ef74bc
parent5de084c996d949deb1b6804a1c244d9aeb4e6ea6 (diff)
Fix Rally scenario parameters representation
Use printable format of string in scenario input parameters. JIRA: FUNCTEST-946 Change-Id: Ic4826506a6f030e749fecdc7f880e9f911f9c987 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
-rw-r--r--functest/opnfv_tests/openstack/rally/rally.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/functest/opnfv_tests/openstack/rally/rally.py b/functest/opnfv_tests/openstack/rally/rally.py
index 7e6871490..5c7acfded 100644
--- a/functest/opnfv_tests/openstack/rally/rally.py
+++ b/functest/opnfv_tests/openstack/rally/rally.py
@@ -108,13 +108,13 @@ class RallyBase(testcase.TestCase):
def _build_task_args(self, test_file_name):
"""Build arguments for the Rally task."""
task_args = {'service_list': [test_file_name]}
- task_args['image_name'] = self.image_name
- task_args['flavor_name'] = self.flavor_name
- task_args['flavor_alt_name'] = self.flavor_alt_name
- task_args['glance_image_location'] = self.GLANCE_IMAGE_PATH
- task_args['glance_image_format'] = self.GLANCE_IMAGE_FORMAT
- task_args['tmpl_dir'] = self.TEMPLATE_DIR
- task_args['sup_dir'] = self.SUPPORT_DIR
+ task_args['image_name'] = str(self.image_name)
+ task_args['flavor_name'] = str(self.flavor_name)
+ task_args['flavor_alt_name'] = str(self.flavor_alt_name)
+ task_args['glance_image_location'] = str(self.GLANCE_IMAGE_PATH)
+ task_args['glance_image_format'] = str(self.GLANCE_IMAGE_FORMAT)
+ task_args['tmpl_dir'] = str(self.TEMPLATE_DIR)
+ task_args['sup_dir'] = str(self.SUPPORT_DIR)
task_args['users_amount'] = self.USERS_AMOUNT
task_args['tenants_amount'] = self.TENANTS_AMOUNT
task_args['use_existing_users'] = False