From: danielhanrahan Date: Fri, 13 Mar 2026 20:11:44 +0000 (+0000) Subject: Fix intermittent CSIT failure (HTTP 406) X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=2596c4dc07b96a6a40034e26873fb905b1f79c35;p=policy%2Fdocker.git Fix intermittent CSIT failure (HTTP 406) Sometimes CSITs are failing due to participants not yet being registered. This adds a verification step to wait until all participants are registered. Issue-ID: POLICY-5556 Change-Id: Icec2923ce18c6e0653462fce2314613fda564d2f Signed-off-by: danielhanrahan --- diff --git a/csit/resources/tests/clamp-common.robot b/csit/resources/tests/clamp-common.robot index 39c06e43..aa457673 100644 --- a/csit/resources/tests/clamp-common.robot +++ b/csit/resources/tests/clamp-common.robot @@ -30,6 +30,13 @@ VerifyHealthcheckPap ${resp}= MakeGetRequest policy ${POLICY_PAP_IP} /policy/pap/v1/health ${auth} Should Be Equal As Strings ${resp.status_code} 200 +VerifyParticipantsRegistered + [Documentation] Verify that all participants are registered + ${auth}= ClampAuth + ${resp}= MakeGetRequest ACM ${POLICY_RUNTIME_ACM_IP} /onap/policy/clamp/acm/v2/participants ${auth} + Should Be Equal As Strings ${resp.status_code} 200 + Length Should Be ${resp.json()} 4 + VerifyPriming [Arguments] ${theCompositionId} ${primestate} [Documentation] Verify the AC definitions are primed to the participants diff --git a/csit/resources/tests/clamp-health-check.robot b/csit/resources/tests/clamp-health-check.robot index cf5dde25..315ce8aa 100644 --- a/csit/resources/tests/clamp-health-check.robot +++ b/csit/resources/tests/clamp-health-check.robot @@ -39,3 +39,4 @@ RegisterParticipants ${resp}= PUT On Session policy /onap/policy/clamp/acm/v2/participants Log Received response from runtime acm ${resp.text} Should Be Equal As Strings ${resp.status_code} 202 + Wait Until Keyword Succeeds 10 sec 2 sec VerifyParticipantsRegistered