From 1a3dccf17efeffb10466ed0ad2e1895cbd859920 Mon Sep 17 00:00:00 2001 From: Lukasz Rajewski Date: Wed, 21 Feb 2024 20:17:58 +0100 Subject: Remove SDNC DB interaction outside the cluster Remove SDNC DB interaction outside the cluster Issue-ID: TEST-404 Signed-off-by: Lukasz Rajewski Change-Id: I3cb45ef4ec05dad96fac87c2d63f8db925047d76 --- src/onaptests/steps/instantiate/sdnc_service.py | 3 ++- src/onaptests/steps/onboard/service.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/onaptests/steps/instantiate/sdnc_service.py b/src/onaptests/steps/instantiate/sdnc_service.py index 9dce7e9..7896d98 100644 --- a/src/onaptests/steps/instantiate/sdnc_service.py +++ b/src/onaptests/steps/instantiate/sdnc_service.py @@ -327,7 +327,8 @@ class TestSdncStep(BaseScenarioStep): - GetSdncPreloadStep """ super().__init__(cleanup=BaseStep.HAS_NO_CLEANUP) - self.add_step(CheckSdncDbStep()) + if settings.IN_CLUSTER: + self.add_step(CheckSdncDbStep()) self.add_step(CheckSdncHealthStep()) if full: self.add_step(UpdateSdncService()) diff --git a/src/onaptests/steps/onboard/service.py b/src/onaptests/steps/onboard/service.py index f4761ff..b482cff 100644 --- a/src/onaptests/steps/onboard/service.py +++ b/src/onaptests/steps/onboard/service.py @@ -205,8 +205,8 @@ class VerifyServiceDistributionStep(BaseScenarioStep): notified_module=notified_module)) if settings.IN_CLUSTER: self.add_step(VerifyServiceDistributionInSoStep()) + self.add_step(VerifyServiceDistributionInSdncStep()) self.add_step(VerifyServiceDistributionInAaiStep()) - self.add_step(VerifyServiceDistributionInSdncStep()) @property def description(self) -> str: -- cgit 1.2.3-korg