[SDC] Add a timer before certifying 55/119655/1
authormorganrol <morgan.richomme@orange.com>
Tue, 23 Mar 2021 17:48:59 +0000 (18:48 +0100)
committermorganrol <morgan.richomme@orange.com>
Tue, 23 Mar 2021 17:48:59 +0000 (18:48 +0100)
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

src/onaptests/steps/onboard/service.py

index b591f8d..6300a43 100644 (file)
@@ -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()