Commit Graph

59 Commits (f45d8eae660bb4c3311ba3baa53d6a3f390dd72b)

Author SHA1 Message Date
Alex Willmer dfc7b85504 testlib: Wait for sshd before running tests
On Ubuntu 17.10 something (probably Docker) appears to be accepting
connections, before sshd is fully ready. This results in a race
condition, and hence connection errors for the first few tests (2-3 on
my laptop).

testlib.wait_for_port() checks not only that the port can be connected
to, but also something resembling the sshd banner is sent.

Fixes #51
7 years ago
David Wilson 17a05dc14f Try to be compatible with older Docker daemons; (hopefully) closes #46 7 years ago
David Wilson dfe68b33d6 Handle docker running on localhost. 7 years ago
David Wilson bc801bc2ed Allow call_function_test to succeed depite testlib import. 7 years ago
David Wilson bcae62c682 issue #20: TestCase subclass with a nicer assertRaises 7 years ago
David Wilson 3a0f03183c Simple working fakessh_test. 7 years ago
David Wilson e2d3ac9b6a Fixup some more tests. 7 years ago
David Wilson b51e41edb5 Working DockerMixin for tests. 7 years ago
David Wilson e7ff6259a3 Initial commit. 7 years ago