use of jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl in project teamcity-git by JetBrains.
the class AgentConfigPluginTest method test_change_use_local_mirrors.
public void test_change_use_local_mirrors() throws Exception {
myBuildSharedConfigParameters.put("teamcity.git.use.local.mirrors", "true");
GitVcsRoot root = gitVcsRoot();
PluginConfigImpl config = getPluginConfig(root);
assertTrue(config.isUseLocalMirrors(root));
}
use of jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl in project teamcity-git by JetBrains.
the class AgentConfigPluginTest method build_mirror_settings_take_precedence_over_root__mirrors.
public void build_mirror_settings_take_precedence_over_root__mirrors() throws Exception {
myBuildSharedConfigParameters.put(PluginConfigImpl.USE_MIRRORS, "true");
GitVcsRoot root = gitVcsRoot(Constants.CHECKOUT_POLICY, "false");
PluginConfigImpl config = getPluginConfig(root);
assertTrue(config.isUseLocalMirrors(root));
}
use of jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl in project teamcity-git by JetBrains.
the class AgentConfigPluginTest method test_idle_timeout.
public void test_idle_timeout() throws VcsException {
myBuildSharedConfigParameters.put("teamcity.git.idle.timeout.seconds", "60");
PluginConfigImpl config = getPluginConfig();
assertEquals(60, config.getIdleTimeoutSeconds());
}
use of jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl in project teamcity-git by JetBrains.
the class AgentConfigPluginTest method when_mirrors_are_enabled_in_vcs_root_alternates_should_be_used.
public void when_mirrors_are_enabled_in_vcs_root_alternates_should_be_used() throws Exception {
GitVcsRoot root = gitVcsRoot(Constants.CHECKOUT_POLICY, "true");
PluginConfigImpl config = getPluginConfig(root);
assertTrue(config.isUseAlternates(root));
}
use of jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl in project teamcity-git by JetBrains.
the class AgentConfigPluginTest method test_default_idle_timeout.
public void test_default_idle_timeout() throws VcsException {
PluginConfigImpl config = getPluginConfig();
assertEquals(PluginConfig.DEFAULT_IDLE_TIMEOUT, config.getIdleTimeoutSeconds());
}
Aggregations