]> source.dussan.org Git - jgit.git/commit
[test] test OpenSshConfigFile directly, not via the JSch config 52/186452/2
authorThomas Wolf <thomas.wolf@paranor.ch>
Wed, 13 Oct 2021 20:21:52 +0000 (22:21 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Thu, 4 Nov 2021 14:54:36 +0000 (10:54 -0400)
commitc6d48ab2f8ac776eb0eb8b385a869d9c0ab9dbf8
treef3f0829b4d3436c2865208cb744eb1c5bf26ae43
parent634302d2da74226cff9f78e121ad5b8216c476e6
[test] test OpenSshConfigFile directly, not via the JSch config

This is a prerequisite for removing the JSch support bundle; otherwise
OpenSshConfigFile would be left without tests.

Copy OpenSshConfigTest from the JSch support bundle and adapt all tests
to perform the equivalent checks on OpenSshConfigFile directly. Add a
new lookupDefault() method to the SshConfigStore interface and implement
it so that it behaves the same and the tests work identically.

Change-Id: I046abd9197a8484003e77005024e5d973456f1a3
org.eclipse.jgit.test/META-INF/MANIFEST.MF
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFileTest.java [new file with mode: 0644]
org.eclipse.jgit/META-INF/MANIFEST.MF
org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFile.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/SshConfigStore.java