aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrichomme <morgan.richomme@orange.com>2020-12-04 14:34:29 +0100
committermrichomme <morgan.richomme@orange.com>2020-12-04 14:42:52 +0100
commitc9ee30562d7c56c551c4858a69faa70be3234043 (patch)
tree0ed894d219796145a623c49d91a1c4fe8a5a2181
parent6b8d1e16c01da78ddea3654544b07e55648292ac (diff)
basic_cds adapatations for xtesting
Issue-ID: TEST-245 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I4bb0a1c728ad8b982e6936c8a3bc5572ee08a6b4
-rw-r--r--src/onaptests/scenario/cds_blueprint_enrichment.py13
1 files 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."""