java.lang.Object
org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
org.eclipse.jgit.junit.RepositoryTestCase
org.eclipse.jgit.junit.ssh.SshTestHarness
org.eclipse.jgit.junit.ssh.SshBasicTestBase
org.eclipse.jgit.junit.ssh.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, currentTest, LENGTH, mockSystemReader, MOD_TIME, SMUDGE, testRoot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestSshKeys(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, getRefs, 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
-
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
-
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
-