aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/steps/onboard
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2023-03-24 15:38:53 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2023-03-29 07:01:44 +0000
commit6f184d09e0670feaa2817dbbe85a42c6bd880578 (patch)
tree85eaf8b3f72d2e644cd3bacf40cc7c0addc84f7d /src/onaptests/steps/onboard
parent066e6c39c2a5133f89d1f00f25a247f7ce402f10 (diff)
Test pnf_macro fix
Configure and check service distribuiton for 30 minutes Issue-ID: INT-2193 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I316a3e5c179530ba92c87c43795643e9faf30048
Diffstat (limited to 'src/onaptests/steps/onboard')
-rw-r--r--src/onaptests/steps/onboard/service.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/onaptests/steps/onboard/service.py b/src/onaptests/steps/onboard/service.py
index d176697..b1e7d4d 100644
--- a/src/onaptests/steps/onboard/service.py
+++ b/src/onaptests/steps/onboard/service.py
@@ -266,8 +266,9 @@ class YamlTemplateServiceOnboardStep(YamlTemplateBaseStep):
@YamlTemplateBaseStep.store_state(cleanup=True)
def cleanup(self) -> None:
"""Cleanup service onboard step."""
- service: Service = Service(name=self.service_name)
- if service.exists():
- service.archive()
- service.delete()
- super().cleanup()
+ if settings.SDC_CLEANUP:
+ service: Service = Service(name=self.service_name)
+ if service.exists():
+ service.archive()
+ service.delete()
+ super().cleanup()