Also make ping test more robust
Change-Id: I0d9d9ff3f17273f9ccdc5f50437d524751bf53ee
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
Link Down
[Documentation] Take link s1-h1 down and verify host1 goes away
Link Down
[Documentation] Take link s1-h1 down and verify host1 goes away
Write link s1 h1 down
Read Until mininet>
@{list} Create List "link-down":true
Write link s1 h1 down
Read Until mininet>
@{list} Create List "link-down":true
Link Up
[Documentation] Take link s1-h1 up and verify host1 comes back
Link Up
[Documentation] Take link s1-h1 up and verify host1 comes back
Write link s1 h1 up
Read Until mininet>
@{list} Create List "link-down":false
Write link s1 h1 up
Read Until mininet>
@{list} Create List "link-down":false
Link Down
[Documentation] Take link s1-s2 down and verify ping works
Link Down
[Documentation] Take link s1-s2 down and verify ping works
Write link s1 s2 down
Read Until mininet>
@{list} Create List ${DISCARD}
Write link s1 s2 down
Read Until mininet>
@{list} Create List ${DISCARD}
Link Up
[Documentation] Take link s1-s2 up and verify ping works
Link Up
[Documentation] Take link s1-s2 up and verify ping works
Write link s1 s2 up
Read Until mininet>
Wait Until Keyword Succeeds 10s 2s Check For Specific Number Of Elements At URI ${OPERATIONAL_NODES_API} ${FORWARD} 4
Write link s1 s2 up
Read Until mininet>
Wait Until Keyword Succeeds 10s 2s Check For Specific Number Of Elements At URI ${OPERATIONAL_NODES_API} ${FORWARD} 4
Wait Until Keyword Succeeds 10s 2s Check For Elements Not At URI ${OPERATIONAL_NODES_API} ${list}
Write h1 ping -w 1 h2
${result} Read Until mininet>
Wait Until Keyword Succeeds 10s 2s Check For Elements Not At URI ${OPERATIONAL_NODES_API} ${list}
Write h1 ping -w 1 h2
${result} Read Until mininet>
- Should Contain ${result} received, 0% packet loss
+ Should Contain ${result} 64 bytes from 10.0.0.2
Should Not Contain ${result} duplicates
Add Port
Should Not Contain ${result} duplicates
Add Port
Sleep 1
Write h1 ping -w 1 h2
${result} Read Until mininet>
Sleep 1
Write h1 ping -w 1 h2
${result} Read Until mininet>
- Should Contain ${result} received, 0% packet loss
+ Should Contain ${result} 64 bytes from 10.0.0.2
Should Not Contain ${result} duplicates
*** Keywords ***
Should Not Contain ${result} duplicates
*** Keywords ***