Add Functest cloudify_ims test case into proposed_tests test suite 79/52079/3
authorxudan <xudan16@huawei.com>
Tue, 13 Feb 2018 08:18:16 +0000 (03:18 -0500)
committerGeorg Kunz <georg.kunz@ericsson.com>
Sat, 24 Feb 2018 07:22:43 +0000 (07:22 +0000)
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>
dovetail/compliance/proposed_tests.yml
dovetail/conf/dovetail_config.yml
dovetail/container.py
dovetail/testcase/vnf.tc001.yml [new file with mode: 0644]

index ad70cf6..bae2375 100644 (file)
@@ -10,3 +10,5 @@ proposed_tests:
     - dovetail.ha.tc009
     - dovetail.ha.tc010
     - dovetail.ha.tc011
+    # vnf
+    - dovetail.vnf.tc001
index ed11a6b..e3b58d9 100644 (file)
@@ -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
index 8069ea4..4c0d8c3 100644 (file)
@@ -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 (file)
index 0000000..e0f3958
--- /dev/null
@@ -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: