hub.darcs.net :: tg-z -> ssh -> changes test

A pure-Haskell SSH server library (fork of ganesh's ssh)

Fix type error in test

fr33domloverThu Mar 31 05:27:21 UTC 2016

Expose internal modules for testing

fr33domloverThu Mar 31 05:27:15 UTC 2016

Resolve name ambiguity in the tests

fr33domloverThu Mar 31 05:27:14 UTC 2016

Move the modules under the Network module

fr33domloverThu Mar 31 05:26:45 UTC 2016

Initial support for arbitrary MonadIO base monads

The SSH server has been using two monads, both being StateT over IO. One holds state for an entire session, and the other holds state for a single channel. If you wanted to pass some extra information to the monadic computations, you'd have to pass them when starting the server or use IO based storage like IORef.

This record keeps those two monads defined as StateT, but instead of wrapping IO itself, they wrap an arbitrary MonadIO instance which you can choose. That can allow much more flexibility.

Since sessions and channels run in separate threads, there are two type parameters, m and n, one for each base monad. If you set them both to IO, you get the old usual behavior.

fr33domloverSat Mar 5 22:53:35 UTC 2016

another tweak needed to keep the tests working with libcrypto too

ganeshSun Apr 5 20:05:47 UTC 2015

Fix segfault when libssh2 is linked against libgcrypt

It doesn't like the invalid RSA keys with 1s in several fields

ganeshSun Apr 5 19:57:55 UTC 2015

add QuickCheck tests of sign/verify

ganeshThu Apr 2 21:11:45 UTC 2015

avoid intermittent failure by waiting for the forked server to start

ganeshThu Apr 2 19:43:42 UTC 2015

break up auth tests

ganeshThu Apr 2 19:43:23 UTC 2015

use tasty 'resources' to manage servers

ganeshThu Apr 2 18:48:21 UTC 2015

switch to 'tasty' for the test runner

It's more modern and actively maintained

ganeshThu Apr 2 17:48:37 UTC 2015

don't print out "server listening" message in tests

ganeshThu Apr 2 17:43:40 UTC 2015

fix name of rsaKeyPair functions

ganeshThu Apr 2 06:30:35 UTC 2015

lift out some common definitions

ganeshThu Apr 2 06:14:52 UTC 2015

test that authorization fails with wrong key

ganeshThu Apr 2 05:57:41 UTC 2015

refactor a bit

ganeshThu Apr 2 05:55:50 UTC 2015

test DSA authentication

ganeshWed Apr 1 21:50:08 UTC 2015

handle non-2048 bit RSA keys

ganeshWed Apr 1 17:11:19 UTC 2015

add another test key

ganeshTue Mar 31 23:45:38 UTC 2015

embed keys folder in test exe

I would prefer to use cabal's data-files, but it doesn't seem possible to assocate that just with the test code.

ganeshTue Mar 31 21:46:13 UTC 2015

start on a basic test suite

At present the test suite doesn't work properly with 'cabal test' and must be run from the 'tests' directory inside the repository.

ganeshTue Mar 31 06:04:57 UTC 2015