From 8048b797f8147b3db5dfcf68caf6bb449b2f2067 Mon Sep 17 00:00:00 2001 From: Morgan Richomme Date: Fri, 18 Nov 2016 15:23:42 +0100 Subject: Adapt Domino to Test Abstraction JIRA: FUNCTEST-547 Change-Id: Iaeb1bb3e6f4529343eacc2f5ceda6d61ca6d96f7 Signed-off-by: Morgan Richomme --- functest/core/TestCasesBase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'functest/core') 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 -- cgit 1.2.3-korg