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>
${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
${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