From: morganrol Date: Tue, 23 Mar 2021 17:48:59 +0000 (+0100) Subject: [SDC] Add a timer before certifying X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F119655%2F1;p=testsuite%2Fpythonsdk-tests.git [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 Change-Id: I0a67d006597c3094f55f93893126865d7ead33fb --- 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()