use of jetbrains.buildServer.ssh.TeamCitySshKey in project teamcity-git by JetBrains.
the class SshAuthenticationTest method ssh_git_rsa_uploaded_key.
@Test(dataProvider = "true,false")
public void ssh_git_rsa_uploaded_key(boolean nativeOperationsEnabled) throws Exception {
final File key = dataFile("keys/id_rsa");
do_ssh_test(nativeOperationsEnabled, true, "ssh://git@%s:%s/home/git/repo.git", "", new TeamCitySshKey("test_key", Files.readAllBytes(key.toPath()), false), "keys/id_rsa.pub", b -> b.withAuthMethod(AuthenticationMethod.TEAMCITY_SSH_KEY).withTeamCitySshKey("test_key"));
}
use of jetbrains.buildServer.ssh.TeamCitySshKey in project teamcity-git by JetBrains.
the class SshAuthenticationTest method ssh_git_ecdsa_native_decrypted_uploaded_key.
public void ssh_git_ecdsa_native_decrypted_uploaded_key() throws Exception {
final File key = dataFile("keys/id_ecdsa_encrypted");
do_ssh_test(true, false, "ssh://git@%s:%s/home/git/repo.git", "", new TeamCitySshKey("test_key", Files.readAllBytes(key.toPath()), true), "keys/id_ecdsa_encrypted.pub", b -> b.withAuthMethod(AuthenticationMethod.TEAMCITY_SSH_KEY).withTeamCitySshKey("test_key").withPassphrase("12345"));
}
use of jetbrains.buildServer.ssh.TeamCitySshKey in project teamcity-git by JetBrains.
the class SshAuthenticationTest method ssh_git_rsa_native_decrypted_uploaded_key.
public void ssh_git_rsa_native_decrypted_uploaded_key() throws Exception {
final File key = dataFile("keys/id_rsa_encrypted");
do_ssh_test(true, false, "ssh://git@%s:%s/home/git/repo.git", "", new TeamCitySshKey("test_key", Files.readAllBytes(key.toPath()), true), "keys/id_rsa_encrypted.pub", b -> b.withAuthMethod(AuthenticationMethod.TEAMCITY_SSH_KEY).withTeamCitySshKey("test_key").withPassphrase("12345"));
}
use of jetbrains.buildServer.ssh.TeamCitySshKey in project teamcity-git by JetBrains.
the class SshAuthenticationTest method ssh_git_ecdsa_uploaded_key.
@Test(dataProvider = "true,false")
public void ssh_git_ecdsa_uploaded_key(boolean nativeOperationsEnabled) throws Exception {
final File key = dataFile("keys/id_ecdsa");
do_ssh_test(nativeOperationsEnabled, true, "ssh://git@%s:%s/home/git/repo.git", "", new TeamCitySshKey("test_key", Files.readAllBytes(key.toPath()), false), "keys/id_ecdsa.pub", b -> b.withAuthMethod(AuthenticationMethod.TEAMCITY_SSH_KEY).withTeamCitySshKey("test_key"));
}
use of jetbrains.buildServer.ssh.TeamCitySshKey in project teamcity-git by JetBrains.
the class SshAuthenticationTest method ssh_git_rsa_encrypted_uploaded_key.
@Test(dataProvider = "true,false")
public void ssh_git_rsa_encrypted_uploaded_key(boolean nativeOperationsEnabled) throws Exception {
final File key = dataFile("keys/id_rsa_encrypted");
do_ssh_test(nativeOperationsEnabled, true, "ssh://git@%s:%s/home/git/repo.git", "", new TeamCitySshKey("test_key", Files.readAllBytes(key.toPath()), true), "keys/id_rsa_encrypted.pub", b -> b.withAuthMethod(AuthenticationMethod.TEAMCITY_SSH_KEY).withTeamCitySshKey("test_key").withPassphrase("12345"));
}
Aggregations