use of jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl in project teamcity-git by JetBrains.
the class AgentConfigPluginTest method should_not_use_native_ssh_by_default.
public void should_not_use_native_ssh_by_default() throws VcsException {
PluginConfigImpl config = getPluginConfig();
assertFalse(config.isUseNativeSSH());
}
use of jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl in project teamcity-git by JetBrains.
the class AgentConfigPluginTest method test_path_to_git.
public void test_path_to_git() throws VcsException {
assertEquals("git", getPluginConfig().getPathToGit());
assertEquals("/usr/bin/git", new PluginConfigImpl(myAgentConfig, myBuild, getVcsRoot(), new GitExec("/usr/bin/git", GitVersion.MIN)).getPathToGit());
}
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__alternates.
public void build_mirror_settings_take_precedence_over_root__alternates() throws Exception {
myBuildSharedConfigParameters.put(PluginConfigImpl.USE_ALTERNATES, "true");
GitVcsRoot root = gitVcsRoot(Constants.CHECKOUT_POLICY, "false");
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 should_not_use_local_mirrors_by_default.
public void should_not_use_local_mirrors_by_default() throws Exception {
GitVcsRoot root = gitVcsRoot();
PluginConfigImpl config = getPluginConfig(root);
assertFalse(config.isUseLocalMirrors(root));
}
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_mirrors_without_alternates_can_be_used.
public void when_mirrors_are_enabled_in_vcs_root_mirrors_without_alternates_can_be_used() throws Exception {
myBuildSharedConfigParameters.put(PluginConfigImpl.VCS_ROOT_MIRRORS_STRATEGY, PluginConfigImpl.VCS_ROOT_MIRRORS_STRATEGY_MIRRORS_ONLY);
GitVcsRoot root = gitVcsRoot(Constants.CHECKOUT_POLICY, "true");
PluginConfigImpl config = getPluginConfig(root);
assertFalse(config.isUseAlternates(root));
assertTrue(config.isUseLocalMirrors(root));
}
Aggregations