blob: b3442d1276599382a317a351b0a605060a956692 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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()
|