Add test in CSIT for the OutProperties messages 89/140789/1
authorFrancescoFioraEst <francesco.fiora@est.tech>
Fri, 18 Apr 2025 14:27:05 +0000 (15:27 +0100)
committerFrancesco Fiora <francesco.fiora@est.tech>
Thu, 24 Apr 2025 09:22:42 +0000 (09:22 +0000)
Add test in CSIT to verify the correct order of execution
of OutProperties messages in ACM.

Issue-ID: POLICY-5343
Change-Id: I9423f3e67942160e66e90c92a9dbaff45576f1ae
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
csit/resources/tests/policy-clamp-test.robot

index 806c136..082b8ef 100644 (file)
@@ -240,6 +240,12 @@ SendOutPropertiesToRuntime
     ${auth}=    ParticipantAuth
     ${postjson}=  Get file  ${CURDIR}/data/OutProperties.json
     ${updatedpostjson}=   Replace String     ${postjson}     INSTACEIDPLACEHOLDER       ${instanceMigrationId}
+    ${updatedpostjson}=   Replace String     ${updatedpostjson}     TEXTPLACEHOLDER       DumpTest
+    ${resp}=   MakeJsonPutRequest  participant  ${POLICY_PARTICIPANT_SIM_IP}  /onap/policy/simparticipant/v2/datas  ${updatedpostjson}  ${auth}
+    Should Be Equal As Strings    ${resp.status_code}     200
+    ${resp}=   MakeJsonPutRequest  participant  ${POLICY_PARTICIPANT_SIM_IP}  /onap/policy/simparticipant/v2/datas  ${updatedpostjson}  ${auth}
+    Should Be Equal As Strings    ${resp.status_code}     200
+    ${updatedpostjson}=   Replace String     ${postjson}     INSTACEIDPLACEHOLDER       ${instanceMigrationId}
     ${updatedpostjson}=   Replace String     ${updatedpostjson}     TEXTPLACEHOLDER       MyTextToSend
     ${resp}=   MakeJsonPutRequest  participant  ${POLICY_PARTICIPANT_SIM_IP}  /onap/policy/simparticipant/v2/datas  ${updatedpostjson}  ${auth}
     Should Be Equal As Strings    ${resp.status_code}     200