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 <jbehran@cisco.com>
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.