summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2018-05-10 13:50:33 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2018-05-10 14:06:37 -0700
commit09edd9425c58c7482c1d93b8d35648ac71a22419 (patch)
treec434f53c6481a97764db4f6b3cdc556822f59fec
parenta66714ebceaec20c429c0db8060ef84152e82de2 (diff)
Adding SMS health check
Adding health check for SMS. Tested on windriver lab. HTTPS with verification of Servercertificate is not enabled as it needs the latest robotframework-requests library. We are currently on 0.4.5. We need 0.4.7. Issue-ID: AAF-272 Change-Id: I8448c31666ae664a1966e52349d862b695b7f732 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
-rw-r--r--robot/resources/sms_interface.robot26
-rw-r--r--robot/testsuites/health-check.robot5
2 files changed, 31 insertions, 0 deletions
diff --git a/robot/resources/sms_interface.robot b/robot/resources/sms_interface.robot
new file mode 100644
index 00000000..dd2cabeb
--- /dev/null
+++ b/robot/resources/sms_interface.robot
@@ -0,0 +1,26 @@
+*** Settings ***
+Documentation The main interface for interacting with SMS.
+Library RequestsClientCert
+Library RequestsLibrary
+Library UUID
+
+Resource global_properties.robot
+
+*** Variables ***
+${SMS_HEALTH_CHECK_PATH} /v1/sms/healthcheck
+${SMS_ENDPOINT} ${GLOBAL_SMS_SERVER_PROTOCOL}://${GLOBAL_SMS_SERVER_NAME}:${GLOBAL_SMS_SERVER_PORT}
+
+*** Keywords ***
+Run SMS Health Check
+ [Documentation] Runs SMS Health check
+ ${resp}= Run SMS Get Request ${SMS_HEALTH_CHECK_PATH}
+ Should Be Equal As Strings ${resp.status_code} 200
+
+Run SMS Get Request
+ [Documentation] Runs SMS Get request
+ [Arguments] ${data_path}
+ ${session}= Create Session smssession ${SMS_ENDPOINT}
+ ${resp}= Get Request smssession ${data_path}
+ Should Be Equal As Integers ${resp.status_code} 200
+ Log Received response from SMS ${resp.text}
+ [Return] ${resp} \ No newline at end of file
diff --git a/robot/testsuites/health-check.robot b/robot/testsuites/health-check.robot
index af3b4da6..5f7cf7b8 100644
--- a/robot/testsuites/health-check.robot
+++ b/robot/testsuites/health-check.robot
@@ -24,6 +24,7 @@ Resource ../resources/cli_interface.robot
Resource ../resources/vnfsdk_interface.robot
Resource ../resources/log_interface.robot
Resource ../resources/oof_interface.robot
+Resource ../resources/sms_interface.robot
*** Test Cases ***
@@ -107,6 +108,10 @@ Basic Portal Health Check
[Tags] health core
Run Portal Health Check
+Basic SMS Health Check
+ [Tags] health core
+ Run SMS Health Check
+
Basic SDC Health Check
[Tags] health core
Run ASDC Health Check