aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/scenario
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2020-11-18 11:20:59 +0000
committerMorgan Richomme <morgan.richomme@orange.com>2020-12-04 07:53:29 +0000
commit0d1b490d0eb95948354a18bfced173f4f0a5c516 (patch)
treec31aad33ab61c6d19e9a98ce3ddaee659de967be /src/onaptests/scenario
parent18fc0fe4de8fefc9ca5ed97abb3a7249bf12a07f (diff)
CDS onboarding steps and simple CBA enrichment scenarion.
Steps for data dictionary upload and CBA enrichment Issue-ID: TEST-245 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: If7f3346c79ae97e35b21e919435270a0c54f77dd (cherry picked from commit ac7ed508cd0ae434ac9237196a42045c5e7d6e92)
Diffstat (limited to 'src/onaptests/scenario')
-rw-r--r--src/onaptests/scenario/cds_blueprint_enrichment.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/onaptests/scenario/cds_blueprint_enrichment.py b/src/onaptests/scenario/cds_blueprint_enrichment.py
new file mode 100644
index 0000000..b3442d1
--- /dev/null
+++ b/src/onaptests/scenario/cds_blueprint_enrichment.py
@@ -0,0 +1,31 @@
+#!/usr/bin/env python
+"""Simple CDS blueprint erichment test scenario."""
+
+import logging
+
+from onapsdk.configuration import settings
+from xtesting.core import testcase
+
+from onaptests.steps.onboard.cds import CbaEnrichStep
+
+
+class CDSBlueprintEnrichment(testcase.TestCase):
+ """Enrich simple blueprint using CDS blueprintprocessor."""
+
+ __logger = logging.getLogger(__name__)
+
+ def __init__(self):
+ """Init CDS blueprint enrichment use case."""
+ self.__logger.debug("CDS blueprint enrichment initialization")
+ super.__init__()
+ self.test = CbaEnrichStep(
+ cleanup=settings.CLEANUP_FLAG)
+
+ def run(self):
+ self.__logger.debug("CDS blueprint enrichment run")
+ self.test.execute()
+
+ def clean(self):
+ """Clean Additional resources if needed."""
+ self.__logger.info("Generate Test report")
+ self.test.reports_collection.generate_report()