aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/scenario
diff options
context:
space:
mode:
Diffstat (limited to 'src/onaptests/scenario')
-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."""