From: Jozef Behran Date: Mon, 30 Nov 2015 11:59:02 +0000 (+0100) Subject: Added Karaf console connection timeout configurability X-Git-Tag: release/lithium-sr3~6 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=b7213f5f60b3301e2aca9587c8466f87bde30d8d;hp=02425fdb2b5b96915ab9eb5a7048f6b6b45cb443;p=integration%2Ftest.git Added Karaf console connection timeout configurability The default is 10 seconds which may be too short for some suites, for example the scaling suite needs a massive timeout due to the memory leak bugs that cause massive garbage collection pauses especially when multiple scaling test suites are invoked in a row. This change adds a keyword which allows these affected suites to specify a different timeout that better suits them. Change-Id: I4532f4d108999aa34a2a8dce3221b4c24e4e08cf Signed-off-by: Jozef Behran --- diff --git a/csit/libraries/KarafKeywords.robot b/csit/libraries/KarafKeywords.robot index 87f2f05818..9b58d5d32f 100644 --- a/csit/libraries/KarafKeywords.robot +++ b/csit/libraries/KarafKeywords.robot @@ -116,6 +116,14 @@ Open Controller Karaf Console On Background BuiltIn.Set Suite Variable ${KarafKeywords__karaf_connection_index} ${karaf_connection.index} Restore Current SSH Connection From Index ${current_ssh_connection.index} +Configure Timeout For Karaf Console + [Arguments] ${timeout} + [Documentation] Configure a different timeout for the Karaf console + BuiltIn.Run Keyword If ${KarafKeywords__karaf_connection_index} == -1 Fail Need to connect to a Karaf Console first + ${current_connection_index}= SSHLibrary.Switch Connection ${KarafKeywords__karaf_connection_index} + SSHLibrary.Set_Client_Configuration timeout=${timeout} + Restore Current SSH Connection From Index ${current_connection_index} + Execute Controller Karaf Command On Background [Arguments] ${command} [Documentation] Send command to karaf without affecting current SSH connection. Read, log and return response.