Package org.eclipse.jgit.junit.ssh
Class SshTestBase
-
public abstract class SshTestBase extends SshBasicTestBase
The ssh tests. Concrete subclasses can re-use these tests by implementing the abstract operations fromSshTestHarness
. 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
Fields Modifier and Type Field Description static String[]
KEY_RESOURCES
-
Fields 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, currentTest, LENGTH, mockSystemReader, MOD_TIME, SMUDGE
-
-
Constructor Summary
Constructors Constructor Description SshTestBase()
-
Method Summary
-
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, getRefs, 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 Detail
-
KEY_RESOURCES
public static String[] KEY_RESOURCES
-
-
Method Detail
-
testSingleCommandWithTimeoutExpired
public void testSingleCommandWithTimeoutExpired() throws Exception
- Throws:
Exception
-
testSshWithGlobalIdentity
public void testSshWithGlobalIdentity() throws Exception
- Throws:
Exception
-
testSshWithDefaultIdentity
public void testSshWithDefaultIdentity() throws Exception
- Throws:
Exception
-
testSshWithConfigEncryptedUnusedKey
public void testSshWithConfigEncryptedUnusedKey() throws Exception
- Throws:
Exception
-
testSshWithConfigEncryptedUnusedKeyInConfigLast
public void testSshWithConfigEncryptedUnusedKeyInConfigLast() throws Exception
- Throws:
Exception
-
testSshWithConfigEncryptedUnusedKeyInConfigFirst
public void testSshWithConfigEncryptedUnusedKeyInConfigFirst() throws Exception
- Throws:
Exception
-
testSshEncryptedUsedKeyCached
public void testSshEncryptedUsedKeyCached() throws Exception
- Throws:
Exception
-
testSshEncryptedUsedKeyWrongPassword
public void testSshEncryptedUsedKeyWrongPassword() throws Exception
- Throws:
Exception
-
testSshEncryptedUsedKeySeveralPassword
public void testSshEncryptedUsedKeySeveralPassword() throws Exception
- Throws:
Exception
-
testSshWithoutKnownHostsWithProviderAsk
public void testSshWithoutKnownHostsWithProviderAsk() throws Exception
- Throws:
Exception
-
testSshWithoutKnownHostsWithProviderAcceptNew
public void testSshWithoutKnownHostsWithProviderAcceptNew() throws Exception
- Throws:
Exception
-
testSshWithoutKnownHostsDeny
public void testSshWithoutKnownHostsDeny() throws Exception
- Throws:
Exception
-
testSshModifiedHostKeyDeny
public void testSshModifiedHostKeyDeny() throws Exception
- Throws:
Exception
-
testSshModifiedHostKeyWithProviderDeny
public void testSshModifiedHostKeyWithProviderDeny() throws Exception
- Throws:
Exception
-
testSshModifiedHostKeyAllow
public void testSshModifiedHostKeyAllow() throws Exception
- Throws:
Exception
-
testSshModifiedHostKeyAsk
public void testSshModifiedHostKeyAsk() throws Exception
- Throws:
Exception
-
testSshCloneWithConfigAndPush
public void testSshCloneWithConfigAndPush() throws Exception
- Throws:
Exception
-
testSftpCloneWithConfigAndPush
public void testSftpCloneWithConfigAndPush() throws Exception
- Throws:
Exception
-
testSshWithConfigWrongKey
public void testSshWithConfigWrongKey() throws Exception
- Throws:
Exception
-
testSshWithWrongUserNameInConfig
public void testSshWithWrongUserNameInConfig() throws Exception
- Throws:
Exception
-
testSshWithWrongPortInConfig
public void testSshWithWrongPortInConfig() throws Exception
- Throws:
Exception
-
testSshWithUnknownCiphersInConfig
public void testSshWithUnknownCiphersInConfig() throws Exception
- Throws:
Exception
-
testSshWithUnknownHostKeyAlgorithmsInConfig
public void testSshWithUnknownHostKeyAlgorithmsInConfig() throws Exception
- Throws:
Exception
-
testSshWithUnknownKexAlgorithmsInConfig
public void testSshWithUnknownKexAlgorithmsInConfig() throws Exception
- Throws:
Exception
-
testSshWithMinimalHostKeyAlgorithmsInConfig
public void testSshWithMinimalHostKeyAlgorithmsInConfig() throws Exception
- Throws:
Exception
-
testSshWithUnknownAuthInConfig
public void testSshWithUnknownAuthInConfig() throws Exception
- Throws:
Exception
-
testSshWithNoMatchingAuthInConfig
public void testSshWithNoMatchingAuthInConfig() throws Exception
- Throws:
Exception
-
testPasswordAuthSeveralTimes
public void testPasswordAuthSeveralTimes() throws Exception
- Throws:
Exception
-
testPasswordAuthWrongPassword
public void testPasswordAuthWrongPassword() throws Exception
- Throws:
Exception
-
testPasswordAuthNoPassword
public void testPasswordAuthNoPassword() throws Exception
- Throws:
Exception
-
testPasswordAuthCorrectPasswordTooLate
public void testPasswordAuthCorrectPasswordTooLate() throws Exception
- Throws:
Exception
-
testKeyboardInteractiveAuth
public void testKeyboardInteractiveAuth() throws Exception
- Throws:
Exception
-
testKeyboardInteractiveAuthSeveralTimes
public void testKeyboardInteractiveAuthSeveralTimes() throws Exception
- Throws:
Exception
-
testKeyboardInteractiveAuthWrongPassword
public void testKeyboardInteractiveAuthWrongPassword() throws Exception
- Throws:
Exception
-
testKeyboardInteractiveAuthNoPassword
public void testKeyboardInteractiveAuthNoPassword() throws Exception
- Throws:
Exception
-
testKeyboardInteractiveAuthCorrectPasswordTooLate
public void testKeyboardInteractiveAuthCorrectPasswordTooLate() throws Exception
- Throws:
Exception
-
-