summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/holmes_interface.robot28
-rw-r--r--robot/resources/openstack/keystone_interface.robot2
-rw-r--r--robot/resources/portal-sdk/portalDef.robot2
3 files changed, 30 insertions, 2 deletions
diff --git a/robot/resources/holmes_interface.robot b/robot/resources/holmes_interface.robot
new file mode 100644
index 00000000..6d30aa04
--- /dev/null
+++ b/robot/resources/holmes_interface.robot
@@ -0,0 +1,28 @@
+*** Settings ***
+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
+
+*** Keywords ***
+Run Holmes Rule Mgmt Healthcheck
+ [Documentation] Run Holmes Rule Management Health Check
+ ${resp}= Run Holmes Get Request ${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}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run Holmes Get Request
+ [Arguments] ${data_path}
+ [Documentation] Runs Holmes Get request
+ ${session}= Create Session holmes ${MSB_ENDPOINT}
+ ${resp}= Get Request holmes ${data_path}
+ Should Be Equal As Integers ${resp.status_code} 200
+ Log Received response from server ${resp.text}
+ [Return] ${resp}
diff --git a/robot/resources/openstack/keystone_interface.robot b/robot/resources/openstack/keystone_interface.robot
index f3e017ce..fa37733c 100644
--- a/robot/resources/openstack/keystone_interface.robot
+++ b/robot/resources/openstack/keystone_interface.robot
@@ -104,7 +104,7 @@ Set Openstack Credentials
Get Openstack Credentials
[Documentation] Returns the Decripted Password and openstack username using same api_key.txt as SO
- ${DECRYPTED_OPENSTACK_PASSWORD}= Run echo -n ${GLOBAL_INJECTED_OPENSTACK_API_KEY} | xxd -r -p | openssl enc -aes-128-ecb -d -nopad -nosalt -K aa3871669d893c7fb8abbcda31b88b4f | tr -d '\x08'
+ ${DECRYPTED_OPENSTACK_PASSWORD}= Run echo -n ${GLOBAL_INJECTED_OPENSTACK_API_KEY} | xxd -r -p | openssl enc -aes-128-ecb -d -nosalt -K aa3871669d893c7fb8abbcda31b88b4f | tr -d '\x08'
[Return] ${GLOBAL_INJECTED_OPENSTACK_USERNAME} ${DECRYPTED_OPENSTACK_PASSWORD}
diff --git a/robot/resources/portal-sdk/portalDef.robot b/robot/resources/portal-sdk/portalDef.robot
index b0ee9c9c..0fb9e771 100644
--- a/robot/resources/portal-sdk/portalDef.robot
+++ b/robot/resources/portal-sdk/portalDef.robot
@@ -42,7 +42,7 @@ ${GLOBAL_SELENIUM_BROWSER} chrome
${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} Create Dictionary
${GLOBAL_SELENIUM_DELAY} 0
${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT} 10
-${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} 120
+${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} 180
${GLOBAL_OPENSTACK_HEAT_SERVICE_TYPE} orchestration
${GLOBAL_OPENSTACK_CINDER_SERVICE_TYPE} volume
${GLOBAL_OPENSTACK_NOVA_SERVICE_TYPE} compute