Fix intermittent CSIT failure (HTTP 406) 10/143610/1 master
authordanielhanrahan <daniel.hanrahan@est.tech>
Fri, 13 Mar 2026 20:11:44 +0000 (20:11 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Fri, 13 Mar 2026 20:11:44 +0000 (20:11 +0000)
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 <daniel.hanrahan@est.tech>
csit/resources/tests/clamp-common.robot
csit/resources/tests/clamp-health-check.robot

index 39c06e4..aa45767 100644 (file)
@@ -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
 
     ${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
 VerifyPriming
     [Arguments]  ${theCompositionId}  ${primestate}
     [Documentation]    Verify the AC definitions are primed to the participants
index cf5dde2..315ce8a 100644 (file)
@@ -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
     ${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