Package org.eclipse.jgit.junit.ssh
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 org.eclipse.jgit.junit.ssh.SshTestHarness
SshTestHarness.LogEntry, SshTestHarness.TestCredentialsProvider -
Field Summary
FieldsFields inherited from class org.eclipse.jgit.junit.ssh.SshBasicTestBase
defaultCloneDirFields inherited from class org.eclipse.jgit.junit.ssh.SshTestHarness
knownHosts, privateKey1, privateKey2, publicKey1, publicKey2, server, sshDir, TEST_USER, testPortFields inherited from class org.eclipse.jgit.junit.RepositoryTestCase
db, trashFields inherited from class org.eclipse.jgit.junit.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 org.eclipse.jgit.junit.ssh.SshBasicTestBase
setUp, testSshCloneWithConfig, testSshFetchWithConfigMethods inherited from class org.eclipse.jgit.junit.ssh.SshTestHarness
cloneWith, copyTestResource, copyTestResource, createKnownHostsFile, createSessionFactory, getSessionFactory, hasHostKey, installConfig, pushTo, pushTo, shutdownServerMethods inherited from class org.eclipse.jgit.junit.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 org.eclipse.jgit.junit.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
- Throws:
Exception
-
testSingleCommand
- Throws:
Exception
-
testSingleCommandWithTimeoutExpired
- Throws:
Exception
-
testSshWithGlobalIdentity
- Throws:
Exception
-
testSshWithDefaultIdentity
- Throws:
Exception
-
testSshWithConfigEncryptedUnusedKey
- Throws:
Exception
-
testSshWithConfigEncryptedUnusedKeyInConfigLast
- Throws:
Exception
-
isJsch
private boolean isJsch() -
testSshWithConfigEncryptedUnusedKeyInConfigFirst
- Throws:
Exception
-
testSshEncryptedUsedKeyCached
- Throws:
Exception
-
testSshEncryptedUsedKeyWrongPassword
- Throws:
Exception
-
testSshEncryptedUsedKeySeveralPassword
- Throws:
Exception
-
testSshWithoutKnownHosts
- Throws:
Exception
-
testSshWithoutKnownHostsWithProviderAsk
- Throws:
Exception
-
testSshWithoutKnownHostsWithProviderAcceptNew
- Throws:
Exception
-
testSshWithoutKnownHostsDeny
- Throws:
Exception
-
testSshModifiedHostKeyDeny
- Throws:
Exception
-
testSshModifiedHostKeyWithProviderDeny
- Throws:
Exception
-
checkKnownHostsModifiedHostKey
private void checkKnownHostsModifiedHostKey(File backup, File newFile, String wrongKey) throws IOException - Throws:
IOException
-
testSshModifiedHostKeyAllow
- Throws:
Exception
-
testSshModifiedHostKeyAsk
- Throws:
Exception
-
testSshCloneWithConfigAndPush
- Throws:
Exception
-
testSftpWithConfig
- Throws:
Exception
-
testSftpCloneWithConfigAndPush
- Throws:
Exception
-
testSshWithConfigWrongKey
- Throws:
Exception
-
testSshWithWrongUserNameInConfig
- Throws:
Exception
-
testSshWithWrongPortInConfig
- Throws:
Exception
-
testSshWithAliasInConfig
- Throws:
Exception
-
testSshWithUnknownCiphersInConfig
- Throws:
Exception
-
testSshWithUnknownHostKeyAlgorithmsInConfig
- Throws:
Exception
-
testSshWithUnknownKexAlgorithmsInConfig
- Throws:
Exception
-
testSshWithMinimalHostKeyAlgorithmsInConfig
- Throws:
Exception
-
testSshWithUnknownAuthInConfig
- Throws:
Exception
-
testSshWithNoMatchingAuthInConfig
- Throws:
Exception
-
testRsaHostKeySecond
- Throws:
Exception
-
testEcDsaHostKey
- Throws:
Exception
-
testPasswordAuth
- Throws:
Exception
-
testPasswordAuthSeveralTimes
- Throws:
Exception
-
testPasswordAuthWrongPassword
- Throws:
Exception
-
testPasswordAuthNoPassword
- Throws:
Exception
-
testPasswordAuthCorrectPasswordTooLate
- Throws:
Exception
-
testKeyboardInteractiveAuth
- Throws:
Exception
-
testKeyboardInteractiveAuthSeveralTimes
- Throws:
Exception
-
testKeyboardInteractiveAuthWrongPassword
- Throws:
Exception
-
testKeyboardInteractiveAuthNoPassword
- Throws:
Exception
-
testKeyboardInteractiveAuthCorrectPasswordTooLate
- Throws:
Exception
-
testSshKeys
- Throws:
Exception
-