blob: 85a8c9e99d08755b6888c33225d95a4d12948b61 [file] [log] [blame]
Gary Wuba8f94d2017-10-23 09:51:13 -07001*** Settings ***
2Documentation The main interface for interacting with Microservice Bus.
3Library RequestsLibrary
4
5Resource global_properties.robot
6
7*** Variables ***
8${CLAMP_HEALTH_CHECK_PATH} /restservices/clds/v1/clds/healthcheck
9${CLAMP_ENDPOINT} ${GLOBAL_CLAMP_SERVER_PROTOCOL}://${GLOBAL_INJECTED_CLAMP_IP_ADDR}:${GLOBAL_CLAMP_SERVER_PORT}
10
11
12*** Keywords ***
13Run CLAMP Health Check
14 [Documentation] Runs CLAMP Health check
15 ${resp}= Run CLAMP Get Request ${CLAMP_HEALTH_CHECK_PATH}
16 Should Be Equal As Integers ${resp.status_code} 200
17
18Run CLAMP Get Request
19 [Documentation] Runs CLAMP Get request
20 [Arguments] ${data_path}
21 ${session}= Create Session session ${CLAMP_ENDPOINT}
22 ${resp}= Get Request session ${data_path}
23 Should Be Equal As Integers ${resp.status_code} 200
24 Log Received response from CLAMP ${resp.text}
25 [Return] ${resp}