]> source.dussan.org Git - jgit.git/commit
Ssh tests with an Apache MINA sshd test git server 79/131879/6
authorThomas Wolf <thomas.wolf@paranor.ch>
Fri, 14 Sep 2018 20:40:08 +0000 (22:40 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 6 Nov 2018 12:17:21 +0000 (13:17 +0100)
commit08b0a8632d54a24d92075b94d0b0134b69146ba2
treec7f85adceb9529545fbfb004a6bbd6559c71dd37
parent3ec3ca0f097cb27b190a17f4fde6880c871951e0
Ssh tests with an Apache MINA sshd test git server

Add a simple ssh git server based on Apache MINA sshd, and use it
in new tests that verify ssh operations and in particular a number
of bugs that had cropped up over time in JSch.

The git server supports fetching only, and sftp access.

The tests are all in an abstract base class; the concrete JschSshTest
class only provides ssh-specific test setup. So the same tests could
be run easily also with some other ssh client.

Bug: 520927
Change-Id: Ide6687b717fb497a29fc83f22b07390a26dfce1d
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
16 files changed:
WORKSPACE
lib/BUILD
org.eclipse.jgit.junit/BUILD
org.eclipse.jgit.junit/META-INF/MANIFEST.MF
org.eclipse.jgit.junit/pom.xml
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/ssh/SshTestGitServer.java [new file with mode: 0644]
org.eclipse.jgit.test/BUILD
org.eclipse.jgit.test/META-INF/MANIFEST.MF
org.eclipse.jgit.test/pom.xml
org.eclipse.jgit.test/tests.bzl
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/transport/id_dsa_test [new file with mode: 0644]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/transport/id_dsa_test.pub [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/JSchSshTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/OpenSshConfigTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/SshTestBase.java [new file with mode: 0644]
pom.xml