David Wilson
9d5b3d9e02
issue #477 : stop using fork in service_test.
2019-01-26 01:40:02 +00:00
David Wilson
101e1c17b1
issue #477 : stop using fork() in parent_test, compatible enumerate().
2019-01-26 01:39:07 +00:00
David Wilson
9f10695ee2
issue #477 : Popen.terminate() polyfill for Py2.4.
2019-01-26 01:38:03 +00:00
David Wilson
b7f39f26cd
issue #477 : stop using .fork() in router_test, one small 2.4 fix.
2019-01-26 01:14:37 +00:00
David Wilson
9248b6d2b6
issue #477 : old Py zlib did not include extended exception text.
2019-01-26 00:49:18 +00:00
David Wilson
b831b4ab31
issue #477 : stop using router.fork() in receiver_test
2019-01-26 00:49:02 +00:00
David Wilson
a33767d31e
issue #477 : any() polyfill for lxc_test.
2019-01-26 00:48:38 +00:00
David Wilson
3b4f184298
issue #477 : replace type(e) -> __class__ for an exception
...
Due to old style exception classes.
2019-01-26 00:48:06 +00:00
David Wilson
b985224ff6
issue #477 : old Mock does not throw side_effect exceptions from a list
2019-01-26 00:47:35 +00:00
David Wilson
6a2f88d6a3
issue #477 : make mitogen.fork unsupported on Py<2.6.
2019-01-25 23:47:08 +00:00
David Wilson
51294db52d
issue #477 : fix 2 runner tests on Ansible 2.7.
2019-01-25 16:17:29 +00:00
David Wilson
01db198122
issue #477 : fix new KwargsTest on Python 3.x.
2019-01-25 16:02:26 +00:00
David Wilson
d4897d37bb
issue #477 : ModuleFinder now returns Unicode module names.
2019-01-25 15:56:06 +00:00
David Wilson
c443244986
issue #477 : Ansible 2.3 compatible regression/all.yml.
2019-01-24 20:00:44 +00:00
David Wilson
532ae92029
issue #477 : Ansible 2.3 requires placeholder module for assert_equals
2019-01-24 19:58:42 +00:00
David Wilson
572db1a385
issue #477 : build a CentOS 5/Py2.4 container + playbook compat fixes.
2019-01-24 19:57:24 +00:00
David Wilson
0b0ae5c971
issue #477 : backport various test modules to Python 2.4.
2019-01-24 17:21:07 +00:00
David Wilson
462a8567e5
issue #477 : add all() polyfill to custom_python_detect_environmnet
2019-01-24 17:13:42 +00:00
David Wilson
e9706a4a09
issue #477 : _update_linecache() must append newlines.
2019-01-24 16:59:24 +00:00
David Wilson
19b708e141
issue #415 , #477 : Poller must handle POLLHUP too.
...
Linux will fire poll() with simply the POLLHUP bit set even though it
was not requested, resulting in an infinite loop.
2019-01-24 15:04:56 +00:00
David Wilson
97a96f5dd8
issue #477 : rename and add tests for polyfill functions.
2019-01-24 13:27:05 +00:00
David Wilson
dc01f9e47e
issue #477 : Ansible 2.3 module output format difference.
...
Don't test for keys it doesn't set.
2019-01-24 04:21:44 +00:00
David Wilson
b6062afe24
issue #477 : Ansible 2.3 cannot use when: on an include.
...
So just use our magic action module to reset the connection instead.
2019-01-24 04:21:02 +00:00
David Wilson
c1a4597e32
issue #477 : tests: use Ansible 2.3-compatible include rather than import
...
This will break with Ansible 2.8. Probably going to end up with a regex
hack for CI.
2019-01-24 04:17:07 +00:00
David Wilson
83aff538b3
issue #477 : testlib: Py2.4 did not have BaseException.
2019-01-24 03:40:59 +00:00
David Wilson
be8562ce09
issue #477 : Ansible 2.3 had stricter arg spec format.
2019-01-24 03:29:49 +00:00
David Wilson
0ee8ee78b8
issue #477 : Py2.4 cannot tolerate unicode kwargs.
2019-01-23 23:48:09 +00:00
David Wilson
4388e794ce
issue #477 : Py2.4: enumerate() may return stopped threads.
2019-01-23 21:28:50 +00:00
David Wilson
07401d767a
issue #477 : Python 2.4 type(exc) returns old-style instance.
2019-01-23 18:45:46 +00:00
David Wilson
2ead451277
issue #477 : Python 2.4 lacked str.partition.
2019-01-23 16:37:35 +00:00
David Wilson
2ec19f2374
issue #477 : Python 2.4 lacked Thread.name.
2019-01-23 16:37:22 +00:00
David Wilson
2f016b5c7b
issue #477 : Python 2.4 lacked context managers.
2019-01-23 16:37:00 +00:00
David Wilson
66b64cae2c
issue #477 : older Ansibles had no vars plugin base class.
2019-01-23 14:34:51 +00:00
David Wilson
d6945443b7
tests: add exact test for issue 251; closes #251 .
2019-01-22 02:52:42 +00:00
David Wilson
23866084d7
issue #412 : promote "mitogen_get_stack" to the main extension.
...
This is to make it easier for users to diagnose their own problems.
2019-01-22 01:42:15 +00:00
David Wilson
2ad05f1238
issue #251 , #412 , #434 : fix connection configuration brainwrong
...
This refactors connection.py to pull the two huge dict-building
functions out into new transport_transport_config.PlayContextSpec and
MitogenViaSpec classes, leaving a lot more room to breath in both files
to figure out exactly how connection configuration should work.
The changes made in 1f21a30
/ 3d58832
are updated or completely removed,
the original change was misguided, in a bid to fix connection delegation
taking variables from the wrong place when delegate_to was active.
The Python path no longer defaults to '/usr/bin/python', this does not
appear to be Ansible's normal behaviour. This has changed several times,
so it may have to change again, and it may cause breakage after release.
Connection delegation respects the c.DEFAULT_REMOTE_USER whereas the
previous version simply tried to fetch whatever was in the
'ansible_user' hostvar. Many more connection delegation variables closer
match vanilla's handling, but this still requires more work. Some of the
variables need access to the command line, and upstream are in the
process of changing all that stuff around.
2019-01-22 00:40:32 +00:00
David Wilson
8414ff21ca
issue #434 : tests: set a default remote_user in ansible.cfg.
2019-01-22 00:36:23 +00:00
David Wilson
1b8748a8d9
tests: use assert_equal in more places.
2019-01-21 20:35:08 +00:00
David Wilson
d72567b15b
tests: make assert_equal work on newer Ansibles.
2019-01-21 20:32:19 +00:00
David Wilson
8891b48080
tests: convert stack_construction.yml to assert_equal.
2019-01-21 20:29:25 +00:00
David Wilson
4256d2aa4b
tests: make fork_histogram optional
2019-01-21 20:22:31 +00:00
David Wilson
17eff064b0
tests: use assert_equal in delegate_to_template.yml.
2019-01-21 20:19:30 +00:00
David Wilson
91c9aff9ff
tests: import assert_equal action.
2019-01-21 20:19:02 +00:00
David Wilson
630c058a89
tests: rename 'delegation/' to 'connection_delegation/'
2019-01-21 19:40:39 +00:00
David Wilson
f5d9af80ef
tests: some more utility function tests + flake8.
2019-01-21 19:38:23 +00:00
David Wilson
0ba8cc7b61
tests: clean up / deduplicate Ansible inventory.
2019-01-21 19:36:57 +00:00
David Wilson
1555f23215
tests: add some more helper function tests.
2019-01-21 15:25:46 +00:00
David Wilson
9d9add3339
issue #414 : reenable test.
2019-01-21 00:21:04 +00:00
David Wilson
fcc403cc2f
core: make Receiver.to_sender() use Router.myself().
2019-01-20 22:20:29 +00:00
David Wilson
4bdf60326c
issue #424 : ansible: make put_file() raise AnsibleFileNotFound
2019-01-20 19:01:14 +00:00