From 2787afaa82f22a8d435d8b5781ff3d91126f82c0 Mon Sep 17 00:00:00 2001 From: mrichomme Date: Fri, 4 Dec 2020 14:34:29 +0100 Subject: basic_cds adapatations for xtesting Issue-ID: TEST-245 Signed-off-by: mrichomme Change-Id: I4bb0a1c728ad8b982e6936c8a3bc5572ee08a6b4 (cherry picked from commit c9ee30562d7c56c551c4858a69faa70be3234043) --- src/onaptests/scenario/cds_blueprint_enrichment.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/onaptests/scenario/cds_blueprint_enrichment.py b/src/onaptests/scenario/cds_blueprint_enrichment.py index b3442d1..502c92d 100644 --- a/src/onaptests/scenario/cds_blueprint_enrichment.py +++ b/src/onaptests/scenario/cds_blueprint_enrichment.py @@ -2,6 +2,7 @@ """Simple CDS blueprint erichment test scenario.""" import logging +import time from onapsdk.configuration import settings from xtesting.core import testcase @@ -14,16 +15,24 @@ class CDSBlueprintEnrichment(testcase.TestCase): __logger = logging.getLogger(__name__) - def __init__(self): + def __init__(self, **kwargs): """Init CDS blueprint enrichment use case.""" + if "case_name" not in kwargs: + kwargs["case_name"] = 'basic_cds' + super(CDSBlueprintEnrichment, self).__init__(**kwargs) self.__logger.debug("CDS blueprint enrichment initialization") - super.__init__() self.test = CbaEnrichStep( cleanup=settings.CLEANUP_FLAG) + self.start_time = None + self.stop_time = None + self.result = 0 def run(self): self.__logger.debug("CDS blueprint enrichment run") + self.start_time = time.time() self.test.execute() + self.result = 100 + self.stop_time = time.time() def clean(self): """Clean Additional resources if needed.""" -- cgit 1.2.3-korg