summaryrefslogtreecommitdiffstats
path: root/src/test/java/com/gitblit/tests/SshDaemonTest.java
diff options
context:
space:
mode:
authorFlorian Zschocke <fzs@users.noreply.github.com>2019-11-10 17:56:56 +0100
committerGitHub <noreply@github.com>2019-11-10 17:56:56 +0100
commit4d7311ba9f65869b39c4e117ab6d45f7a6eb4adc (patch)
treed5200dd4a6f58dd00155fdbbaf8cda1d92df27fd /src/test/java/com/gitblit/tests/SshDaemonTest.java
parent5784b125b676d5d19897c66144552afedc92c655 (diff)
parentbca2cd21d1798eadbeef0a055f7d5bc8df78a846 (diff)
downloadgitblit-4d7311ba9f65869b39c4e117ab6d45f7a6eb4adc.tar.gz
gitblit-4d7311ba9f65869b39c4e117ab6d45f7a6eb4adc.zip
Merge pull request #1322 from fzs/sshd_update
Update dependencies MINA to 2.0.21 and SSHD to 1.2.0 Update SSHD to fix an issue with hmac-sha2-512. This resolves problems with clients that prefer SHA-512 over SHA-256. This also updates the dependency on SLF4J to the latest version, as the updated dependency on MINA did also bring in higher SLF4J versions.
Diffstat (limited to 'src/test/java/com/gitblit/tests/SshDaemonTest.java')
-rw-r--r--src/test/java/com/gitblit/tests/SshDaemonTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/com/gitblit/tests/SshDaemonTest.java b/src/test/java/com/gitblit/tests/SshDaemonTest.java
index c5deb7d5..c7d06198 100644
--- a/src/test/java/com/gitblit/tests/SshDaemonTest.java
+++ b/src/test/java/com/gitblit/tests/SshDaemonTest.java
@@ -44,9 +44,9 @@ public class SshDaemonTest extends SshUnitTest {
@Test
public void testPublicKeyAuthentication() throws Exception {
SshClient client = getClient();
- ClientSession session = client.connect(username, "localhost", GitBlitSuite.sshPort).await().getSession();
+ ClientSession session = client.connect(username, "localhost", GitBlitSuite.sshPort).verify().getSession();
session.addPublicKeyIdentity(rwKeyPair);
- assertTrue(session.auth().await().isSuccess());
+ assertTrue(session.auth().await());
}
@Test
@@ -64,6 +64,7 @@ public class SshDaemonTest extends SshUnitTest {
// set clone restriction
RepositoryModel model = repositories().getRepositoryModel("ticgit.git");
+ assertNotNull("Could not get repository modle for ticgit.git", model);
model.accessRestriction = AccessRestrictionType.CLONE;
model.authorizationControl = AuthorizationControl.NAMED;
repositories().updateRepositoryModel(model.name, model, false);