blob: 7a061ecd0d86fbbff5cb03646056c124349a1e1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
*** Settings ***
Documentation The main interface for interacting with OOF
Library RequestsLibrary
Resource global_properties.robot
*** Variables ***
${OOF_HEALTH_CHECK_PATH} /api/oof/v1/healthcheck
${OOF_ENDPOINT} ${GLOBAL_OOF_SERVER_PROTOCOL}://${GLOBAL_INJECTED_OOF_IP_ADDR}:${GLOBAL_OOF_SERVER_PORT}
*** Keywords ***
Run OOF Health Check
[Documentation] Runs OOF Health check
${resp}= Run OOF Get Request ${OOF_HEALTH_CHECK_PATH}
Should Be Equal As Integers ${resp.status_code} 200
Run OOF Get Request
[Documentation] Runs OOF Get request
[Arguments] ${data_path}
${session}= Create Session session ${OOF_ENDPOINT}
${resp}= Get Request session ${data_path}
Should Be Equal As Integers ${resp.status_code} 200
Log Received response from OOF ${resp.text}
[Return] ${resp}
|