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
defaultCloneDir
Fields inherited from class org.eclipse.jgit.junit.ssh.SshTestHarness
knownHosts, privateKey1, privateKey2, publicKey1, publicKey2, server, sshDir, TEST_USER, testPort
Fields inherited from class org.eclipse.jgit.junit.RepositoryTestCase
db, trash
Fields 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 void
checkKnownHostsModifiedHostKey
(File backup, File newFile, String wrongKey) private boolean
isJsch()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
testSshKeys
(String keyName) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
Methods inherited from class org.eclipse.jgit.junit.ssh.SshBasicTestBase
setUp, testSshCloneWithConfig, testSshFetchWithConfig
Methods inherited from class org.eclipse.jgit.junit.ssh.SshTestHarness
cloneWith, copyTestResource, copyTestResource, createKnownHostsFile, createSessionFactory, getSessionFactory, hasHostKey, installConfig, pushTo, pushTo, shutdownServer
Methods 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, writeTrashFiles
Methods 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
-