summaryrefslogtreecommitdiffstats
path: root/robot/resources/mr_interface.robot
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2019-03-03 09:37:54 -0500
committerBrian Freeman <bf1936@att.com>2019-03-03 09:38:05 -0500
commita8ceb692a88a4d1b987b15b0a99ed4fd9189819e (patch)
tree4840b0ebc5834d3fa191780d6dd3ed9b9bfb587a /robot/resources/mr_interface.robot
parent38bcba6ac87e6cee86d13f7c418c105ba7c8b1e4 (diff)
Fix Get File and healthMR
healthmr test case will now try to handle the first message in kafka issue with POST, GET, POST, GET for the first messgae. Also fixed reference to Get File as OperatingSystem.Get File to avoid conflicts with SSH Get File Issue-ID: INT-892 Change-Id: I4924da24842c4612b8519699d9844583bb2a1207 Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'robot/resources/mr_interface.robot')
-rw-r--r--robot/resources/mr_interface.robot6
1 files changed, 5 insertions, 1 deletions
diff --git a/robot/resources/mr_interface.robot b/robot/resources/mr_interface.robot
index 625198dc..29e9dd3e 100644
--- a/robot/resources/mr_interface.robot
+++ b/robot/resources/mr_interface.robot
@@ -23,12 +23,16 @@ Run MR Health Check
Run MR PubSub Health Check
[Documentation] Runs MR PubSub Health check
- ${resp}= Run MR Get Request ${MR_SUB_HEALTH_CHECK_PATH}
+ #${resp}= Run MR Get Request ${MR_SUB_HEALTH_CHECK_PATH}
# topic may not be created which is a 400 error
+
${resp}= Run MR Post Request ${MR_PUB_HEALTH_CHECK_PATH}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.json()} serverTimeMs Failed to Write Data
${resp}= Run MR Get Request ${MR_SUB_HEALTH_CHECK_PATH}
+ # Always Write twice to catch lost first message
+ ${resp}= Run MR Post Request ${MR_PUB_HEALTH_CHECK_PATH}
+ ${resp}= Run MR Get Request ${MR_SUB_HEALTH_CHECK_PATH}
# ${resp} is an array
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.json()[0]} timestamp Failed to Read Data