summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorEric Debeau <eric.debeau@orange.com>2018-04-24 17:22:41 +0000
committerEric Debeau <eric.debeau@orange.com>2018-04-24 18:01:22 +0000
commit9045a1ef6640ccbf752e526d2a132307aa5f1a9c (patch)
treee2117cc5433cf6174f51ab042e9800999d280438 /robot/resources
parent398dd4033740efa3878687c979d0998277c13391 (diff)
Create OOF Robot Health Check
Add tag Change-Id: I285f58ca2c99102bf67efe45b37214677ba9d861 Issue-ID: OPTFRA-219 Signed-off-by: Eric Debeau <eric.debeau@orange.com>
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/oof_interface.robot25
1 files changed, 25 insertions, 0 deletions
diff --git a/robot/resources/oof_interface.robot b/robot/resources/oof_interface.robot
new file mode 100644
index 00000000..7a061ecd
--- /dev/null
+++ b/robot/resources/oof_interface.robot
@@ -0,0 +1,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}