diff options
author | Thierry Hardy <thierry.hardy@orange.com> | 2020-09-18 13:32:36 +0200 |
---|---|---|
committer | Thierry Hardy <thierry.hardy@orange.com> | 2020-09-18 13:32:36 +0200 |
commit | d53b9bcaf16fc22554bd8b18e293d310a6056859 (patch) | |
tree | 03dfa008a98c86a104a5f9b62d4fe63ff51dd409 /src/onaptests/steps/instantiate | |
parent | b6f965609e956d9d26f3359b75ef2aaf1d596a5f (diff) |
Allows to launch only instantiation
It is requested to be able to launch instantiation without performing
again onboarding and cloud configuration steps.
Issue-ID: TEST-254
Signed-off-by: jardellos <thierry.hardy@orange.com>
Change-Id: I4e25a0cc4c9e195ed26c96f15ac5ae9a36ec9bfb
Diffstat (limited to 'src/onaptests/steps/instantiate')
-rw-r--r-- | src/onaptests/steps/instantiate/service_ala_carte.py | 11 |
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: |