David Wilson
572db1a385
issue #477 : build a CentOS 5/Py2.4 container + playbook compat fixes.
6 years ago
David Wilson
0b0ae5c971
issue #477 : backport various test modules to Python 2.4.
6 years ago
David Wilson
462a8567e5
issue #477 : add all() polyfill to custom_python_detect_environmnet
6 years ago
David Wilson
e9706a4a09
issue #477 : _update_linecache() must append newlines.
6 years ago
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.
6 years ago
David Wilson
97a96f5dd8
issue #477 : rename and add tests for polyfill functions.
6 years ago
David Wilson
dc01f9e47e
issue #477 : Ansible 2.3 module output format difference.
...
Don't test for keys it doesn't set.
6 years ago
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.
6 years ago
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.
6 years ago
David Wilson
83aff538b3
issue #477 : testlib: Py2.4 did not have BaseException.
6 years ago
David Wilson
be8562ce09
issue #477 : Ansible 2.3 had stricter arg spec format.
6 years ago
David Wilson
0ee8ee78b8
issue #477 : Py2.4 cannot tolerate unicode kwargs.
6 years ago
David Wilson
4388e794ce
issue #477 : Py2.4: enumerate() may return stopped threads.
6 years ago
David Wilson
07401d767a
issue #477 : Python 2.4 type(exc) returns old-style instance.
6 years ago
David Wilson
2ead451277
issue #477 : Python 2.4 lacked str.partition.
6 years ago
David Wilson
2ec19f2374
issue #477 : Python 2.4 lacked Thread.name.
6 years ago
David Wilson
2f016b5c7b
issue #477 : Python 2.4 lacked context managers.
6 years ago
David Wilson
66b64cae2c
issue #477 : older Ansibles had no vars plugin base class.
6 years ago
David Wilson
d6945443b7
tests: add exact test for issue 251; closes #251 .
6 years ago
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.
6 years ago
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.
6 years ago
David Wilson
8414ff21ca
issue #434 : tests: set a default remote_user in ansible.cfg.
6 years ago
David Wilson
1b8748a8d9
tests: use assert_equal in more places.
6 years ago
David Wilson
d72567b15b
tests: make assert_equal work on newer Ansibles.
6 years ago
David Wilson
8891b48080
tests: convert stack_construction.yml to assert_equal.
6 years ago
David Wilson
4256d2aa4b
tests: make fork_histogram optional
6 years ago
David Wilson
17eff064b0
tests: use assert_equal in delegate_to_template.yml.
6 years ago
David Wilson
91c9aff9ff
tests: import assert_equal action.
6 years ago
David Wilson
630c058a89
tests: rename 'delegation/' to 'connection_delegation/'
6 years ago
David Wilson
f5d9af80ef
tests: some more utility function tests + flake8.
6 years ago
David Wilson
0ba8cc7b61
tests: clean up / deduplicate Ansible inventory.
6 years ago
David Wilson
1555f23215
tests: add some more helper function tests.
6 years ago
David Wilson
9d9add3339
issue #414 : reenable test.
6 years ago
David Wilson
fcc403cc2f
core: make Receiver.to_sender() use Router.myself().
6 years ago
David Wilson
4bdf60326c
issue #424 : ansible: make put_file() raise AnsibleFileNotFound
6 years ago
David Wilson
06415bb720
issue #310 : fix test failures, teach old import method new tricks
...
- don't try anything unless something really lives in sys.modules by
that name
- non-ASCII files are possible
- the unimportable thing might be an extension module, we don't want
that
6 years ago
David Wilson
6af1a64cce
master: handle crazy non-modules in sys.modules again; closes #310 .
6 years ago
David Wilson
7c33979e25
issue #415 : add IPC latency bench.
6 years ago
David Wilson
a8c056c27b
issue #436 : decode debug log lines on Python 3.
6 years ago
David Wilson
8380baf41b
issue #461 : Ansible 2.3 placeholder modules for action plug-ins.
6 years ago
David Wilson
822978520f
issue #446 : update Receiver.__iter__ to match
...
iter() previously relied on the fake dead message being enqueued.
6 years ago
David Wilson
386d869d5f
tests: fix responder_test after removing unused imports
6 years ago
David Wilson
6592598999
tests: stray socket file left during unix_test.
6 years ago
David Wilson
cce1dbf3b1
tests: quieten a bunch of spam printed during run
6 years ago
David Wilson
b0e7c1a315
tests: fix /etc/environment test on vanilla
...
Use "meta: reset_connection" to ensure /etc/environment is reloaded.
Looks like this entire feature can be ripped out!
6 years ago
David Wilson
26fdbf70e0
tests: good_load_module_size check can't be exact
...
Since message contains pathnames that vary across machines
6 years ago
David Wilson
ae03d5f4f1
issue #446 : basic tests for Receiver._on_receive().
6 years ago
David Wilson
bcd9827c3b
core: Latch.empty() improvements
...
- throw LatchError if the latch is closed.
- wrap with the lock to avoid unexpected weirdness.
6 years ago
David Wilson
388649df97
core: Receiver.close() now wakes all threads; closes #446 .
6 years ago
David Wilson
f2f41809ae
issue #459 : initial get_stats() implementation
6 years ago