Merge "Update the version of refstack set to 2017.09"
authorJose Lausuch <jalausuch@suse.com>
Wed, 15 Nov 2017 12:28:50 +0000 (12:28 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Wed, 15 Nov 2017 12:28:50 +0000 (12:28 +0000)
build.sh
functest/opnfv_tests/openstack/refstack_client/refstack_client.py
functest/opnfv_tests/openstack/snaps/snaps_suite_builder.py
functest/tests/unit/vnf/router/test_cloudify_vrouter.py

index 1f57dca..51752a8 100644 (file)
--- a/build.sh
+++ b/build.sh
@@ -17,7 +17,7 @@ arm64_dirs=${arm64_dirs-$(echo "${amd64_dirs}" | sed -e "s|docker/vnf||" \
 
 find . -name Dockerfile -exec sed -i -e "s|opnfv/functest-core|${repo}/functest-core:amd64-latest|g" {} +
 for dir in ${amd64_dirs}; do
-    (cd "${dir}" && docker build -t "${repo}/functest-${dir##**/}:amd64-latest" .)
+    (cd "${dir}" && docker build --no-cache -t "${repo}/functest-${dir##**/}:amd64-latest" .)
     docker push "${repo}/functest-${dir##**/}:amd64-latest"
 done
 find . -name Dockerfile -exec git checkout {} +
@@ -25,7 +25,7 @@ find . -name Dockerfile -exec git checkout {} +
 find . -name Dockerfile -exec sed -i -e "s|alpine:3.6|multiarch/alpine:arm64-v3.6|g" {} +
 find . -name Dockerfile -exec sed -i -e "s|opnfv/functest-core|${repo}/functest-core:arm64-latest|g" {} +
 for dir in ${arm64_dirs}; do
-    (cd "${dir}" && docker build -t "${repo}/functest-${dir##**/}:arm64-latest" .)
+    (cd "${dir}" && docker build --no-cache -t "${repo}/functest-${dir##**/}:arm64-latest" .)
     docker push "${repo}/functest-${dir##**/}:arm64-latest"
 done
 find . -name Dockerfile -exec git checkout {} +
index 42befe2..fe32da6 100644 (file)
@@ -126,13 +126,13 @@ class RefstackClient(testcase.TestCase):
                 num_failures = match[1]
                 LOGGER.info("".join(match))
             success_testcases = []
-            for match in re.findall(r"\{0\} (.*?)[. ]*ok", output):
+            for match in re.findall(r"\{0\} (.*?) \.{3} ok", output):
                 success_testcases.append(match)
             failed_testcases = []
-            for match in re.findall(r"\{0\} (.*?)[. ]*FAILED", output):
+            for match in re.findall(r"\{0\} (.*?) \.{3} FAILED", output):
                 failed_testcases.append(match)
             skipped_testcases = []
-            for match in re.findall(r"\{0\} (.*?)[. ]*SKIPPED:", output):
+            for match in re.findall(r"\{0\} (.*?) \.{3} SKIPPED:", output):
                 skipped_testcases.append(match)
 
             num_executed = int(num_tests) - int(num_skipped)
index b83967d..fb20e4f 100644 (file)
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
 # Copyright (c) 2017 Cable Television Laboratories, Inc. and others.
 #
 # This program and the accompanying materials
index 4f25623..4d8e940 100644 (file)
@@ -18,7 +18,11 @@ from functest.opnfv_tests.vnf.router import cloudify_vrouter
 
 class CloudifyVrouterTesting(unittest.TestCase):
 
-    def setUp(self):
+    @mock.patch('functest.opnfv_tests.vnf.router.cloudify_vrouter.Utilvnf')
+    @mock.patch('functest.opnfv_tests.vnf.router.cloudify_vrouter.vrouter_base'
+                '.Utilvnf')
+    @mock.patch('os.makedirs')
+    def setUp(self, *args):
 
         self.tenant = 'cloudify_vrouter'
         self.creds = {'username': 'user',
@@ -41,14 +45,12 @@ class CloudifyVrouterTesting(unittest.TestCase):
                                                      'ram_min': 2048}}}}
 
         with mock.patch('functest.opnfv_tests.vnf.router.cloudify_vrouter.'
-                        'os.makedirs'), \
-            mock.patch('functest.opnfv_tests.vnf.router.cloudify_vrouter.'
-                       'get_config', return_value={
-                           'tenant_images': 'foo',
-                           'orchestrator': self.orchestrator,
-                           'vnf': self.vnf,
-                           'vnf_test_suite': '',
-                           'version': 'whatever'}):
+                        'get_config', return_value={
+                            'tenant_images': 'foo',
+                            'orchestrator': self.orchestrator,
+                            'vnf': self.vnf,
+                            'vnf_test_suite': '',
+                            'version': 'whatever'}):
 
             self.router_vnf = cloudify_vrouter.CloudifyVrouter()