Top Description Fields Constructors Methods
org.eclipse.jgit.junit.ssh

public abstract Class SshTestBase

extends SshBasicTestBase
Class Inheritance
Static Imports
java.nio.charset.StandardCharsets.UTF_8, org.junit.Assert.assertArrayEquals, .Assert.assertEquals, .Assert.assertFalse, .Assert.assertNotNull, .Assert.assertThrows, .Assert.assertTrue, .Assume.assumeTrue

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.

Field Summary

Modifier and TypeField and Description
public static String[]
Inherited from org.eclipse.jgit.junit.ssh.SshBasicTestBase:
defaultCloneDir

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
checkKnownHostsModifiedHostKey(File backup, File newFile, String wrongKey)

private boolean
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
Inherited from org.eclipse.jgit.junit.ssh.SshBasicTestBase:
setUptestSshCloneWithConfigtestSshFetchWithConfig

Field Detail

KEY_RESOURCESback to summary
public static String[] KEY_RESOURCES
Annotations
@DataPoints

Constructor Detail

SshTestBaseback to summary
public SshTestBase()

Method Detail

checkKnownHostsModifiedHostKeyback to summary
private void checkKnownHostsModifiedHostKey(File backup, File newFile, String wrongKey) throws IOException
isJschback to summary
private boolean isJsch()
testEcDsaHostKeyback to summary
public void testEcDsaHostKey() throws Exception
Annotations
@Test
testKeyboardInteractiveAuthback to summary
public void testKeyboardInteractiveAuth() throws Exception
Annotations
@Test
testKeyboardInteractiveAuthCorrectPasswordTooLateback to summary
public void testKeyboardInteractiveAuthCorrectPasswordTooLate() throws Exception
Annotations
@Test
expected:TransportException
testKeyboardInteractiveAuthNoPasswordback to summary
public void testKeyboardInteractiveAuthNoPassword() throws Exception
Annotations
@Test
expected:TransportException
testKeyboardInteractiveAuthSeveralTimesback to summary
public void testKeyboardInteractiveAuthSeveralTimes() throws Exception
Annotations
@Test
testKeyboardInteractiveAuthWrongPasswordback to summary
public void testKeyboardInteractiveAuthWrongPassword() throws Exception
Annotations
@Test
expected:TransportException
testPasswordAuthback to summary
public void testPasswordAuth() throws Exception
Annotations
@Test
testPasswordAuthCorrectPasswordTooLateback to summary
public void testPasswordAuthCorrectPasswordTooLate() throws Exception
Annotations
@Test
expected:TransportException
testPasswordAuthNoPasswordback to summary
public void testPasswordAuthNoPassword() throws Exception
Annotations
@Test
expected:TransportException
testPasswordAuthSeveralTimesback to summary
public void testPasswordAuthSeveralTimes() throws Exception
Annotations
@Test
testPasswordAuthWrongPasswordback to summary
public void testPasswordAuthWrongPassword() throws Exception
Annotations
@Test
expected:TransportException
testRsaHostKeySecondback to summary
public void testRsaHostKeySecond() throws Exception
Annotations
@Test
testSftpCloneWithConfigAndPushback to summary
public void testSftpCloneWithConfigAndPush() throws Exception
Annotations
@Test
testSftpWithConfigback to summary
public void testSftpWithConfig() throws Exception
Annotations
@Test
testSingleCommandback to summary
public void testSingleCommand() throws Exception
Annotations
@Test
testSingleCommandWithTimeoutExpiredback to summary
public void testSingleCommandWithTimeoutExpired() throws Exception
Annotations
@Test
testSshCloneWithConfigAndPushback to summary
public void testSshCloneWithConfigAndPush() throws Exception
Annotations
@Test
testSshEncryptedUsedKeyCachedback to summary
public void testSshEncryptedUsedKeyCached() throws Exception
Annotations
@Test
testSshEncryptedUsedKeySeveralPasswordback to summary
public void testSshEncryptedUsedKeySeveralPassword() throws Exception
Annotations
@Test
testSshEncryptedUsedKeyWrongPasswordback to summary
public void testSshEncryptedUsedKeyWrongPassword() throws Exception
Annotations
@Test
expected:TransportException
testSshKeysback to summary
public void testSshKeys(String keyName) throws Exception
Annotations
@Theory
testSshModifiedHostKeyAllowback to summary
public void testSshModifiedHostKeyAllow() throws Exception
Annotations
@Test
testSshModifiedHostKeyAskback to summary
public void testSshModifiedHostKeyAsk() throws Exception
Annotations
@Test
testSshModifiedHostKeyDenyback to summary
public void testSshModifiedHostKeyDeny() throws Exception
Annotations
@Test
expected:TransportException
testSshModifiedHostKeyWithProviderDenyback to summary
public void testSshModifiedHostKeyWithProviderDeny() throws Exception
Annotations
@Test
expected:TransportException
testSshWithAliasInConfigback to summary
public void testSshWithAliasInConfig() throws Exception
Annotations
@Test
testSshWithConfigEncryptedUnusedKeyback to summary
public void testSshWithConfigEncryptedUnusedKey() throws Exception
Annotations
@Test
testSshWithConfigEncryptedUnusedKeyInConfigFirstback to summary
public void testSshWithConfigEncryptedUnusedKeyInConfigFirst() throws Exception
Annotations
@Test
testSshWithConfigEncryptedUnusedKeyInConfigLastback to summary
public void testSshWithConfigEncryptedUnusedKeyInConfigLast() throws Exception
Annotations
@Test
testSshWithConfigWrongKeyback to summary
public void testSshWithConfigWrongKey() throws Exception
Annotations
@Test
expected:TransportException
testSshWithDefaultIdentityback to summary
public void testSshWithDefaultIdentity() throws Exception
Annotations
@Test
testSshWithGlobalIdentityback to summary
public void testSshWithGlobalIdentity() throws Exception
Annotations
@Test
testSshWithMinimalHostKeyAlgorithmsInConfigback to summary
public void testSshWithMinimalHostKeyAlgorithmsInConfig() throws Exception
Annotations
@Test
testSshWithNoMatchingAuthInConfigback to summary
public void testSshWithNoMatchingAuthInConfig() throws Exception
Annotations
@Test
expected:TransportException
testSshWithoutConfigback to summary
public void testSshWithoutConfig() throws Exception
Annotations
@Test
testSshWithoutKnownHostsback to summary
public void testSshWithoutKnownHosts() throws Exception
Annotations
@Test
expected:TransportException
testSshWithoutKnownHostsDenyback to summary
public void testSshWithoutKnownHostsDeny() throws Exception
Annotations
@Test
expected:TransportException
testSshWithoutKnownHostsWithProviderAcceptNewback to summary
public void testSshWithoutKnownHostsWithProviderAcceptNew() throws Exception
Annotations
@Test
testSshWithoutKnownHostsWithProviderAskback to summary
public void testSshWithoutKnownHostsWithProviderAsk() throws Exception
Annotations
@Test
testSshWithUnknownAuthInConfigback to summary
public void testSshWithUnknownAuthInConfig() throws Exception
Annotations
@Test
testSshWithUnknownCiphersInConfigback to summary
public void testSshWithUnknownCiphersInConfig() throws Exception
Annotations
@Test
testSshWithUnknownHostKeyAlgorithmsInConfigback to summary
public void testSshWithUnknownHostKeyAlgorithmsInConfig() throws Exception
Annotations
@Test
testSshWithUnknownKexAlgorithmsInConfigback to summary
public void testSshWithUnknownKexAlgorithmsInConfig() throws Exception
Annotations
@Test
testSshWithWrongPortInConfigback to summary
public void testSshWithWrongPortInConfig() throws Exception
Annotations
@Test
testSshWithWrongUserNameInConfigback to summary
public void testSshWithWrongUserNameInConfig() throws Exception
Annotations
@Test