[CSIT] Fix SDC CSIT Run Errors/Warnings & Path Correction
[integration/csit.git] / tests / sdc / nightly / test1.robot
1 *** Settings ***
2 Library           Collections
3 Library           OperatingSystem
4 Library           RequestsLibrary
5 Library           json
6
7 *** Test Cases ***
8 Get Requests health check ok
9     [Tags]    get
10     CreateSession    sdc-fe    ${SDC_FE_PROTOCOL}://localhost:${SDC_FE_PORT}
11     ${headers}=    Create Dictionary    Accept=application/json    Content-Type=application/json
12     ${resp}=    Get Request    sdc-fe    /sdc1/rest/healthCheck    headers=&{headers}
13     Should Be Equal As Strings    ${resp.status_code}    200
14     @{ITEMS}=    Copy List    ${resp.json()['componentsInfo']}
15     FOR    ${ELEMENT}    IN    @{ITEMS}
16         Log    ${ELEMENT['healthCheckComponent']} ${ELEMENT['healthCheckStatus']}
17     END