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 java.io.File |
defaultCloneDir |
static java.lang.String[] |
KEY_RESOURCES |
knownHosts, privateKey1, privateKey2, publicKey1, server, sshDir, TEST_USER, testPortdb, trashASSUME_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, shutdownServerassertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFilesaddRepoToClose, createBareRepository, createRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, writepublic static java.lang.String[] KEY_RESOURCES
protected java.io.File defaultCloneDir
public void setUp()
throws java.lang.Exception
RepositoryTestCasesetUp in class SshTestHarnessjava.lang.Exceptionpublic void testSshWithoutConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithGlobalIdentity()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithDefaultIdentity()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithConfigEncryptedUnusedKey()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithConfigEncryptedUnusedKeyInConfigLast()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithConfigEncryptedUnusedKeyInConfigFirst()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshEncryptedUsedKeyCached()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshEncryptedUsedKeyWrongPassword()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshEncryptedUsedKeySeveralPassword()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithoutKnownHosts()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithoutKnownHostsWithProviderAsk()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithoutKnownHostsWithProviderAcceptNew()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithoutKnownHostsDeny()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshModifiedHostKeyDeny()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshModifiedHostKeyWithProviderDeny()
throws java.lang.Exception
java.lang.Exceptionprivate void checkKnownHostsModifiedHostKey(java.io.File backup,
java.io.File newFile,
java.lang.String wrongKey)
throws java.io.IOException
java.io.IOExceptionpublic void testSshModifiedHostKeyAllow()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshModifiedHostKeyAsk()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshCloneWithConfigAndPush()
throws java.lang.Exception
java.lang.Exceptionpublic void testSftpWithConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testSftpCloneWithConfigAndPush()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithConfigWrongKey()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithWrongUserNameInConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithWrongPortInConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithAliasInConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithUnknownCiphersInConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithUnknownHostKeyAlgorithmsInConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithUnknownKexAlgorithmsInConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithMinimalHostKeyAlgorithmsInConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithUnknownAuthInConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshWithNoMatchingAuthInConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testRsaHostKeySecond()
throws java.lang.Exception
java.lang.Exceptionpublic void testEcDsaHostKey()
throws java.lang.Exception
java.lang.Exceptionpublic void testPasswordAuth()
throws java.lang.Exception
java.lang.Exceptionpublic void testPasswordAuthSeveralTimes()
throws java.lang.Exception
java.lang.Exceptionpublic void testPasswordAuthWrongPassword()
throws java.lang.Exception
java.lang.Exceptionpublic void testPasswordAuthNoPassword()
throws java.lang.Exception
java.lang.Exceptionpublic void testPasswordAuthCorrectPasswordTooLate()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyboardInteractiveAuth()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyboardInteractiveAuthSeveralTimes()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyboardInteractiveAuthWrongPassword()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyboardInteractiveAuthNoPassword()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyboardInteractiveAuthCorrectPasswordTooLate()
throws java.lang.Exception
java.lang.Exceptionpublic void testSshKeys(java.lang.String keyName)
throws java.lang.Exception
java.lang.Exception