public abstract class SshTestBase extends SshTestHarness
SshTestHarness
. This gives a way to test
different ssh clients against a unified test suite.SshTestHarness.LogEntry, SshTestHarness.TestCredentialsProvider
Modifier and Type | Field and Description |
---|---|
protected File |
defaultCloneDir |
static String[] |
KEY_RESOURCES |
knownHosts, privateKey1, privateKey2, publicKey1, publicKey2, server, sshDir, TEST_USER, testPort
db, trash
ASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE
Constructor and Description |
---|
SshTestBase() |
cloneWith, copyTestResource, copyTestResource, createKnownHostsFile, createSessionFactory, getSessionFactory, hasHostKey, installConfig, pushTo, pushTo, shutdownServer
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, createGitLink, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, slashify, tearDown, writeLink, writeTrashFile, writeTrashFile, writeTrashFiles
addRepoToClose, createBareRepository, createRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tick, write, write
public static String[] KEY_RESOURCES
protected File defaultCloneDir
public void setUp() throws Exception
RepositoryTestCase
setUp
in class SshTestHarness
Exception
public void testSingleCommandWithTimeoutExpired() throws Exception
Exception
public void testSshWithGlobalIdentity() throws Exception
Exception
public void testSshWithDefaultIdentity() throws Exception
Exception
public void testSshWithConfigEncryptedUnusedKey() throws Exception
Exception
public void testSshWithConfigEncryptedUnusedKeyInConfigLast() throws Exception
Exception
public void testSshWithConfigEncryptedUnusedKeyInConfigFirst() throws Exception
Exception
public void testSshEncryptedUsedKeyCached() throws Exception
Exception
public void testSshEncryptedUsedKeyWrongPassword() throws Exception
Exception
public void testSshEncryptedUsedKeySeveralPassword() throws Exception
Exception
public void testSshWithoutKnownHostsWithProviderAsk() throws Exception
Exception
public void testSshWithoutKnownHostsWithProviderAcceptNew() throws Exception
Exception
public void testSshWithoutKnownHostsDeny() throws Exception
Exception
public void testSshModifiedHostKeyDeny() throws Exception
Exception
public void testSshModifiedHostKeyWithProviderDeny() throws Exception
Exception
public void testSshModifiedHostKeyAllow() throws Exception
Exception
public void testSshModifiedHostKeyAsk() throws Exception
Exception
public void testSshCloneWithConfigAndPush() throws Exception
Exception
public void testSftpCloneWithConfigAndPush() throws Exception
Exception
public void testSshWithConfigWrongKey() throws Exception
Exception
public void testSshWithWrongUserNameInConfig() throws Exception
Exception
public void testSshWithWrongPortInConfig() throws Exception
Exception
public void testSshWithUnknownCiphersInConfig() throws Exception
Exception
public void testSshWithUnknownHostKeyAlgorithmsInConfig() throws Exception
Exception
public void testSshWithUnknownKexAlgorithmsInConfig() throws Exception
Exception
public void testSshWithMinimalHostKeyAlgorithmsInConfig() throws Exception
Exception
public void testSshWithUnknownAuthInConfig() throws Exception
Exception
public void testSshWithNoMatchingAuthInConfig() throws Exception
Exception
public void testPasswordAuthSeveralTimes() throws Exception
Exception
public void testPasswordAuthWrongPassword() throws Exception
Exception
public void testPasswordAuthNoPassword() throws Exception
Exception
public void testPasswordAuthCorrectPasswordTooLate() throws Exception
Exception
public void testKeyboardInteractiveAuth() throws Exception
Exception
public void testKeyboardInteractiveAuthSeveralTimes() throws Exception
Exception
public void testKeyboardInteractiveAuthWrongPassword() throws Exception
Exception
public void testKeyboardInteractiveAuthNoPassword() throws Exception
Exception
public void testKeyboardInteractiveAuthCorrectPasswordTooLate() throws Exception
Exception
Copyright © 2020 Eclipse JGit Project. All rights reserved.