aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Przybysz <marcin.przybysz@nokia.com>2020-12-09 07:57:15 +0000
committerGerrit Code Review <gerrit@onap.org>2020-12-09 07:57:15 +0000
commite885cbb583dfde9f572b3d0bdce7534b23b23676 (patch)
tree970261cd3b36f554ee4a6ce41c534a22ff3dd5b4
parent072111083d22cb68a1679abbc8108430183846c4 (diff)
parent2787afaa82f22a8d435d8b5781ff3d91126f82c0 (diff)
Merge "basic_cds adapatations for xtesting" into guilin
-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."""