diff options
author | xudan <xudan16@huawei.com> | 2018-11-14 04:42:11 -0500 |
---|---|---|
committer | xudan <xudan16@huawei.com> | 2018-11-23 03:59:56 -0500 |
commit | 6e69ce0329437fcc5a4181eb4d70e44a6c2dbaa5 (patch) | |
tree | b1417ba562ccf81afd2a13c7a0df730704c19dc4 /dovetail/testcase.py | |
parent | 0c49866f76164c912308d7b9d1e5b7ce2dd23d34 (diff) |
Integrate k8s test casses
In order to integrate k8s test cases, Dovetail framework should do some
refactor and make it more general for k8s test cases as well as ONAP ones.
Integrate 2 k8s test cases.
JIRA: DOVETAIL-748
Change-Id: Ibd87754ffb5fb29f6b4ce79232af860c2ed2da9c
Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/testcase.py')
-rw-r--r-- | dovetail/testcase.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/dovetail/testcase.py b/dovetail/testcase.py index ada5df82..3be1cb02 100644 --- a/dovetail/testcase.py +++ b/dovetail/testcase.py @@ -272,7 +272,7 @@ class Testcase(object): for area in testarea: if cls.check_testcase_area(value, area): testcase_list.append(value) - if value in mandatory: + if mandatory and value in mandatory: Testcase.testcase_list[value].is_mandatory = True else: Testcase.testcase_list[value].is_mandatory = False @@ -308,6 +308,15 @@ class FunctestTestcase(Testcase): return True +class FunctestK8sTestcase(Testcase): + + validate_testcase_list = {} + + def __init__(self, testcase_yaml): + super(FunctestK8sTestcase, self).__init__(testcase_yaml) + self.type = 'functest-k8s' + + class YardstickTestcase(Testcase): validate_testcase_list = {} @@ -350,7 +359,8 @@ class TestcaseFactory(object): 'yardstick': YardstickTestcase, 'bottlenecks': BottlenecksTestcase, 'shell': ShellTestcase, - 'vnftest': VnftestTestcase + 'vnftest': VnftestTestcase, + 'functest-k8s': FunctestK8sTestcase } @classmethod |