aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrichomme <morgan.richomme@orange.com>2020-12-04 14:34:29 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2020-12-04 14:13:55 +0000
commit2787afaa82f22a8d435d8b5781ff3d91126f82c0 (patch)
tree06d6772e3d184d0c9e51c559d149a30ce7321faf
parent0d1b490d0eb95948354a18bfced173f4f0a5c516 (diff)
basic_cds adapatations for xtesting
Issue-ID: TEST-245 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I4bb0a1c728ad8b982e6936c8a3bc5572ee08a6b4 (cherry picked from commit c9ee30562d7c56c551c4858a69faa70be3234043)
-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."""