Polish contribution
Closes gh-4456
This commit is contained in:
@@ -243,16 +243,16 @@ public class ShellProperties {
|
|||||||
*/
|
*/
|
||||||
private Integer port = 2000;
|
private Integer port = 2000;
|
||||||
|
|
||||||
/**
|
|
||||||
* Number of milliseconds after which unused connections are closed.
|
|
||||||
*/
|
|
||||||
private Integer idleTimeout = 600000;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Number of milliseconds after user will be prompted to login again.
|
* Number of milliseconds after user will be prompted to login again.
|
||||||
*/
|
*/
|
||||||
private Integer authTimeout = 600000;
|
private Integer authTimeout = 600000;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Number of milliseconds after which unused connections are closed.
|
||||||
|
*/
|
||||||
|
private Integer idleTimeout = 600000;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void applyToCrshShellConfig(Properties config) {
|
protected void applyToCrshShellConfig(Properties config) {
|
||||||
if (this.enabled) {
|
if (this.enabled) {
|
||||||
|
|||||||
@@ -137,13 +137,13 @@ public class CrshAutoConfigurationTests {
|
|||||||
MockEnvironment env = new MockEnvironment();
|
MockEnvironment env = new MockEnvironment();
|
||||||
env.setProperty("shell.ssh.enabled", "true");
|
env.setProperty("shell.ssh.enabled", "true");
|
||||||
env.setProperty("shell.ssh.auth-timeout", "300000");
|
env.setProperty("shell.ssh.auth-timeout", "300000");
|
||||||
env.setProperty("shell.ssh.idle-timeout", "300000");
|
env.setProperty("shell.ssh.idle-timeout", "400000");
|
||||||
load(env);
|
load(env);
|
||||||
|
|
||||||
PluginLifeCycle lifeCycle = this.context.getBean(PluginLifeCycle.class);
|
PluginLifeCycle lifeCycle = this.context.getBean(PluginLifeCycle.class);
|
||||||
|
|
||||||
assertEquals("300000", lifeCycle.getConfig().getProperty("crash.ssh.auth_timeout"));
|
assertEquals("300000", lifeCycle.getConfig().getProperty("crash.ssh.auth_timeout"));
|
||||||
assertEquals("300000", lifeCycle.getConfig().getProperty("crash.ssh.idle_timeout"));
|
assertEquals("400000", lifeCycle.getConfig().getProperty("crash.ssh.idle_timeout"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void load(MockEnvironment env) {
|
private void load(MockEnvironment env) {
|
||||||
|
|||||||
Reference in New Issue
Block a user