X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FKarafKeywords.robot;h=1ec60c3905a8f7fe706f647914dd7acc21a15a95;hb=3fbb0e18faa83c3adc4316b6410943bc28351ab9;hp=e60a517cebc6dff2830feb32e0b4709f439e1e75;hpb=086add9c4377982ca2f141a927744ae29a6f8aa1;p=integration%2Ftest.git diff --git a/csit/libraries/KarafKeywords.robot b/csit/libraries/KarafKeywords.robot index e60a517ceb..1ec60c3905 100644 --- a/csit/libraries/KarafKeywords.robot +++ b/csit/libraries/KarafKeywords.robot @@ -19,7 +19,7 @@ Setup_Karaf_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=${http_timeout} BuiltIn.Comment First connections to Karaf console may fail, so WUKS is used. TODO: Track as a Bug. : FOR ${index} IN @{ClusterManagement__member_index_list} - \ BuiltIn.Wait_Until_Keyword_Succeeds 10x 0.2s Open_Controller_Karaf_Console_On_Background member_index=${index} + \ BuiltIn.Run_Keyword_And_Ignore_Error BuiltIn.Wait_Until_Keyword_Succeeds 3s 1s Open_Controller_Karaf_Console_On_Background member_index=${index} Verify_Feature_Is_Installed [Arguments] ${feature_name} ${controller}=${ODL_SYSTEM_IP} ${karaf_port}=${KARAF_SHELL_PORT} @@ -199,7 +199,7 @@ Wait_For_Karaf_Log # "Flexible SSH Login" keyword from the patch above (45596) was failing. BuiltIn.Log Waiting for '${message}' in karaf log SSHLibrary.Open_Connection ${ODL_SYSTEM_IP} port=${KARAF_SHELL_PORT} prompt=${KARAF_PROMPT} timeout=${timeout} - BuiltIn.Login ${KARAF_USER} ${KARAF_PASSWORD} loglevel=${loglevel} + SSHLibrary.Login ${KARAF_USER} ${KARAF_PASSWORD} loglevel=${loglevel} SSHLibrary.Write log:tail SSHLibrary.Read_Until ${message} SSHLibrary.Close_Connection @@ -208,18 +208,18 @@ Restart_Bundle [Arguments] ${bundle_id} [Documentation] Restarts bundle passed as argument. Note this operation is only for testing and not production environments # TODO: prepare this for cluster environment and multiple controllers - Safe_Issue_Command_On_Karaf_Console bundle:restart -f $(bundle:id '${bundle_id}') + Execute_Controller_Karaf_Command_With_Retry_On_Background bundle:restart -f $(bundle:id '${bundle_id}') Restart_Karaf [Documentation] Restarts Karaf and polls log to detect when Karaf is up and running again # TODO: prepare this for cluster environment and multiple controllers - Safe_Issue_Command_On_Karaf_Console log:clear - Issue_Command_On_Karaf_Console shutdown -r -f + Execute_Controller_Karaf_Command_With_Retry_On_Background log:clear + Execute_Controller_Karaf_Command_With_Retry_On_Background shutdown -r -f BuiltIn.Run_Keyword_And_Return_Status BuiltIn.Wait_Until_Keyword_Succeeds 240s 60s Wait_For_Karaf_Log Karaf started in Restart_Jetty [Documentation] Restarts jetty bundle (to reload certificates or key/truststore information) - Safe_Issue_Command_On_Karaf_Console log:clear + Execute_Controller_Karaf_Command_With_Retry_On_Background log:clear Restart_Bundle OPS4J Pax Web - Jetty Wait_For_Karaf_Log Instantiated the Application class org.opendaylight.restconf.RestconfApplication Wait_For_Karaf_Log Instantiated the Application class org.opendaylight.netconf.sal.rest.impl.RestconfApplication