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/compliance/proposed_tests.yml | 2 ++ dovetail/conf/dovetail_config.yml | 7 +++++++ dovetail/container.py | 15 +++++++-------- dovetail/testcase/vnf.tc001.yml | 11 +++++++++++ 4 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 dovetail/testcase/vnf.tc001.yml (limited to 'dovetail') diff --git a/dovetail/compliance/proposed_tests.yml b/dovetail/compliance/proposed_tests.yml index ad70cf6a..bae2375e 100644 --- a/dovetail/compliance/proposed_tests.yml +++ b/dovetail/compliance/proposed_tests.yml @@ -10,3 +10,5 @@ proposed_tests: - dovetail.ha.tc009 - dovetail.ha.tc010 - dovetail.ha.tc011 + # vnf + - dovetail.vnf.tc001 diff --git a/dovetail/conf/dovetail_config.yml b/dovetail/conf/dovetail_config.yml index ed11a6bd..e3b58d9f 100644 --- a/dovetail/conf/dovetail_config.yml +++ b/dovetail/conf/dovetail_config.yml @@ -23,6 +23,12 @@ cirros_image: 'cirros-0.3.5-x86_64-disk.img' # Ubuntu 14.04 image for snaps_smoke ubuntu14_image: 'ubuntu-14.04-server-cloudimg-amd64-disk1.img' +# cloudify_ims image +cloudify_image: 'cloudify-manager-premium-4.0.1.qcow2' + +# Trusty image +trusty_image: 'trusty-server-cloudimg-amd64-disk1.img' + COMPLIANCE_PATH: compliance/ TESTCASE_PATH: testcase/ # testsuite supported, should adjust accordingly @@ -45,6 +51,7 @@ testarea_supported: - mandatory - full - smoke + - vnf functest_testsuite: - refstack_defcore 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) diff --git a/dovetail/testcase/vnf.tc001.yml b/dovetail/testcase/vnf.tc001.yml new file mode 100644 index 00000000..e0f39582 --- /dev/null +++ b/dovetail/testcase/vnf.tc001.yml @@ -0,0 +1,11 @@ +--- +dovetail.vnf.tc001: + name: dovetail.vnf.tc001 + objective: testing for Cleawater IMS deployment using Cloudify orchestrator + validate: + type: functest + testcase: cloudify_ims + pre_condition: + - 'cp /home/opnfv/userconfig/pre_config/testcases.yaml /usr/lib/python2.7/site-packages/functest/ci/testcases.yaml' + report: + sub_testcase_list: -- cgit 1.2.3-korg