From df2f5492777af11788318a42aeaefddae51fdb7e Mon Sep 17 00:00:00 2001 From: xudan Date: Tue, 13 Feb 2018 03:18:16 -0500 Subject: Add Functest cloudify_ims test case into proposed_tests test suite Add cloudify_ims test case into proposed_tests test suite. Then this test case can be run by Dovetail on CI. JIRA: DOVETAIL-603 Change-Id: I5ab832002388f0916e04beef9d630de2cb37df59 Signed-off-by: xudan --- dovetail/container.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'dovetail/container.py') diff --git a/dovetail/container.py b/dovetail/container.py index 8069ea47..4c0d8c33 100644 --- a/dovetail/container.py +++ b/dovetail/container.py @@ -232,14 +232,13 @@ class Container(object): if type.lower() == 'functest': prefix_path = dt_cfg.dovetail_config[type]['config']['dir'] - file_name = dt_cfg.dovetail_config['cirros_image'] - src_path = os.path.join(prefix_path, 'pre_config', file_name) - dest_path = '/home/opnfv/functest/images' - Container.pre_copy(container_id, src_path, dest_path) - file_name = dt_cfg.dovetail_config['ubuntu14_image'] - src_path = os.path.join(prefix_path, 'pre_config', file_name) - dest_path = '/home/opnfv/functest/images' - Container.pre_copy(container_id, src_path, dest_path) + images = ['cirros_image', 'ubuntu14_image', 'cloudify_image', + 'trusty_image'] + for image in images: + file_name = dt_cfg.dovetail_config[image] + src_path = os.path.join(prefix_path, 'pre_config', file_name) + dest_path = '/home/opnfv/functest/images' + Container.pre_copy(container_id, src_path, dest_path) if type.lower() == 'yardstick': cls.set_yardstick_conf_file(container_id) -- cgit 1.2.3-korg