aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorEric Debeau <eric.debeau@orange.com>2018-04-24 20:41:02 +0000
committerEric Debeau <eric.debeau@orange.com>2018-04-24 20:43:32 +0000
commitca1b9c88d822c0f1051953dc0a1aca4fc0e55aa3 (patch)
tree5c3c6fb2c70fddbacc1da2c516cb08c0fc209e7f /robot/resources
parent9045a1ef6640ccbf752e526d2a132307aa5f1a9c (diff)
Decompose OOF HealthCheck in 2: SNIRO and Homing
Create HealthCheck for SNIRO Create HealthCheck for Homing service Change-Id: Id2ba8d04500234b88f0facd7afdf8e683f059f06 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.robot36
1 files changed, 26 insertions, 10 deletions
diff --git a/robot/resources/oof_interface.robot b/robot/resources/oof_interface.robot
index 7a061ecd..fc595261 100644
--- a/robot/resources/oof_interface.robot
+++ b/robot/resources/oof_interface.robot
@@ -1,25 +1,41 @@
*** Settings ***
-Documentation The main interface for interacting with OOF
+Documentation The main interface for interacting with OOF: SNIRO and Homing Service
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}
+${OOF_HOMING_HEALTH_CHECK_PATH} /v1/plans/healthcheck
+${OOF_SNIRO_HEALTH_CHECK_PATH} /api/oof/v1/healthcheck
+${OOF_HOMING_ENDPOINT} ${GLOBAL_OOF_SERVER_PROTOCOL}://${GLOBAL_INJECTED_OOF_IP_ADDR}:${GLOBAL_OOF_HOMING_SERVER_PORT}
+${OOF_SNIRO_ENDPOINT} ${GLOBAL_OOF_SERVER_PROTOCOL}://${GLOBAL_INJECTED_OOF_IP_ADDR}:${GLOBAL_OOF_SNIRO_SERVER_PORT}
*** Keywords ***
-Run OOF Health Check
- [Documentation] Runs OOF Health check
- ${resp}= Run OOF Get Request ${OOF_HEALTH_CHECK_PATH}
+Run OOF-Homing Health Check
+ [Documentation] Runs OOF-Homing Health check
+ ${resp}= Run OOF-Homing Get Request ${OOF_HOMING_HEALTH_CHECK_PATH}
Should Be Equal As Integers ${resp.status_code} 200
-Run OOF Get Request
- [Documentation] Runs OOF Get request
+Run OOF-Homing Get Request
+ [Documentation] Runs OOF-Homing Get request
[Arguments] ${data_path}
- ${session}= Create Session session ${OOF_ENDPOINT}
+ ${session}= Create Session session ${OOF_HOMING_ENDPOINT}
${resp}= Get Request session ${data_path}
Should Be Equal As Integers ${resp.status_code} 200
- Log Received response from OOF ${resp.text}
+ Log Received response from OOF-Homing ${resp.text}
+ [Return] ${resp}
+
+Run OOF-SNIRO Health Check
+ [Documentation] Runs OOF-SNIRO Health check
+ ${resp}= Run OOF-SNIRO Get Request ${OOF_SNIRO_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run OOF-SNIRO Get Request
+ [Documentation] Runs OOF-SNIRO Get request
+ [Arguments] ${data_path}
+ ${session}= Create Session session ${OOF_SNIRO_ENDPOINT}
+ ${resp}= Get Request session ${data_path}
+ Should Be Equal As Integers ${resp.status_code} 200
+ Log Received response from OOF-SNIRO ${resp.text}
[Return] ${resp}