summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorTschaen, Brendan <ctschaen@att.com>2019-04-08 20:26:29 -0400
committerTschaen, Brendan <ctschaen@att.com>2019-04-08 20:27:33 -0400
commitb60d918caa075db806f61c682363154f46e452c5 (patch)
tree8ee86e4c99cbee8c0203ea7f40dbaa636b2bfc58 /robot/resources
parent5128e4068f3accda42f587f3bd4df409c959c4fb (diff)
Add Cassandra health check
Change-Id: Id96d487358a2dee6b5b694ad97f9228d975d727a Issue-ID: MUSIC-353 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/music/music_interface.robot16
1 files changed, 7 insertions, 9 deletions
diff --git a/robot/resources/music/music_interface.robot b/robot/resources/music/music_interface.robot
index 456e119b..67e1402b 100644
--- a/robot/resources/music/music_interface.robot
+++ b/robot/resources/music/music_interface.robot
@@ -8,6 +8,7 @@ Resource ../global_properties.robot
*** Variables ***
${MUSIC_HEALTH_CHECK_PATH} /MUSIC/rest/v2/version
+${MUSIC_CASSA_HEALTH_CHECK_PATH} /MUSIC/rest/v2/service/musicHealthCheck
${MUSIC_ENDPOINT} ${GLOBAL_MUSIC_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MUSIC_IP_ADDR}:${GLOBAL_MUSIC_SERVER_PORT}
*** Keywords ***
@@ -17,12 +18,9 @@ Run MUSIC Health Check
Should Be Equal As Strings ${resp.status_code} 200
Should Be Equal As Strings ${resp.json()['status']} SUCCESS
-Run MUSIC Get Request
- [Documentation] Runs MUSIC Get request
- [Arguments] ${data_path}
- ${session}= Create Session music ${MUSIC_ENDPOINT}
- ${uuid}= Generate UUID
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID}
- ${resp}= Get Request music ${data_path} headers=${headers}
- Log Received response from music ${resp.text}
- [Return] ${resp}
+
+Run MUSIC Cassandra Connection Check
+ [Documentation] Confirm MUSIC's connection to Cassandra in active
+ ${resp}= Run MUSIC Get Request ${MUSIC_CASSA_HEALTH_CHECK_PATH}
+ Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.json()['Cassandra']} Active