update cloudify_ims case
authorboucherv <valentin.boucher@orange.com>
Tue, 14 Feb 2017 10:22:19 +0000 (11:22 +0100)
committerboucherv <valentin.boucher@orange.com>
Wed, 15 Feb 2017 09:57:37 +0000 (10:57 +0100)
bug fixes
Provisional change of the ci loop var to daily for VNF testcase.

JIRA: FUNCTEST-710

Change-Id: I6dc8072b4e56c96473a2b09f1881b96024259db5
Signed-off-by: boucherv <valentin.boucher@orange.com>
functest/ci/testcases.yaml
functest/core/vnf_base.py
functest/opnfv_tests/vnf/ims/cloudify_ims.py
functest/utils/functest_utils.py

index 6007f97..e692c00 100755 (executable)
@@ -354,7 +354,7 @@ tiers:
     -
         name: vnf
         order: 4
-        ci_loop: 'weekly'
+        ci_loop: '(daily)|(weekly)'
         description : >-
             Collection of VNF test cases.
         testcases:
@@ -367,7 +367,7 @@ tiers:
                     using the Cloudify orchestrator. It also runs some signaling traffic.
                 dependencies:
                     installer: ''
-                    scenario: '(ocl)|(nosdn)|^(os-odl)((?!bgpvpn).)*$'
+                    scenario: 'nosdn-nofeature'
                 run:
                     module: 'functest.opnfv_tests.vnf.ims.cloudify_ims'
                     class: 'ImsVnf'
@@ -378,8 +378,8 @@ tiers:
                 description: >-
                     Test suite from Parser project.
                 dependencies:
-                    installer: ''
-                    scenario: ''
+                    installer: 'unknown'
+                    scenario: 'unknown'
                 run:
                     module: 'functest.opnfv_tests.vnf.aaa.aaa'
                     class: 'AaaVnf'
index 44b4ae0..8e98d8e 100644 (file)
@@ -67,8 +67,8 @@ class VnfOnBoardingBase(base.TestcaseBase):
                     res_orchestrator['result'])
                 self.details['orchestrator']['duration'] = round(
                     orchestrator_ready_time - self.start_time, 1)
-        except:
-            self.logger.warn("Problem with the Orchestrator")
+        except Exception:
+            self.logger.warn("Problem with the Orchestrator", exc_info=True)
 
         # Deploy VNF
         try:
index e2508c2..efde44a 100644 (file)
@@ -176,11 +176,6 @@ class ImsVnf(vnf_base.VnfOnBoardingBase):
             cfy.set_nameservers(ns)
             self.logger.debug("Resolvconf set")
 
-        if 'compute' in self.nova_client.client.services_url:
-            cfy.set_nova_url(self.nova_client.client.services_url['compute'])
-        if self.neutron_client.httpclient.endpoint_url is not None:
-            cfy.set_neutron_url(self.neutron_client.httpclient.endpoint_url)
-
         self.logger.info("Prepare virtualenv for cloudify-cli")
         cmd = "chmod +x " + self.case_dir + "create_venv.sh"
         ft_utils.execute_command(cmd)
index 0405546..7c5c4fc 100644 (file)
@@ -300,7 +300,7 @@ def get_resolvconf_ns():
     while line:
         ip = re.search(r"\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b", line)
         if ip:
-            resolver.nameservers = [str(ip)]
+            resolver.nameservers = [ip.group(0)]
             try:
                 result = resolver.query('opnfv.org')[0]
                 if result != "":