Add WUKS to karaf console ssh connections 74/62374/2
authorJamo Luhrsen <jluhrsen@redhat.com>
Mon, 28 Aug 2017 18:11:53 +0000 (11:11 -0700)
committerVenkatrangan Govindarajan <venkatrangang@hcl.com>
Tue, 29 Aug 2017 15:16:26 +0000 (15:16 +0000)
sometimes the initial ssh connection to the karaf shell fails.
This will retry ~4 times over 16s which is hopefully good
enough

Change-Id: I1540b2d4f7afb501119bb30df3f7beee3a548581
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
csit/suites/unimgr/uni_operations/020_unimanager_cli.robot

index fa823b2cefda214ad2adb2cc2165fd08a853956f..d9d591ab415a42371cb035e755e8484c8ddd732b 100644 (file)
@@ -25,15 +25,15 @@ Create source and destination UNIs at the OVS instances using Restconf API
     [Documentation]    Create source and destination UNIs
     [Tags]    UniMgr UNIs Create
     ${elements}    Create List    ${Mininet1_IP}
-    Check For Elements On Karaf Command Output Message    uni-add -ip ${Mininet1_IP} -ma ${UNI1_MAC}    ${elements}
+    Wait Until Keyword Succeeds    16s    2s    Check For Elements On Karaf Command Output Message    uni-add -ip ${Mininet1_IP} -ma ${UNI1_MAC}    ${elements}
     ${elements}    Create List    ${Mininet2_IP}
-    Check For Elements On Karaf Command Output Message    uni-add -ip ${Mininet2_IP} -ma ${UNI2_MAC}    ${elements}
+    Wait Until Keyword Succeeds    16s    2s    Check For Elements On Karaf Command Output Message    uni-add -ip ${Mininet2_IP} -ma ${UNI2_MAC}    ${elements}
 
 List All UNIs
     [Documentation]    List all existing UNIs in the config data store
     [Tags]    UniMgr
     ${elements}    Create List    ${Mininet1_IP}    ${Mininet2_IP}
-    Check For Elements On Karaf Command Output Message    uni-list -c    ${elements}
+    Wait Until Keyword Succeeds    16s    2s    Check For Elements On Karaf Command Output Message    uni-list -c    ${elements}
 
 Show UNI
     [Documentation]    Show the information of the created Unis from the operational data store