aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/rally/rally.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-07-23 13:44:27 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2020-07-23 13:46:45 +0200
commita135a73521e6d1eb32b22a7f0f24fb145d852f89 (patch)
tree345a59338781b271de1ec0866a8e3f00ba649ca6 /functest/opnfv_tests/openstack/rally/rally.py
parente6b4dfc325847ccf76c0d0a0d3dbe367eb7052cd (diff)
Add VMTasks.dd_load_test in Rally test cases
It allows running dd in VM (simple disk benchmarking). https://github.com/cntt-n/CNTT/issues/1477 Change-Id: I4f1150637460f6e0b661fc80fec2cc292efcc511 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/opnfv_tests/openstack/rally/rally.py')
-rw-r--r--functest/opnfv_tests/openstack/rally/rally.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/functest/opnfv_tests/openstack/rally/rally.py b/functest/opnfv_tests/openstack/rally/rally.py
index e2b0b07bd..63f281b67 100644
--- a/functest/opnfv_tests/openstack/rally/rally.py
+++ b/functest/opnfv_tests/openstack/rally/rally.py
@@ -43,7 +43,8 @@ class RallyBase(singlevm.VmReady2):
# pylint: disable=too-many-instance-attributes, too-many-public-methods
stests = ['authenticate', 'glance', 'cinder', 'gnocchi', 'heat',
- 'keystone', 'neutron', 'nova', 'quotas', 'swift', 'barbican']
+ 'keystone', 'neutron', 'nova', 'quotas', 'swift', 'barbican',
+ 'vm']
rally_conf_path = "/etc/rally/rally.conf"
rally_aar4_patch_path = pkg_resources.resource_filename(
@@ -70,6 +71,7 @@ class RallyBase(singlevm.VmReady2):
shared_network = True
allow_no_fip = True
task_timeout = 3600
+ username = 'cirros'
def __init__(self, **kwargs):
"""Initialize RallyBase object."""
@@ -121,6 +123,7 @@ class RallyBase(singlevm.VmReady2):
task_args['volume_version'] = self.volume_version
task_args['volume_service_type'] = self.volume_service_type
task_args['block_migration'] = env.get("BLOCK_MIGRATION").lower()
+ task_args['username'] = self.username
if self.ext_net:
task_args['floating_network'] = str(self.ext_net.name)