Commit Graph

1684 Commits

Author SHA1 Message Date
David Wilson d5a8293c91 issue #333: closure & data distinctness tests. 2018-10-30 21:42:26 +00:00
David Wilson 22b4b186d7 issue #333: add versioning to EpollPoller too. 2018-10-30 21:26:54 +00:00
David Wilson 73cda2994f issue #333: add versioning, initial batch of poller tests
Now poller is start enough to know a start_receive() during an iteration
does not cause events yielded by that iteration to associate with the
wrong descriptor.

These changes are tangentially related to the associated ticket, but
event versioning is still the underlying issue.
2018-10-30 21:20:33 +00:00
David Wilson 1198164ce6 docs: Changelog typos. 2018-10-30 15:24:50 +00:00
David Wilson 766dce9a59 docs: update Changelog 2018-10-30 15:02:46 +00:00
David Wilson 96f000c5ea ansible: tilde-expand SSH key before passing to SSH; closes #334. 2018-10-30 14:58:35 +00:00
David Wilson 9aa76cf9ce tests: better Docker test key comment. 2018-10-30 11:20:32 +00:00
David Wilson 9ba0561dd2 Merge remote-tracking branch 'origin/dmw'
- issue #411: fix check_host_keys="accept"
- issue #305: dead message if max message size exceeded
- issue #369: implement Connection.reset()
- issue #76: disconnect propagation
- log format string fixes
- various 2/3 test fixes
- large message benchmark
- centralize stub client utils in data/stubs/
- activate faulthandler in tests
- better OpenSSH 7.5+ permission denied handling
2018-10-30 11:13:28 +00:00
David Wilson d81698c43a docs: update Changelog. 2018-10-30 10:55:26 +00:00
David Wilson 1cbff1011e core: send dead message if max message size exceeded; closes #405 2018-10-30 10:53:54 +00:00
David Wilson 1eae594e32 ssh: fix check_host_keys="accept" and test; closes #411
Add real accept/enforce tests.
2018-10-30 10:35:45 +00:00
David Wilson cf50b572f6 docs: update ChangeLog. 2018-10-30 10:24:53 +00:00
David Wilson 16ca111ebd ssh: better OpenSSH 7.5+ permission denied handling
The user@host prefix in new-style OpenSSH messages unfortunately takes
the host part from ~/.ssh/config and friends. There is no way to know
which hostname will appear in this string without parsing the OpenSSH
config, nor which username will appear.

Instead just regex it.

Add SSH stub modes to print the new/old errors and add some simple
tests.

This extends the work done in b9112a9cbb
2018-10-30 10:20:04 +00:00
David Wilson b527ff0b66 docs: update Changelog; closes #369. 2018-10-29 19:45:43 +00:00
David Wilson 536690760d issue #369: teach CallChain to reset the connection. 2018-10-29 19:41:03 +00:00
David Wilson 33412927f5 issue #369: refactor Connection to support reset()
Now the tests pass.
2018-10-29 19:34:50 +00:00
David Wilson 9b7c958e2e issue #369: refactor ContextService to support reset(). 2018-10-29 19:30:56 +00:00
David Wilson 519faa3b3b issue #369: add Connection.reset() test. 2018-10-29 18:54:26 +00:00
David Wilson 89852db163 issue #370: add 'disconnect resets connection' test 2018-10-29 16:32:34 +00:00
David Wilson c510e58f9b issue #352: add test for disconnect message. 2018-10-29 15:59:36 +00:00
David Wilson d0f5671887 ansible: split key_from_dict() out into free function. 2018-10-29 15:27:20 +00:00
David Wilson 53d882dcbd tests: activate faulthandler if available 2018-10-29 15:25:15 +00:00
David Wilson efed9da474 docs: update Changelog. 2018-10-26 13:59:06 +01:00
David Wilson 9ec360c26d core: split out & extend Broker.sync_call() 2018-10-26 13:58:12 +01:00
David Wilson 592d6fc8d3 tests: fix CaptureStreamHandler on 2.6. 2018-10-26 13:22:33 +01:00
David Wilson 3429e57825 tests: fix target_test 3.x compat. 2018-10-26 13:04:00 +01:00
David Wilson 3585ee74f7 tests: split out ansible_tests requirements
Also remove hard-coded Ansible version, the tests don't need it, nor
does local testing most of the time
2018-10-26 12:58:08 +01:00
David Wilson 905ab890fb tests: stop idiotic Travis TTY/pip progress bar spam 2018-10-26 12:30:40 +01:00
David Wilson 0dc3f8accf ansible: fix another target.py format string. 2018-10-26 11:26:15 +01:00
David Wilson b70c57a2cb tests: fix wstatus_to_str() test on 3.x
Now they use enums.
2018-10-26 11:22:33 +01:00
David Wilson f343bbba3a unix: fix exception catch on 3.x. 2018-10-26 11:20:18 +01:00
David Wilson 0864155592 tests: pin pycparser to last 2.6-compatible version 2018-10-26 11:15:41 +01:00
David Wilson 7e04ee8af9 ansible: fix is_good_temp_dir() log format 2018-10-26 11:11:25 +01:00
David Wilson c1c7e5171d tests: fix fork FD sharing in unix_test. 2018-10-26 11:08:12 +01:00
David Wilson 0cf6019bac tests: rename one more stubs/ssh.py reference. 2018-10-26 10:55:54 +01:00
David Wilson 778892eaaa issue #76: call_function_test fix. 2018-10-26 10:54:22 +01:00
David Wilson 6451117d00 Add venvs/ to gitignore 2018-10-26 10:23:34 +01:00
David Wilson a7d635dff8 tests: import ara_env helper script. 2018-10-26 10:16:46 +01:00
David Wilson 0d04e940b7 master: docstring fixes. 2018-10-26 09:12:00 +00:00
David Wilson 8891fda48a docs: getting_started typo 2018-10-26 09:09:54 +00:00
David Wilson 4e3830d75e tests: add basic unix_test.py. 2018-10-26 10:08:06 +01:00
David Wilson 918f709420 tests: import a bunch more random unchecked in pieces. 2018-10-26 09:45:17 +01:00
David Wilson 0d70fc1324 tests: import z hostfile 2018-10-26 09:34:31 +01:00
David Wilson 36e5ca4115 tests: import missing main_with_no_exec_guard.py. 2018-10-26 09:33:28 +01:00
David Wilson 3943634fa6 tests: import bench/large_messages.py. 2018-10-26 09:32:09 +01:00
David Wilson 73055150f3 tests: move stub tools, into subdir, import docker_test. 2018-10-26 09:21:29 +01:00
David Wilson 7647c95f34 issue #76: add one more test for indirect siblings 2018-10-25 13:25:27 +01:00
David Wilson 58d0a45738 issue #76: quieten routing errors.
Receiving DEL_ROUTE without a corresponding ADD_ROUTE is now legit
behaviour, so don't print an error in this case.

Don't print an error for dropped messages if the reply_to indicates the
sender doesn't care about a response (dead and no_reply)
2018-10-24 13:04:03 +01:00
David Wilson fba52a0edf issue #76: add API for ansible_mitogen to get route list
Earlier commit moved Stream.routes attribute into a private map
belonging to RouteMonitor, to make upgrades smoother. This adds a new
accessor method to RouteMonitor.
2018-10-24 13:02:46 +01:00
David Wilson f3e19d81da docs: reorder sections 2018-10-23 23:26:12 +01:00