David Wilson
2eb3ea78d6
tests: remove a bunch of stray debug
2018-10-02 19:19:30 +01:00
David Wilson
21a7aac220
tests: import custom binaries for tests
...
Same for async tests.
2018-10-02 19:19:30 +01:00
David Wilson
dfb4930fce
tests: import custom binaries for tests
...
It means Linux<->OS X runs work fine without manual hackery.
2018-10-02 19:19:30 +01:00
David Wilson
564113874b
tests: explicitly define localhost in common-hosts
2018-10-02 19:19:30 +01:00
David Wilson
5521945bd2
ansible: temporary files take 5.
2018-10-02 19:19:30 +01:00
David Wilson
f6b74992e1
tests: fix apparently erroneous localhost delegation.
...
The stack delegates to localhost, which has ansible_python_interpreter
set.
2018-10-02 19:19:30 +01:00
David Wilson
e85760477b
tests: fix connection/_put_file.yml
...
Was statting wrong destination path, and comparing floats that don't
roundtrip serialization reliably.
2018-10-02 19:19:30 +01:00
David Wilson
638e473ff1
tests: hacksmash synchronize test to work
...
Avoid password typing idiocy.
2018-10-02 19:19:30 +01:00
dw
1a5dadf732
Merge pull request #383 from moreati/pytz-2018.05
...
Update pytz to 2018.05 (needed by babel 2.6.0)
2018-10-01 21:27:27 +01:00
Alex Willmer
03be0afeeb
tests: Add tests of mitogen.utils.cast()
2018-09-30 21:37:15 +01:00
Alex Willmer
9fbcb67665
Update pytz to 2018.05 (needed by babel 2.6.0)
...
On Ubuntu 18.04 (others not tested) installing the dev requirements
fails with the following error
babel 2.6.0 has requirement pytz>=0a, but you'll have pytz 2012d which
is incompatible.
Despite the comment in dev_requirements.txt pytz-2012d is not the most
recent version to support Python 2.6. In fact the latest release of pytz
supports Python 2.6.
2018-09-30 21:34:25 +01:00
dw
4356fdf027
Merge pull request #376 from Yannig/kubectl
...
Kubernetes connection support for mitogen.
2018-09-19 19:39:10 +01:00
Yannig Perré
6828926a36
Kubernetes connection support for mitogen.
2018-09-19 16:52:20 +02:00
Brian Candler
d1c84552ec
Use `lxc exec --mode=noninteractive` which is more widely compatible
...
Closes #371
2018-09-18 09:10:43 +01:00
David Wilson
638b196a45
ansible: fix put_file() for large temporary files.
...
Reverts 49736b3a
, large file copies can't avoid the RTT.
The parent stack must be blocked while FileService progresses, as unlike
the small file path, it does not make a snapshot of the (possibly
temporary) file passed by the action plug-in. So we need to keep that
file alive while the service runs.
Add a new integration test and a new soak test to cover both.
2018-09-10 19:09:37 +01:00
David Wilson
001b63074c
tests: fix another typo.
2018-09-10 03:18:57 +01:00
David Wilson
d5524178bf
tests: fix bonehead syntax error.
2018-09-10 02:27:19 +01:00
David Wilson
65f03e03f5
tests: remote_tmp test fixes.
2018-09-10 02:17:01 +01:00
David Wilson
5eb41751f5
tests: import missing connection_passthrough
2018-09-10 01:40:49 +01:00
David Wilson
90f89f95fb
ansible: fix exec_command() regression.
2018-09-10 01:31:15 +01:00
David Wilson
7cd4d0828d
tests: data/fakessh.py 3.x fixes.
2018-09-10 01:23:29 +01:00
David Wilson
24a44499ca
tests: verify Connection.put_file() for small/large files.
2018-09-10 00:26:14 +01:00
David Wilson
4d3873c784
core: call chains v3: abstract it into a new CallChain class.
2018-09-09 18:51:03 +01:00
David Wilson
705d77a9be
ansible: remove a bunch more aliasing from connection.py.
2018-09-08 22:31:19 +01:00
David Wilson
66142e7d75
ansible: fork isolated tasks from correct parent.
...
Closes #355 .
2018-09-08 22:17:39 +01:00
David Wilson
a3957d6aaf
parent: add Context.forget_chain().
2018-09-08 20:53:11 +01:00
David Wilson
42b1b3d286
core: support mitogen_chain dispatcher option.
2018-09-08 20:53:11 +01:00
David Wilson
e5d421e5f4
Update k3 inventory.
2018-09-08 20:53:11 +01:00
David Wilson
426cffd9f5
tests: set no_target_syslog
2018-09-08 20:53:11 +01:00
David Wilson
7d62a53264
issue #337 : ssh: disabling PTYs round 2: make it automatic.
2018-09-08 20:53:11 +01:00
David Wilson
5004207705
issue #337 : ssh: support disabling PTY allocation
...
`.ssh(batch_mode=True)`
2018-09-08 20:53:11 +01:00
David Wilson
c4c6ae88a4
parent: raise a descriptive error when openpty fails.
2018-09-08 20:53:11 +01:00
David Wilson
acf7fe56ee
tests: a few more inventory helpers.
2018-09-08 20:53:11 +01:00
David Wilson
b0ffc4e209
Copy random test setup changes out of linear2 branch.
2018-09-08 20:53:11 +01:00
David Wilson
e52684c186
tests: enable display_args_to_stdout
2018-09-08 20:53:11 +01:00
David Wilson
0a2ae4d597
tests: tidy up issue_140.yml
2018-09-08 20:53:11 +01:00
David Wilson
72fa129f8a
tests: fix clash when localhost is test-target
2018-09-08 20:53:11 +01:00
David Wilson
5bac246676
tests: make nice_stdout print failing task line number
2018-09-08 20:53:11 +01:00
David Wilson
9792b8b54f
ansible: use template-expanded delegate_to hostname in one more location.
2018-09-08 20:53:11 +01:00
David Wilson
3b012e5bce
tests: allow plugging in pprint/pprintpp via env.
2018-09-08 20:53:11 +01:00
Jesse London
3453d4d7d0
Python 3 support for classmethod call targets
...
There were two problems with detection and handling of class methods as call targets in Python 3:
* Methods no longer define `im_self` -- this is now only `__self__`
* The `types` module no longer defines a `ClassType`
The universally-compatible (v2.6+) solution was to switch to using the `inspect` module -- whose interface has been stable -- and to checking the method attribute `__self__`.
(It doesn't hurt that `inspect` checks are more brief and we now no longer need the `types` module here.)
2018-09-05 16:41:05 -05:00
David Wilson
90c2ed03d0
ansible: fix synchronize module
...
Broken by recent connection delegation fixes.
2018-08-20 15:43:56 +01:00
David Wilson
8e9b5ad576
tests: import template benchmark script.
2018-08-20 13:44:33 +01:00
David Wilson
084c0ac065
ansible: avoid roundtrip in copy action due to fixup_perms2().
...
On top of existing temporary files work, this reduces the number of
roundtrips required for "copy" and "template" actions from 6 to 3.
2018-08-20 13:28:45 +01:00
David Wilson
4098d45dac
tests: disable delegation tests on vanilla.
2018-08-20 00:21:34 +01:00
David Wilson
50e285f7ba
tests: update for identities_only change.
2018-08-19 23:17:27 +01:00
David Wilson
a4ed27fa63
tests: add playbook step to ensure key file perms.
2018-08-19 20:02:21 +01:00
David Wilson
ac9b84d237
issue #321 : 2.4+ compatibility fixes, disable test on Vanilla.
2018-08-19 19:26:54 +01:00
David Wilson
f24f02ba06
issue #321 : take remote_tmp and system_tmpdirs into account.
...
Can't simply ignore these settings as some users may have weird noexec
filesystems.
2018-08-19 18:50:53 +01:00
David Wilson
a2686b1a2c
issue #321 : simplify temp directory handling.
2018-08-19 16:00:35 +01:00