add robotframework to integration tests
[clamp.git] / src / test / resources / robotframework / tests / 01_healthcheck.robot
1 *** Settings ***
2 Library     Collections
3 Library     RequestsLibrary
4 Library     OperatingSystem
5 Library     json
6 Library     OperatingSystem
7 *** Variables ***
8 ${login}                     admin
9 ${passw}                     password
10 *** Keywords ***
11 Create the sessions
12 *** Test Cases ***
13 Get Requests health check ok
14     ${port} =    Get Environment Variable   CLAMP_PORT
15     ${auth}=    Create List     ${login}    ${passw}
16     Create Session   clamp  http://localhost:${port}   auth=${auth}   disable_warnings=1
17     Set Global Variable     ${clamp_session}      clamp
18     ${resp}=    Get Request    ${clamp_session}   /restservices/clds/v1/healthcheck
19     Should Be Equal As Strings  ${resp.status_code}     200