aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/steps/onboard
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2023-05-18 18:03:27 +0000
committerGerrit Code Review <gerrit@onap.org>2023-05-18 18:03:27 +0000
commitdeb99c7b3c7caaf9704e6316f7eba062a54b04fc (patch)
tree28d08d0d83b71f9d89dfc7c38de69cfaece71692 /src/onaptests/steps/onboard
parentf8a9dce09d2a7f6755a04dfc03d248c2dcb173e4 (diff)
parentbd23b8b477205413499bb5cc68dbc343747a4291 (diff)
Merge ""Configure ONAP Python tests to not expose services""
Diffstat (limited to 'src/onaptests/steps/onboard')
-rw-r--r--src/onaptests/steps/onboard/cds.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/onaptests/steps/onboard/cds.py b/src/onaptests/steps/onboard/cds.py
index 13e6203..0bad0cb 100644
--- a/src/onaptests/steps/onboard/cds.py
+++ b/src/onaptests/steps/onboard/cds.py
@@ -13,7 +13,8 @@ from onapsdk.cds.blueprint_processor import Blueprintprocessor
from onapsdk.configuration import settings
import urllib3
-from ..base import BaseStep
+from onaptests.steps.base import BaseStep
+
from onaptests.utils.exceptions import OnapTestException
@@ -68,6 +69,7 @@ class ExposeCDSBlueprintprocessorNodePortStep(CDSBaseStep):
Use settings values:
- K8S_CONFIG,
- K8S_ONAP_NAMESPACE.
+ - EXPOSE_SERVICES_NODE_PORTS
"""
super().execute()
@@ -131,7 +133,8 @@ class BootstrapBlueprintprocessor(CDSBaseStep):
- ExposeCDSBlueprintprocessorNodePortStep.
"""
super().__init__(cleanup=cleanup)
- self.add_step(ExposeCDSBlueprintprocessorNodePortStep(cleanup=cleanup))
+ if settings.EXPOSE_SERVICES_NODE_PORTS:
+ self.add_step(ExposeCDSBlueprintprocessorNodePortStep(cleanup=cleanup))
@property
def description(self) -> str:
@@ -217,7 +220,7 @@ class CbaPublishStep(CDSBaseStep):
"""Let's skip enrichment if enriched CBA is already present"""
if Path.is_file(settings.CDS_CBA_UNENRICHED):
self.add_step(CbaEnrichStep(cleanup=cleanup))
- else:
+ elif settings.EXPOSE_SERVICES_NODE_PORTS:
self.add_step(ExposeCDSBlueprintprocessorNodePortStep(cleanup=cleanup))
@property