diff options
Diffstat (limited to 'robot/resources/holmes_interface.robot')
-rw-r--r-- | robot/resources/holmes_interface.robot | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/robot/resources/holmes_interface.robot b/robot/resources/holmes_interface.robot index 6d30aa04..73dec481 100644 --- a/robot/resources/holmes_interface.robot +++ b/robot/resources/holmes_interface.robot @@ -3,25 +3,27 @@ Library RequestsLibrary Resource global_properties.robot *** Variables *** -${MSB_ENDPOINT} ${GLOBAL_MSB_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MSB_IP_ADDR}:${GLOBAL_MSB_SERVER_PORT} ${HOLMES_RULE_HEALTH_CHECK} /api/holmes-rule-mgmt/v1/healthcheck ${HOLMES_ENGINE_HEALTH_CHECK} /api/holmes-engine-mgmt/v1/healthcheck +${HOLMES_RULE_ENDPOINT} ${GLOBAL_HOLMES_RULE_SERVER_PROTOCOL}://${GLOBAL_INJECTED_HOLMES_RULE_IP_ADDR}:${GLOBAL_HOLMES_RULE_SERVER_PORT} +${HOLMES_ENGINE_ENDPOINT} ${GLOBAL_HOLMES_ENGINE_SERVER_PROTOCOL}://${GLOBAL_INJECTED_HOLMES_ENGINE_IP_ADDR}:${GLOBAL_HOLMES_ENGINE_SERVER_PORT} + *** Keywords *** Run Holmes Rule Mgmt Healthcheck [Documentation] Run Holmes Rule Management Health Check - ${resp}= Run Holmes Get Request ${HOLMES_RULE_HEALTH_CHECK} + ${resp}= Run Holmes Get Request ${HOLMES_RULE_ENDPOINT} ${HOLMES_RULE_HEALTH_CHECK} Should Be Equal As Integers ${resp.status_code} 200 Run Holmes Engine Mgmt Healthcheck [Documentation] Run Holmes Engine Management Health Check - ${resp}= Run Holmes Get Request ${HOLMES_ENGINE_HEALTH_CHECK} + ${resp}= Run Holmes Get Request ${HOLMES_ENGINE_ENDPOINT} ${HOLMES_ENGINE_HEALTH_CHECK} Should Be Equal As Integers ${resp.status_code} 200 Run Holmes Get Request - [Arguments] ${data_path} + [Arguments] ${endpoint} ${data_path} [Documentation] Runs Holmes Get request - ${session}= Create Session holmes ${MSB_ENDPOINT} + ${session}= Create Session holmes ${endpoint} ${resp}= Get Request holmes ${data_path} Should Be Equal As Integers ${resp.status_code} 200 Log Received response from server ${resp.text} |