diff options
author | xudan <xudan16@huawei.com> | 2018-02-13 03:18:16 -0500 |
---|---|---|
committer | Georg Kunz <georg.kunz@ericsson.com> | 2018-02-24 07:22:43 +0000 |
commit | df2f5492777af11788318a42aeaefddae51fdb7e (patch) | |
tree | afd36f0b3ea6103e131ee5703c71e8625638881e /dovetail/container.py | |
parent | 10a3cfe0bb7ef478badfe08ae712e51a0bb286bb (diff) |
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 <xudan16@huawei.com>
Diffstat (limited to 'dovetail/container.py')
-rw-r--r-- | dovetail/container.py | 15 |
1 files changed, 7 insertions, 8 deletions
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) |