blocking on arpings to gateway to pass before continuing tests
Change-Id: I97c578ba99d61b845a4be04cb100fac8e472d944
diff --git a/src/test/cord-api/Framework/utils/utils.robot b/src/test/cord-api/Framework/utils/utils.robot
index 82f3a94..2dc7f40 100644
--- a/src/test/cord-api/Framework/utils/utils.robot
+++ b/src/test/cord-api/Framework/utils/utils.robot
@@ -136,13 +136,17 @@
${conn_id}= SSHLibrary.Open Connection ${src} prompt=${prompt} timeout=${prompt_timeout}
SSHLibrary.Login ${user} ${pass}
${result}= SSHLibrary.Execute Command ping -c 5 ${dest}
- Log To Console \n ${result}
SSHLibrary.Close Connection
Log ${result}
Run Keyword If '${status}' == 'PASS' Should Contain ${result} 64 bytes
Run Keyword If '${status}' == 'PASS' Should Contain ${result} 0% packet loss
Run Keyword If '${status}' == 'PASS' Should Not Contain ${result} 100% packet loss
+ Run Keyword If '${status}' == 'PASS' Should Not Contain ${result} 80% packet loss
+ Run Keyword If '${status}' == 'PASS' Should Not Contain ${result} 60% packet loss
+ Run Keyword If '${status}' == 'PASS' Should Not Contain ${result} 40% packet loss
+ Run Keyword If '${status}' == 'PASS' Should Not Contain ${result} 20% packet loss
Run Keyword If '${status}' == 'PASS' Should Not Contain ${result} Destination Host Unreachable
Run Keyword If '${status}' == 'FAIL' Should Not Contain ${result} 64 bytes
Run Keyword If '${status}' == 'FAIL' Should Contain ${result} 100% packet loss
Run Keyword If '${status}' == 'FAIL' Should Contain ${result} Destination Host Unreachable
+ Log To Console \n ${result}
diff --git a/src/test/cord-api/Tests/Subscriber_StatusChecks.txt b/src/test/cord-api/Tests/Subscriber_StatusChecks.txt
index a7d33b3..24a24c2 100644
--- a/src/test/cord-api/Tests/Subscriber_StatusChecks.txt
+++ b/src/test/cord-api/Tests/Subscriber_StatusChecks.txt
@@ -37,8 +37,8 @@
Setup
[Documentation] Read input file and send arping requests from host/dst to their gateways
Read InputFile
- Ping Gateway ${src_ip} ${src_user} ${src_pass} ${src_gateway}
- Ping Gateway ${dst_ip} ${dst_user} ${dst_pass} ${dst_gateway}
+ Wait Until Keyword Succeeds 300s 5s Ping Gateway ${src_ip} ${src_user} ${src_pass} ${src_gateway}
+ Wait Until Keyword Succeeds 300s 5s Ping Gateway ${dst_ip} ${dst_user} ${dst_pass} ${dst_gateway}
Read InputFile
${SubscriberList}= utils.jsonToList ${PATHFILE} SubscriberInfo
@@ -98,5 +98,7 @@
Read Until [sudo] password for ${user}:
SSHLibrary.Write ${pass}
${result}= Read Until ${prompt}
+ Should Not Contain ${result} 100% unanswered
+ Should Contain ${result} 0% unanswered
Log To Console \n ${result}
SSHLibrary.Close Connection