aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/scenario
diff options
context:
space:
mode:
authorThierry Hardy <thierry.hardy@orange.com>2020-11-25 07:55:37 +0000
committerGerrit Code Review <gerrit@onap.org>2020-11-25 07:55:37 +0000
commita6fe8be6c1d1eb9e7293ed1c3bb63a76646fe22c (patch)
tree4f76527762fbb5306807c41ff79e0f238a3d7f75 /src/onaptests/scenario
parent6950c1ff55e73e5dd0d6eebdae73810fca903484 (diff)
parentac7ed508cd0ae434ac9237196a42045c5e7d6e92 (diff)
Merge "CDS onboarding steps and simple CBA enrichment scenarion."
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()