diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2021-08-04 08:35:09 +0000 |
---|---|---|
committer | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2021-12-14 13:55:52 +0000 |
commit | 54803e59a08d09bbb34cb686740f41b1e7bc3684 (patch) | |
tree | 182279aa12e07db86e5c210cbcee7f5500b8206a /src/onaptests/scenario/cds_blueprint_enrichment.py | |
parent | 337aa506b763cd3c3799a9e874f5c4fccad73fa1 (diff) |
[TEST] Do not create simulators in "onap" namespace
As described in ticket - that resource shouldn't be created in onap namespace because if it's not properly deleted it has impact on the security tests results.
Note: That change doesn't require any additional work in lab preparation - the namespace is going to be created by MSB K8S plugin.
Issue-ID: TEST-356
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I0acf6262e3c8c9fbe9113d96e62960ce36ece04c
Diffstat (limited to 'src/onaptests/scenario/cds_blueprint_enrichment.py')
-rw-r--r-- | src/onaptests/scenario/cds_blueprint_enrichment.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/onaptests/scenario/cds_blueprint_enrichment.py b/src/onaptests/scenario/cds_blueprint_enrichment.py index 3354ee1..c442780 100644 --- a/src/onaptests/scenario/cds_blueprint_enrichment.py +++ b/src/onaptests/scenario/cds_blueprint_enrichment.py @@ -15,7 +15,7 @@ from onaptests.utils.exceptions import OnapTestException class CDSBlueprintEnrichment(testcase.TestCase): """Enrich simple blueprint using CDS blueprintprocessor.""" - __logger = logging.getLogger(__name__) + __logger = logging.getLogger() def __init__(self, **kwargs): """Init CDS blueprint enrichment use case.""" @@ -34,13 +34,15 @@ class CDSBlueprintEnrichment(testcase.TestCase): self.start_time = time.time() try: self.test.execute() + if settings.CLEANUP_FLAG: + self.test.cleanup() self.result = 100 except OnapTestException as exc: self.result = 0 - self.__logger.error(exc.error_message) + self.__logger.exception(exc.error_message) except SDKException: self.result = 0 - self.__logger.error("SDK Exception") + self.__logger.exception("SDK Exception") finally: self.stop_time = time.time() |