summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2018-05-16 22:44:17 -0400
committerGeorg Kunz <georg.kunz@ericsson.com>2018-05-18 06:27:21 +0000
commit5ccacfe4bc9ce4383ee3ef84f64fa620eae0d20f (patch)
treecab59e1fe892a4f8b539a9d2dd4cf39fbd7de993
parent1f427c7b74bec80deade3be3457fe3c4c16f75b5 (diff)
Got an exception when test suite is empty
1. Return empty test case list when test suite is empty. 2. Don't quite understand why comment out all proposed_tests. 3. Move stress ping test case at the end of the list, because it may broken the message queue. Change-Id: Ib717fc91e3763be03f243f82e53679462ecdae04 Signed-off-by: xudan <xudan16@huawei.com>
-rw-r--r--dovetail/testcase.py6
-rw-r--r--etc/compliance/proposed_tests.yml16
2 files changed, 13 insertions, 9 deletions
diff --git a/dovetail/testcase.py b/dovetail/testcase.py
index 221d07f4..9680f192 100644
--- a/dovetail/testcase.py
+++ b/dovetail/testcase.py
@@ -16,6 +16,7 @@ from parser import Parser
from test_runner import TestRunnerFactory
from utils.dovetail_config import DovetailConfig as dt_cfg
import utils.dovetail_logger as dt_logger
+import utils.dovetail_utils as dt_utils
class Testcase(object):
@@ -273,7 +274,10 @@ class Testcase(object):
@classmethod
def get_testcase_list(cls, testsuite, testarea):
testcase_list = []
- for value in testsuite['testcases_list']:
+ testcases = dt_utils.get_value_from_dict('testcases_list', testsuite)
+ if not testcases:
+ return testcase_list
+ for value in testcases:
for area in testarea:
if value is not None and (area == 'full' or area in value):
testcase_list.append(value)
diff --git a/etc/compliance/proposed_tests.yml b/etc/compliance/proposed_tests.yml
index 5a64bc3e..1e3d1127 100644
--- a/etc/compliance/proposed_tests.yml
+++ b/etc/compliance/proposed_tests.yml
@@ -3,14 +3,14 @@ proposed_tests:
name: proposed_tests
testcases_list:
# proposed test cases for 2nd release
- # smoke
+ # tempest
- dovetail.tempest.compute
- dovetail.tempest.identity_v2
- dovetail.tempest.identity_v3
- dovetail.tempest.image
- dovetail.tempest.network
- - dovetail.tempest.orchestration
- dovetail.tempest.volume
+ - dovetail.tempest.neutron_trunk_ports
# HA
- dovetail.ha.controller_restart
- dovetail.ha.rabbitmq
@@ -18,11 +18,11 @@ proposed_tests:
- dovetail.ha.database
# vnf
- dovetail.vnf.vims
- # stress
- - dovetail.stress.ping
+ # security
+ - dovetail.security.patrole
# sdnvpn
- dovetail.tempest.bgpvpn
- # patrole
- - dovetail.security.patrole
- # Neutron trunk port Tempest tests
- - dovetail.tempest.neutron_trunk_ports
+ # snaps
+ - dovetail.snaps.smoke
+ # stress
+ - dovetail.stress.ping