summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/dcae_interface.robot13
-rw-r--r--robot/resources/global_properties.robot5
-rw-r--r--robot/resources/prh_interface.robot24
3 files changed, 42 insertions, 0 deletions
diff --git a/robot/resources/dcae_interface.robot b/robot/resources/dcae_interface.robot
index dd804503..9b447ded 100644
--- a/robot/resources/dcae_interface.robot
+++ b/robot/resources/dcae_interface.robot
@@ -8,7 +8,10 @@ Resource global_properties.robot
*** Variables ***
${DCAE_HEALTH_CHECK_PATH} /healthcheck
+${VES_HV_HEALTH_CHECK_PATH} /health/ready
${DCAE_HEALTH_ENDPOINT} ${GLOBAL_DCAE_SERVER_PROTOCOL}://${GLOBAL_INJECTED_DCAE_IP_ADDR}:${GLOBAL_DCAE_HEALTH_SERVER_PORT}
+${VES_HV_HEALTH_ENDPOINT} ${GLOBAL_DCAE_SERVER_PROTOCOL}://${GLOBAL_DNS_VES_NAME}:${GLOBAL_HV_VES_HEALTH_SERVER_PORT}
+
*** Keywords ***
Run DCAE Health Check
@@ -22,3 +25,13 @@ Run DCAE Health Check
Log Received response code from dcae ${resp}
Log Received content from dcae ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
+
+Run VES-HV Health Check
+ [Documentation] Runs a VES-HV health check
+ Log Creating session ${VES_HV_HEALTH_ENDPOINT}
+ ${session}= Create Session hv-ves ${VES_HV_HEALTH_ENDPOINT}
+ ${uuid}= Generate UUID
+ ${resp}= Get Request hv-ves ${VES_HV_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
diff --git a/robot/resources/global_properties.robot b/robot/resources/global_properties.robot
index 7d8db8e0..d2e62f8a 100644
--- a/robot/resources/global_properties.robot
+++ b/robot/resources/global_properties.robot
@@ -33,3 +33,8 @@ ${GLOBAL_AAI_ZONE_ID} nova1
${GLOBAL_AAI_ZONE_NAME} nova
${GLOBAL_AAI_DESIGN_TYPE} integration
${GLOBAL_AAI_ZONE_CONTEXT} labs
+${GLOBAL_HV_VES_HEALTH_SERVER_PORT} 6061
+${GLOBAL_DNS_VES_NAME} dcae-hv-ves-collector
+${GLOBAL_DNS_PRH_NAME} dcae-prh
+${GLOBAL_PRH_HEALTH_SERVER_PORT} 8100
+${GLOBAL_SERVER_PROTOCOL} http
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