aboutsummaryrefslogtreecommitdiffstats
path: root/tests/clamp/APIs
diff options
context:
space:
mode:
authoreh552t <eh552t@intl.att.com>2019-09-02 16:51:38 +0200
committereh552t <eh552t@intl.att.com>2019-09-02 16:51:46 +0200
commit65c3199202e7e44cc81b85fbdcb2f125561ffc2b (patch)
tree087aab2b2b7b4266b2df11b9c970ab83e3532a28 /tests/clamp/APIs
parent8c6cd4fd37d8958a670235751bc57e43ea4e4d63 (diff)
Fix test for clamp-backend and frontend new UI
Signed-off-by: eh552t <eh552t@intl.att.com> Change-Id: I123876f31dc591184f0986edba4bc9a302779607 Issue-ID: CLAMP-276
Diffstat (limited to 'tests/clamp/APIs')
-rw-r--r--tests/clamp/APIs/01__Test_CL_APIs.robot53
1 files changed, 16 insertions, 37 deletions
diff --git a/tests/clamp/APIs/01__Test_CL_APIs.robot b/tests/clamp/APIs/01__Test_CL_APIs.robot
index 1a874323..3edccefd 100644
--- a/tests/clamp/APIs/01__Test_CL_APIs.robot
+++ b/tests/clamp/APIs/01__Test_CL_APIs.robot
@@ -22,48 +22,27 @@ Get Requests health check ok
List TCAs
${resp}= Get Request ${clamp_session} /restservices/clds/v2/loop/getAllNames
- Should Contain Match ${resp} *LOOP_iYTIP_v1_0_ResourceInstanceName1_tca*
+ Should Contain Match ${resp} *Name1_tca*
Should Contain Match ${resp} *tca_2*
- Should Contain Match ${resp} *LOOP_iYTIP_v1_0_ResourceInstanceName1_tca_3*
+ Should Contain Match ${resp} *Name1_tca_3*
Open TCA1
- ${resp}= Get Request ${clamp_session} /restservices/clds/v2/loop/LOOP_iYTIP_v1_0_ResourceInstanceName1_tca
- Should Contain Match ${resp} *LOOP_iYTIP_v1_0_ResourceInstanceName1_tca*
- Should Contain Match ${resp} *GENERATED_POLICY_ID_AT_SUBMIT*
- Should Contain Match ${resp} *onap.policy.monitoring.cdap.tca.hi.lo.app*
- Should Contain Match ${resp} *TCA Policy Scope*
+ ${resp}= Get Request ${clamp_session} /restservices/clds/v2/loop/LOOP_ejh5S_v1_0_ResourceInstanceName1_tca
+ Should Contain Match ${resp} *Name1_tca*
+ Should Contain Match ${resp} *Operational Policy Item*
+ Should Contain Match ${resp} *Operational policies*
+ Should Contain Match ${resp} *Micro Service policies UPDATED*
Open TCA2
- ${resp}= Get Request ${clamp_session} /restservices/clds/v2/loop/LOOP_iYTIP_v1_0_ResourceInstanceName2_tca_2
- Should Contain Match ${resp} *LOOP_iYTIP_v1_0_ResourceInstanceName2_tca_2*
- Should Contain Match ${resp} *GENERATED_POLICY_ID_AT_SUBMIT*
- Should Contain Match ${resp} *dmaap.onap-message-router*
+ ${resp}= Get Request ${clamp_session} /restservices/clds/v2/loop/LOOP_ejh5S_v1_0_ResourceInstanceName2_tca_2
+ Should Contain Match ${resp} *Name2_tca_2*
+ Should Contain Match ${resp} *Operational Policy Item*
+ Should Contain Match ${resp} *1004*
Should Contain Match ${resp} *TCA Policy Scope*
Open TCA3
- ${resp}= Get Request ${clamp_session} /restservices/clds/v2/loop/LOOP_iYTIP_v1_0_ResourceInstanceName1_tca_3
- Should Contain Match ${resp} *LOOP_iYTIP_v1_0_ResourceInstanceName1_tca*
- Should Contain Match ${resp} *GENERATED_POLICY_ID_AT_SUBMIT*
- Should Contain Match ${resp} *onap.policy.monitoring.cdap.tca.hi.lo.app*
- Should Contain Match ${resp} *TCA Policy Scope Version*
-
-Modify MicroService Policy TCA1
- ${data}= Get Binary File ${CURDIR}${/}data${/}microservicePolicyTca1.json
- &{headers}= Create Dictionary Content-Type=application/json
- ${resp}= POST Request ${clamp_session} /restservices/clds/v2/loop/updateMicroservicePolicy/LOOP_iYTIP_v1_0_ResourceInstanceName1_tca data=${data} headers=${headers}
- Should Be Equal As Strings ${resp.status_code} 200
-
-Verify Modification MicroService TCA1
- ${resp}= Get Request ${clamp_session} /restservices/clds/v2/loop/LOOP_iYTIP_v1_0_ResourceInstanceName1_tca
- Should Contain Match ${resp} *version1.11*
-
-Modify Operational Policy TCA1
- ${data}= Get Binary File ${CURDIR}${/}data${/}operationalPolicyTca1.json
- &{headers}= Create Dictionary Content-Type=application/json
- ${resp}= POST Request ${clamp_session} /restservices/clds/v2/loop/updateOperationalPolicies/LOOP_iYTIP_v1_0_ResourceInstanceName1_tca data=${data} headers=${headers}
- Should Be Equal As Strings ${resp.status_code} 200
-
-Verify Modification Operational TCA1
- ${resp}= Get Request ${clamp_session} /restservices/clds/v2/loop/LOOP_iYTIP_v1_0_ResourceInstanceName1_tca
- Should Contain Match ${resp} *Test_Field*
-
+ ${resp}= Get Request ${clamp_session} /restservices/clds/v2/loop/LOOP_ejh5S_v1_0_ResourceInstanceName1_tca_3
+ Should Contain Match ${resp} *Name1_tca_3*
+ Should Contain Match ${resp} *Operational Policy Item*
+ Should Contain Match ${resp} *1004*
+ Should Contain Match ${resp} *TCA Policy Scope*