use of jetbrains.buildServer.agent.vcs.AgentCheckoutAbility in project teamcity-git by JetBrains.
the class AutoCheckoutTest method include_rule_with_mapping_is_used_without_sparse_checkout.
public void include_rule_with_mapping_is_used_without_sparse_checkout() throws IOException, VcsException {
myVcsSupport = vcsSupportWithFakeGitOfVersion(GIT_WITH_SPARSE_CHECKOUT);
VcsRoot vcsRoot = vcsRootWithAgentGitPath();
AgentRunningBuild build = runningBuild().sharedConfigParams(PluginConfigImpl.USE_SPARSE_CHECKOUT, "false").addRootEntry(vcsRoot, "+:a/b/c => d").build();
AgentCheckoutAbility canCheckout = myVcsSupport.canCheckout(vcsRoot, new CheckoutRules("+:a/b/c => d"), build);
then(canCheckout.getCanNotCheckoutReason().getType()).isEqualTo(AgentCanNotCheckoutReason.NOT_SUPPORTED_CHECKOUT_RULES);
then(canCheckout.getCanNotCheckoutReason().getDetails()).contains("Unsupported rules for agent-side checkout: +:a/b/c => d");
}
Aggregations