summaryrefslogtreecommitdiffstats
path: root/robot/resources/prh_interface.robot
diff options
context:
space:
mode:
authorMariusz Wagner <mariusz.wagner@nokia.com>2018-09-25 12:35:22 +0200
committerMariusz Wagner <mariusz.wagner@nokia.com>2018-09-25 12:35:22 +0200
commit3a6ff9be81f284d23b0170231de9aa9591f7e59b (patch)
treeb217e34b5d201c16de144543832e9ce099a02e1a /robot/resources/prh_interface.robot
parentc437d7f86df29d409ab3251309895e1c89df772c (diff)
Healthcheck for PRH and HV-VES
It cover healthcheck requirments for issue INT-650 and INT-651 Issue-ID: INT-651 Change-Id: I19b90161c193a68e5e5d3f13d3cf2600bb8d8961 Signed-off-by: Mariusz Wagner <mariusz.wagner@nokia.com>
Diffstat (limited to 'robot/resources/prh_interface.robot')
-rw-r--r--robot/resources/prh_interface.robot24
1 files changed, 24 insertions, 0 deletions
diff --git a/robot/resources/prh_interface.robot b/robot/resources/prh_interface.robot
new file mode 100644
index 00000000..b7c09e8c
--- /dev/null
+++ b/robot/resources/prh_interface.robot
@@ -0,0 +1,24 @@
+*** Settings ***
+Documentation The main interface for interacting with PRH. It handles low level stuff like managing the http request library and PRH required fields
+Library RequestsLibrary
+Library UUID
+Library OperatingSystem
+Library Collections
+Resource global_properties.robot
+
+
+*** Variables ***
+${PRH_HEALTH_CHECK_PATH} /heartbeat
+${PRH_HEALTH_ENDPOINT} ${GLOBAL_SERVER_PROTOCOL}://${GLOBAL_DNS_PRH_NAME}:${GLOBAL_PRH_HEALTH_SERVER_PORT}
+
+
+*** Keywords ***
+Run PRH Health Check
+ [Documentation] Runs a PRH health check
+ Log Creating session ${PRH_HEALTH_ENDPOINT}
+ ${session}= Create Session hv-ves ${PRH_HEALTH_ENDPOINT}
+ ${uuid}= Generate UUID
+ ${resp}= Get Request hv-ves ${PRH_HEALTH_CHECK_PATH}
+ Log Received response code from hv-ves ${resp}
+ Log Received content from hv-ves ${resp.content}
+ Should Be Equal As Strings ${resp.status_code} 200