David Wilson
af6812b458
Fix context naming for sudo and via=.
2018-03-19 21:35:37 +05:45
David Wilson
1449c972eb
Allow running responder_test with unittest.
2018-03-19 21:35:36 +05:45
David Wilson
849ccebe04
receiver: only permit one notify callback
...
There is no point spamming a list for every function call, there is no
use case where multiple notify callbacks would be useful.
2018-03-19 21:35:36 +05:45
David Wilson
bcae62c682
issue #20 : TestCase subclass with a nicer assertRaises
2018-03-19 21:35:36 +05:45
David Wilson
f869e088f8
issue #20 : tests and fixes for mitogen.master.Select().
2018-03-19 21:35:36 +05:45
David Wilson
ced6d8e404
Fix up importer_test.
2018-03-19 21:35:36 +05:45
David Wilson
40e2e6eb4c
Add README.md to tests subdir.
2018-03-19 21:35:36 +05:45
David Wilson
2fed3613e9
Syntax error.
2018-03-19 21:35:36 +05:45
Alex Willmer
d706b7d6b8
Update lingering references to with_broker & run_with_broker
...
A previous commit renamed run_with_broker() and with_broker() to
run_with_router() and with_router() respctively. Some references were
missed.
2018-03-19 21:35:36 +05:45
David Wilson
1510b72a25
fakessh: Add integration test for inter-child rsync.
2018-03-19 21:35:35 +05:45
David Wilson
f01e457d70
Allow running without py.test.
2018-03-19 21:35:35 +05:45
David Wilson
750e9fab24
Make log_to_file accept string level rather than logging package constant
...
Saves an import, pain in the ass to type all the time.
2018-03-19 21:35:35 +05:45
David Wilson
1411790f56
master: make write_all() handle O_NONBLOCK and deadlines.
2018-03-19 21:35:35 +05:45
David Wilson
db225638f0
core: Make iter_read() handle deadline (and non-blocking IO) properly
2018-03-19 21:35:35 +05:45
David Wilson
3c8c1f71a6
Update test.
2018-03-19 21:35:35 +05:45
David Wilson
5dff221842
fakessh: cleanup master test.
2018-03-19 21:35:35 +05:45
David Wilson
c67119501b
Keep allocate_id() in the enhanced router class.
2018-03-19 21:35:35 +05:45
David Wilson
4720eb1c55
core: add ALLOCATE_ID message for fakessh.
2018-03-19 21:35:35 +05:45
David Wilson
502266f115
Fix Channel constructor and add simple test; closes #32
2018-03-19 21:35:35 +05:45
David Wilson
3a0f03183c
Simple working fakessh_test.
2018-03-19 21:35:35 +05:45
David Wilson
498f961488
Fix up a few more ssh_tests, stop sending 400 modules over network.
...
Defining functions in the current module was causing the entirety of
py.test and all dependencies to be sucked in.
2018-03-19 21:35:35 +05:45
David Wilson
f04a503caa
Add rsync and git to build_docker_image too.
2018-03-19 21:35:35 +05:45
David Wilson
e2d3ac9b6a
Fixup some more tests.
2018-03-19 21:35:35 +05:45
David Wilson
2736592c79
First handful of functional tests for SSH against Docker.
2018-03-19 21:35:34 +05:45
David Wilson
91ff12f8d8
Import Docker build script for integration tests
2018-03-19 21:35:17 +05:45
David Wilson
b51e41edb5
Working DockerMixin for tests.
2018-03-19 21:35:17 +05:45
David Wilson
1f99dcb435
fix unbelievably dumb variable shadowing
2018-03-19 21:35:17 +05:45
David Wilson
25e4724bac
A few more mitogen.slave/master changes
2018-03-19 21:35:17 +05:45
David Wilson
bdf4fcfbce
Tidy up test.
2018-03-19 21:35:17 +05:45
David Wilson
be9e55fe8c
pickle: support Context(), use same unpickler everywhere.
...
* Support passing Context() objects in function calls and return values.
Now the fakessh demo from the documentation index would work
correctly.
* Since slaves can communicate with each other now, they should also use
the same approach to unpickling as the master already used. Collapse
away all the unpickle extension crap and hard-wire just the 3 types
that support unpickling.
2018-03-19 21:35:17 +05:45
David Wilson
92ae866271
Import random old test scripts into tests/ dir.
2018-03-19 21:35:17 +05:45
David Wilson
996d847731
Add some broken tests
2018-03-19 21:35:17 +05:45
David Wilson
e75f1d8579
Add call_function_test, fix various exception bugs.
2018-03-19 21:35:17 +05:45
David Wilson
e7ff6259a3
Initial commit.
2018-03-19 21:35:13 +05:45