diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-11-21 10:16:23 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-21 10:16:23 +0000 |
commit | 67902c82571b80522c16844df91a9b4699eb91a2 (patch) | |
tree | cc2e4f6df7b3caa3507e0b80dcad6419e6dcff3c /functest/core/TestCasesBase.py | |
parent | 0ba2cb40b3c7ff4d69e1c4b045d7a4ed54f302b8 (diff) | |
parent | 8048b797f8147b3db5dfcf68caf6bb449b2f2067 (diff) |
Merge "Adapt Domino to Test Abstraction"
Diffstat (limited to 'functest/core/TestCasesBase.py')
-rw-r--r-- | functest/core/TestCasesBase.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/core/TestCasesBase.py b/functest/core/TestCasesBase.py index 3d6b82d5..777b09f0 100644 --- a/functest/core/TestCasesBase.py +++ b/functest/core/TestCasesBase.py @@ -21,10 +21,9 @@ class TestCasesBase(object): logger = ft_logger.Logger(__name__).getLogger() - project = "functest" - def __init__(self): self.details = {} + self.project_name = "functest" self.case_name = "" self.criteria = "" self.start_time = "" @@ -36,12 +35,13 @@ class TestCasesBase(object): def push_to_db(self): try: + assert self.project_name assert self.case_name assert self.criteria assert self.start_time assert self.stop_time if ft_utils.push_results_to_db( - TestCasesBase.project, self.case_name, self.start_time, + self.project_name, self.case_name, self.start_time, self.stop_time, self.criteria, self.details): self.logger.info("The results were successfully pushed to DB") return TestCasesBase.EX_OK |