Disable rollback tests temporarily 07/142307/1
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>
Wed, 22 Oct 2025 14:44:02 +0000 (15:44 +0100)
committerrameshiyer27 <ramesh.murugan.iyer@est.tech>
Wed, 22 Oct 2025 14:44:02 +0000 (15:44 +0100)
Issue-ID: POLICY-5463
Change-Id: I3776f23e9964aef02a35be95a113a8be04727def
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
csit/resources/tests/clamp-migrate-rollback.robot

index fc9232f..ea2188b 100644 (file)
@@ -295,50 +295,51 @@ DeployAutomationCompositionRollback
     ChangeStatusAutomationComposition  ${compositionFromId}   ${instanceMigrationId}  ${postjson}
     Wait Until Keyword Succeeds    2 min    5 sec    VerifyDeployStatus  ${compositionFromId}  ${instanceMigrationId}  DEPLOYED
 
-FailAutomationCompositionMigrationRollback
-    [Documentation]  Fail Migration of an automation composition for testing rollback.
-    SetParticipantSimFail
-    ${auth}=    ClampAuth
-    ${postyaml}=  Get file  ${CURDIR}/data/ac-instance-migration-to.yaml
-    ${updatedpostyaml}=   Replace String     ${postyaml}     COMPOSITIONIDPLACEHOLDER       ${compositionFromId}
-    ${updatedpostyaml}=   Replace String     ${updatedpostyaml}     COMPOSITIONTARGETIDPLACEHOLDER       ${compositionToId}
-    ${updatedpostyaml}=   Replace String     ${updatedpostyaml}     INSTACEIDPLACEHOLDER       ${instanceMigrationId}
-    ${updatedpostyaml}=   Replace String     ${updatedpostyaml}     TEXTPLACEHOLDER       TextForMigration
-    ${resp}=   MakeYamlPostRequest  ACM  ${POLICY_RUNTIME_ACM_IP}  /onap/policy/clamp/acm/v2/compositions/${compositionFromId}/instances  ${updatedpostyaml}  ${auth}
-    Should Be Equal As Strings    ${resp.status_code}     200
-    Wait Until Keyword Succeeds    2 min    5 sec    VerifyStateChangeResult  ${compositionFromId}  ${instanceMigrationId}  FAILED
-
-RollbackAutomationComposition
-    [Documentation]  Rollback of an automation composition.
-    SetParticipantSimSuccess
-    ${auth}=    ClampAuth
-    ${resp}=   MakePostRequest  ACM  ${POLICY_RUNTIME_ACM_IP}  /onap/policy/clamp/acm/v2/compositions/${compositionFromId}/instances/${instanceMigrationId}/rollback  ${auth}
-    Should Be Equal As Strings    ${resp.status_code}     202
-    Wait Until Keyword Succeeds    2 min    5 sec    VerifyDeployStatus  ${compositionFromId}  ${instanceMigrationId}  DEPLOYED
-    VerifyPropertiesUpdated  ${compositionFromId}  ${instanceMigrationId}  MyTextInit
-    VerifyParticipantSim  ${instanceMigrationId}  MyTextInit
-    VerifyRollbackElementsRuntime  ${compositionFromId}  ${instanceMigrationId}
-    VerifyRollbackElementsSim  ${instanceMigrationId}
-
-FailAutomationCompositionMigrationRollback2
-    [Documentation]  Fail Migration of an automation composition for testing rollback.
-    SetParticipantSimFail
-    ${auth}=    ClampAuth
-    ${postyaml}=  Get file  ${CURDIR}/data/ac-instance-migration-to.yaml
-    ${updatedpostyaml}=   Replace String     ${postyaml}     COMPOSITIONIDPLACEHOLDER       ${compositionFromId}
-    ${updatedpostyaml}=   Replace String     ${updatedpostyaml}     COMPOSITIONTARGETIDPLACEHOLDER       ${compositionToId}
-    ${updatedpostyaml}=   Replace String     ${updatedpostyaml}     INSTACEIDPLACEHOLDER       ${instanceMigrationId}
-    ${updatedpostyaml}=   Replace String     ${updatedpostyaml}     TEXTPLACEHOLDER       TextForMigration
-    ${resp}=   MakeYamlPostRequest  ACM  ${POLICY_RUNTIME_ACM_IP}  /onap/policy/clamp/acm/v2/compositions/${compositionFromId}/instances  ${updatedpostyaml}  ${auth}
-    Should Be Equal As Strings    ${resp.status_code}     200
-    Wait Until Keyword Succeeds    2 min    5 sec    VerifyStateChangeResult  ${compositionFromId}  ${instanceMigrationId}  FAILED
-
-FailRollbackAutomationComposition
-    [Documentation]  Fail Rollback of an automation composition.
-    ${auth}=    ClampAuth
-    ${resp}=   MakePostRequest  ACM  ${POLICY_RUNTIME_ACM_IP}  /onap/policy/clamp/acm/v2/compositions/${compositionFromId}/instances/${instanceMigrationId}/rollback   ${auth}
-    Should Be Equal As Strings    ${resp.status_code}     202
-    Wait Until Keyword Succeeds    2 min    5 sec    VerifyStateChangeResult  ${compositionFromId}  ${instanceMigrationId}  FAILED
+# Enable the rollback tests once the logic is refactored in clamp
+#FailAutomationCompositionMigrationRollback
+#    [Documentation]  Fail Migration of an automation composition for testing rollback.
+#    SetParticipantSimFail
+#    ${auth}=    ClampAuth
+#    ${postyaml}=  Get file  ${CURDIR}/data/ac-instance-migration-to.yaml
+#    ${updatedpostyaml}=   Replace String     ${postyaml}     COMPOSITIONIDPLACEHOLDER       ${compositionFromId}
+#    ${updatedpostyaml}=   Replace String     ${updatedpostyaml}     COMPOSITIONTARGETIDPLACEHOLDER       ${compositionToId}
+#    ${updatedpostyaml}=   Replace String     ${updatedpostyaml}     INSTACEIDPLACEHOLDER       ${instanceMigrationId}
+#    ${updatedpostyaml}=   Replace String     ${updatedpostyaml}     TEXTPLACEHOLDER       TextForMigration
+#    ${resp}=   MakeYamlPostRequest  ACM  ${POLICY_RUNTIME_ACM_IP}  /onap/policy/clamp/acm/v2/compositions/${compositionFromId}/instances  ${updatedpostyaml}  ${auth}
+#    Should Be Equal As Strings    ${resp.status_code}     200
+#    Wait Until Keyword Succeeds    2 min    5 sec    VerifyStateChangeResult  ${compositionFromId}  ${instanceMigrationId}  FAILED
+
+#RollbackAutomationComposition
+#    [Documentation]  Rollback of an automation composition.
+#    SetParticipantSimSuccess
+#    ${auth}=    ClampAuth
+#    ${resp}=   MakePostRequest  ACM  ${POLICY_RUNTIME_ACM_IP}  /onap/policy/clamp/acm/v2/compositions/${compositionFromId}/instances/${instanceMigrationId}/rollback  ${auth}
+#    Should Be Equal As Strings    ${resp.status_code}     202
+#    Wait Until Keyword Succeeds    2 min    5 sec    VerifyDeployStatus  ${compositionFromId}  ${instanceMigrationId}  DEPLOYED
+#    VerifyPropertiesUpdated  ${compositionFromId}  ${instanceMigrationId}  MyTextInit
+#    VerifyParticipantSim  ${instanceMigrationId}  MyTextInit
+#    VerifyRollbackElementsRuntime  ${compositionFromId}  ${instanceMigrationId}
+#    VerifyRollbackElementsSim  ${instanceMigrationId}
+
+#FailAutomationCompositionMigrationRollback2
+#    [Documentation]  Fail Migration of an automation composition for testing rollback.
+#    SetParticipantSimFail
+#    ${auth}=    ClampAuth
+#    ${postyaml}=  Get file  ${CURDIR}/data/ac-instance-migration-to.yaml
+#    ${updatedpostyaml}=   Replace String     ${postyaml}     COMPOSITIONIDPLACEHOLDER       ${compositionFromId}
+#    ${updatedpostyaml}=   Replace String     ${updatedpostyaml}     COMPOSITIONTARGETIDPLACEHOLDER       ${compositionToId}
+#    ${updatedpostyaml}=   Replace String     ${updatedpostyaml}     INSTACEIDPLACEHOLDER       ${instanceMigrationId}
+#    ${updatedpostyaml}=   Replace String     ${updatedpostyaml}     TEXTPLACEHOLDER       TextForMigration
+#    ${resp}=   MakeYamlPostRequest  ACM  ${POLICY_RUNTIME_ACM_IP}  /onap/policy/clamp/acm/v2/compositions/${compositionFromId}/instances  ${updatedpostyaml}  ${auth}
+#    Should Be Equal As Strings    ${resp.status_code}     200
+#    Wait Until Keyword Succeeds    2 min    5 sec    VerifyStateChangeResult  ${compositionFromId}  ${instanceMigrationId}  FAILED
+
+#FailRollbackAutomationComposition
+#    [Documentation]  Fail Rollback of an automation composition.
+#    ${auth}=    ClampAuth
+#    ${resp}=   MakePostRequest  ACM  ${POLICY_RUNTIME_ACM_IP}  /onap/policy/clamp/acm/v2/compositions/${compositionFromId}/instances/${instanceMigrationId}/rollback   ${auth}
+#    Should Be Equal As Strings    ${resp.status_code}     202
+#    Wait Until Keyword Succeeds    2 min    5 sec    VerifyStateChangeResult  ${compositionFromId}  ${instanceMigrationId}  FAILED
 
 UnInstantiateAutomationCompositionRollback
     [Documentation]  Undeploy and Delete automation composition instance in fail rollback.