aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormorganrol <morgan.richomme@orange.com>2021-03-23 18:48:59 +0100
committermorganrol <morgan.richomme@orange.com>2021-03-23 18:48:59 +0100
commiteffb276cbd7d61c6e5ee2d93eb2a7d6baa1d5baa (patch)
treeb8605b4fa07207b18a1c188ec51a35bd8568809c
parent612848c7353ced7aa0f16ff90ad3afffa65e8aed (diff)
[SDC] Add a timer before certifying
The goal is to reduce the number of errors on SDC due to the processing time on certification Initially a re-try was attempted on exception but no exception is raised so use a Timer to reduce the stress on certification Issue-ID: TEST-315 Signed-off-by: morganrol <morgan.richomme@orange.com> Change-Id: I0a67d006597c3094f55f93893126865d7ead33fb
-rw-r--r--src/onaptests/steps/onboard/service.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/onaptests/steps/onboard/service.py b/src/onaptests/steps/onboard/service.py
index b591f8d..6300a43 100644
--- a/src/onaptests/steps/onboard/service.py
+++ b/src/onaptests/steps/onboard/service.py
@@ -69,13 +69,8 @@ class ServiceOnboardStep(BaseStep):
# checkin is done if needed
# If service is replayed, no need to try to re-onboard the model
if not service.distributed:
- try:
- service.checkin()
- except (APIError, ResourceNotFound):
- # Retry as checkin may be a bit long
- # Temp workaround to avoid internal race in SDC
- time.sleep(5)
- service.checkin()
+ time.sleep(30)
+ service.checkin()
service.onboard()