aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/steps
diff options
context:
space:
mode:
Diffstat (limited to 'src/onaptests/steps')
-rw-r--r--src/onaptests/steps/instantiate/service_ala_carte.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/onaptests/steps/instantiate/service_ala_carte.py b/src/onaptests/steps/instantiate/service_ala_carte.py
index 249a171..84d8208 100644
--- a/src/onaptests/steps/instantiate/service_ala_carte.py
+++ b/src/onaptests/steps/instantiate/service_ala_carte.py
@@ -26,8 +26,9 @@ class ServiceAlaCarteInstantiateStep(BaseStep):
- ConnectServiceSubToCloudRegionStep.
"""
super().__init__(cleanup=cleanup)
- self.add_step(ServiceOnboardStep(cleanup))
- self.add_step(ConnectServiceSubToCloudRegionStep(cleanup))
+ if not settings.ONLY_INSTANTIATE:
+ self.add_step(ServiceOnboardStep(cleanup))
+ self.add_step(ConnectServiceSubToCloudRegionStep(cleanup))
def execute(self):
"""Instantiate service.
@@ -85,9 +86,9 @@ class YamlTemplateServiceAlaCarteInstantiateStep(YamlTemplateBaseStep):
self._yaml_template: dict = None
self._service_instance_name: str = None
self._service_instance: str = None
-
- self.add_step(YamlTemplateServiceOnboardStep(cleanup))
- self.add_step(ConnectServiceSubToCloudRegionStep(cleanup))
+ if not settings.ONLY_INSTANTIATE:
+ self.add_step(YamlTemplateServiceOnboardStep(cleanup))
+ self.add_step(ConnectServiceSubToCloudRegionStep(cleanup))
@property
def yaml_template(self) -> dict: