Class SshTestBase
The ssh tests. Concrete subclasses can re-use these tests by implementing the
abstract operations from
SshTestHarness. This gives a way to test
different ssh clients against a unified test suite.-
Nested Class Summary
Nested classes/interfaces inherited from class SshTestHarness
SshTestHarness.LogEntry, SshTestHarness.TestCredentialsProvider -
Field Summary
FieldsFields inherited from class SshBasicTestBase
defaultCloneDirFields inherited from class SshTestHarness
knownHosts, privateKey1, privateKey2, publicKey1, publicKey2, server, sshDir, TEST_USER, testPortFields inherited from class RepositoryTestCase
db, trashFields inherited from class LocalDiskRepositoryTestCase
ASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckKnownHostsModifiedHostKey(File backup, File newFile, String wrongKey) private booleanisJsch()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestSshKeys(String keyName) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class SshBasicTestBase
setUp, testSshCloneWithConfig, testSshFetchWithConfigMethods inherited from class SshTestHarness
cloneWith, copyTestResource, copyTestResource, createKnownHostsFile, createSessionFactory, getSessionFactory, hasHostKey, installConfig, pushTo, pushTo, shutdownServerMethods inherited from class RepositoryTestCase
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, createGitLink, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, slashify, tearDown, writeLink, writeTrashFile, writeTrashFile, writeTrashFilesMethods inherited from class LocalDiskRepositoryTestCase
addRepoToClose, createBareRepository, createRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tick, write, write
-
Field Details
-
KEY_RESOURCES
-
-
Constructor Details
-
SshTestBase
public SshTestBase()
-
-
Method Details
-
testSshWithoutConfig
-
testSingleCommand
-
testSingleCommandWithTimeoutExpired
-
testSshWithGlobalIdentity
-
testSshWithDefaultIdentity
-
testSshWithConfigEncryptedUnusedKey
-
testSshWithConfigEncryptedUnusedKeyInConfigLast
-
isJsch
private boolean isJsch() -
testSshWithConfigEncryptedUnusedKeyInConfigFirst
-
testSshEncryptedUsedKeyCached
-
testSshEncryptedUsedKeyWrongPassword
-
testSshEncryptedUsedKeySeveralPassword
-
testSshWithoutKnownHosts
-
testSshWithoutKnownHostsWithProviderAsk
-
testSshWithoutKnownHostsWithProviderAcceptNew
-
testSshWithoutKnownHostsDeny
-
testSshModifiedHostKeyDeny
-
testSshModifiedHostKeyWithProviderDeny
-
checkKnownHostsModifiedHostKey
private void checkKnownHostsModifiedHostKey(File backup, File newFile, String wrongKey) throws IOException - Throws:
IOException
-
testSshModifiedHostKeyAllow
-
testSshModifiedHostKeyAsk
-
testSshCloneWithConfigAndPush
-
testSftpWithConfig
-
testSftpCloneWithConfigAndPush
-
testSshWithConfigWrongKey
-
testSshWithWrongUserNameInConfig
-
testSshWithWrongPortInConfig
-
testSshWithAliasInConfig
-
testSshWithUnknownCiphersInConfig
-
testSshWithUnknownHostKeyAlgorithmsInConfig
-
testSshWithUnknownKexAlgorithmsInConfig
-
testSshWithMinimalHostKeyAlgorithmsInConfig
-
testSshWithUnknownAuthInConfig
-
testSshWithNoMatchingAuthInConfig
-
testRsaHostKeySecond
-
testEcDsaHostKey
-
testPasswordAuth
-
testPasswordAuthSeveralTimes
-
testPasswordAuthWrongPassword
-
testPasswordAuthNoPassword
-
testPasswordAuthCorrectPasswordTooLate
-
testKeyboardInteractiveAuth
-
testKeyboardInteractiveAuthSeveralTimes
-
testKeyboardInteractiveAuthWrongPassword
-
testKeyboardInteractiveAuthNoPassword
-
testKeyboardInteractiveAuthCorrectPasswordTooLate
-
testSshKeys
-