Use blacklist of Tempest test cases for SDNVPN scenario 79/16979/6
authorjose.lausuch <jose.lausuch@ericsson.com>
Fri, 15 Jul 2016 12:14:24 +0000 (14:14 +0200)
committerJose Lausuch <jose.lausuch@ericsson.com>
Fri, 15 Jul 2016 15:25:33 +0000 (15:25 +0000)
This patch disables tempest smoke from being executed in bgpvpn scenarios.
Since there is a known upstream issue which won't be resolved before Colorado,
it doesn't make sense to run the test cases in Tempest that will fail due
to that issue.
The Tempest suite will be triggered along with the "features" tier, with
a given blacklist of the known test that will fail.

JIRA: FUNCTEST-369

Change-Id: Ifc533077207e9d62d49bcedcc3cd0936df312891
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
ci/exec_test.sh
ci/testcases.yaml

index d9f169c..82a7a31 100755 (executable)
@@ -116,7 +116,20 @@ function run_test(){
                 $clean_flag --sanity all $report
         ;;
         "bgpvpn")
-            python ${repos_dir}/sdnvpn/test/functest/run_tests.py
+            sdnvpn_repo_dir=${repos_dir}/sdnvpn/test/functest/
+            # Copy blacklist from sdnvpn repo to the proper place to execute functest
+            src=${sdnvpn_repo_dir}/tempest_blacklist.txt
+            dst=${FUNCTEST_REPO_DIR}/testcases/OpenStack/tempest/custom_tests/blacklist.txt
+            cp $src $dst
+            # Execute tempest smoke with blacklist
+            python ${FUNCTEST_REPO_DIR}/testcases/OpenStack/tempest/run_tempest.py \
+                $clean_flag -s -m smoke $report
+            # Remove blacklist file
+            rm $dst
+
+            # Execute SDNVPN test cases
+            python ${sdnvpn_repo_dir}/run_tests.py $report
+
         ;;
         "onos")
             python ${FUNCTEST_REPO_DIR}/testcases/Controllers/ONOS/Teston/onosfunctest.py
index b4d9b07..55d099c 100644 (file)
@@ -56,7 +56,7 @@ tiers:
                     the OpenStack deplopyment.
                 dependencies:
                     installer: ''
-                    scenario: ''
+                    scenario: '^(?!.*bgpvpn).*$'
 
             -
                 name: rally_sanity