Reworked CSIT for Dublin part1
[integration/csit.git] / tests / clamp / UIs / 02__Verify_Modification_In_UI.robot
1 *** Settings ***
2 Library     Collections
3 Library     RequestsLibrary
4 Library     OperatingSystem
5 Library     json
6
7 *** Variables ***
8 ${login}                     admin
9 ${passw}                     password
10
11 *** Keywords ***
12 Create the sessions
13     ${auth}=    Create List     ${login}    ${passw}
14     Create Session   clamp  https://localhost:8443   auth=${auth}   disable_warnings=1
15     Set Global Variable     ${clamp_session}      clamp
16
17 *** Test Cases ***
18 Get Requests health check ok
19     Create the sessions
20     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v1/healthcheck
21     Should Be Equal As Strings  ${resp.status_code}     200
22
23 Open TCA1
24     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v2/loop/LOOP_iYTIP_v1_0_ResourceInstanceName1_tca
25     Should Contain Match    ${resp}   *LOOP_iYTIP_v1_0_ResourceInstanceName1_tca*
26     Should Contain Match    ${resp}   *Event1*
27     Should Contain Match    ${resp}   *1.2.3*
28     Should Contain Match    ${resp}   *PolicyScope1*