Quick polling cycle needed to verify DPID is gone
authorJamo Luhrsen <james.luhrsen@hp.com>
Thu, 7 May 2015 21:30:25 +0000 (14:30 -0700)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 7 May 2015 23:26:27 +0000 (23:26 +0000)
-  looks like with the Lithium redesign it must be taking a
short time to remove the switch from the operational store
after the switch disconnects.  this will check every sec for
3s, at which point it will fail.

-  this fixes one failure we have in CI right now

Change-Id: Ied99db0a065caf2e0baf4b9ea98b387f76620029
Signed-off-by: Jamo Luhrsen <james.luhrsen@hp.com>
test/csit/suites/openflowplugin/Switch_Qualification/010_OpenFlow_Connection.robot

index fa03952b6406c447dd0d7f1d64d595c936b7cc0b..7c6e730b40f49fa04cc8acfb9fea3ca64584ff4b 100644 (file)
@@ -26,7 +26,7 @@ OF1.3 Connection Between Switch and Controller
     ${datapath_id_from_switch}=    Get Switch Datapath ID    ${test_switch}
     Verify Switch In Operational Data Store    ${test_switch}
     Disable OpenFlow    ${test_switch}
-    Verify Switch Not In Operational Data Store    ${test_switch}
+    Wait Until Keyword Succeeds    3s    1s    Verify Switch Not In Operational Data Store    ${test_switch}
     ##MORE CHECKS TO ADD ON SWITCH AND OPERATIONAL DATA STORE
     ##- proper OF version
     ##- proper default flow rules