diff options
author | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2023-06-21 15:11:22 +0100 |
---|---|---|
committer | Liam Fallon <liam.fallon@est.tech> | 2023-06-23 08:36:42 +0000 |
commit | 08e8665d2a81c4dbc4cfca60a10490818b3e8fc0 (patch) | |
tree | 0264f2fabdb70d34108f6d1c99df760cc849c993 | |
parent | daa33711087f125b16236275cb368476e9ea5717 (diff) |
Fix CSIT failure in clamp.
ACM uninstantiate Api response was changed to 202 from 200. Test case updated.
Issue-ID: POLICY-4729
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I4b88a5bb19a1889d899ddf9c39d1712c0a0b5e46
(cherry picked from commit 82cd63adf72978d85db4e470582c98f804bbf224)
-rw-r--r-- | csit/resources/tests/policy-clamp-test.robot | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/csit/resources/tests/policy-clamp-test.robot b/csit/resources/tests/policy-clamp-test.robot index 29a99ebb..d5fec492 100644 --- a/csit/resources/tests/policy-clamp-test.robot +++ b/csit/resources/tests/policy-clamp-test.robot @@ -127,7 +127,8 @@ UnInstantiateAutomationComposition ${headers}= Create Dictionary Accept=application/json Content-Type=application/json ${resp}= DELETE On Session policy /onap/policy/clamp/acm/v2/compositions/${compositionId}/instances/${instanceId} headers=${headers} Log Received response from runtime acm ${resp.text} - Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.status_code} 202 + Wait Until Keyword Succeeds 1 min 5 sec VerifyUninstantiated DePrimeACDefinitions @@ -179,3 +180,14 @@ VerifyDeployStatus Should Be Equal As Strings ${resp.status_code} 200 Run Keyword If ${resp.status_code}==200 Should Be Equal As Strings ${resp.json()['deployState']} ${deploystate} +VerifyUninstantiated + [Documentation] Verify the Uninstantiation of automation composition. + ${auth}= Create List runtimeUser zb!XztG34 + Log Creating session http://${POLICY_RUNTIME_ACM_IP} + ${session}= Create Session policy http://${POLICY_RUNTIME_ACM_IP} auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= GET On Session policy /onap/policy/clamp/acm/v2/compositions/${compositionId}/instances headers=${headers} + Should Be Equal As Strings ${resp.status_code} 200 + Run Keyword If ${resp.status_code}==200 Length Should Be ${resp.json()['automationCompositionList']} 0 + + |