Commit Graph

124 Commits

Author SHA1 Message Date
David Wilson ee2d10375d tests: don't run reset_connection tests on <2.5.6. 2018-11-05 19:51:00 +00:00
David Wilson fcdfd5f107 tests: fix disconnect_cleanup.yml target count assumption 2018-11-05 19:51:00 +00:00
David Wilson 1bb239189b tests: another attempt at working paths. 2018-11-05 17:25:59 +00:00
David Wilson 5f815ec6c4 tests: try to fix PATH problem on Travis. 2018-11-05 17:25:59 +00:00
David Wilson f5f72b958f tests: avoid -u command line parameter conflict 2018-11-05 17:25:59 +00:00
David Wilson 0c3e48468b tests: run disconnect_during_module.yml in subprocess
Avoid entire run failing with unreachable
2018-11-05 13:33:33 +00:00
David Wilson 35092c5d35 tests: Unicode/bytes fixes for integration/connection/exec_command.yml 2018-11-05 13:15:40 +00:00
David Wilson 9ad022107e issue #414: disable test until rest of CI is healthy 2018-11-05 13:00:47 +00:00
David Wilson f87553b165 tests: must set ansible_become_pass in synchronize.yml. 2018-11-05 13:00:47 +00:00
David Wilson 574fc27a9c issue #414: import test / reproduction. 2018-11-05 13:00:47 +00:00
David Wilson 5eff8ea4fb tests: make result_shell_echo_hi compare less of the timedelta; closes #361
Assuming less than one second is too much to ask from Travis.
2018-11-02 15:14:00 +00:00
David Wilson c148c869e6 issue #76, #370: add disconnect cleanup test 2018-11-01 20:04:18 +00:00
David Wilson fd326f5ad7 tests: stub tests for doas/mitogen_doas 2018-11-01 00:49:26 +00:00
David Wilson cbd4129cb9 tests: fix paramiko_unblemished.yml 2018-10-31 19:15:23 +00:00
David Wilson e8fc9e490f tests: update osa_delegate_to_self to match connection parameters 2018-10-31 19:14:58 +00:00
David Wilson 6c71c5bfef issue #369: disable reset_connection on Ansible<2.5.6
https://github.com/ansible/ansible/issues/27520
2018-10-31 18:30:03 +00:00
David Wilson 8ed72e7e7b issue #369: avoid Ansible 2.5 bug (cond_reset_warn missing method) 2018-10-31 18:18:49 +00:00
David Wilson ab4ccc6b92 issue #369: don't mass-kill all SSH clients in reconnection.yml
It breaks my new development environment :)
2018-10-31 16:43:27 +00:00
David Wilson a6dd8bb2d0 issue #409: stub test for mitogen_sudo method. 2018-10-31 16:43:27 +00:00
David Wilson 144685a327 issue #409: more lxc/lxd stub tests, let tests run on vanilla. 2018-10-31 12:41:32 +00:00
David Wilson 0e8f451190 issue #409: add stub LXC test, refactor playbooks. 2018-10-31 12:12:17 +00:00
David Wilson e832ddec13 issue #409: mark sudo test noninteractive 2018-10-31 11:54:51 +00:00
David Wilson a77f07659e issue #409: make setns test to work anywhere sudo works. 2018-10-31 01:10:41 +00:00
David Wilson f2294c1678 issue #409: add new stub_connections/ test type. 2018-10-31 00:47:47 +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 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 fd5066d671 tests: teach various tests to cleanup /tmp when they're done. 2018-10-23 15:34:18 +01:00
David Wilson 7fd9fb0014 issue #397: fix another case where stray tmpdirs can be left behind.
Newer Ansibles use atexit.register() to invoke cleanup, so we need to
run those registrations after each run.
2018-10-23 15:29:03 +01:00
David Wilson 1b17aa1d1a ansible: fix temp cleanup regression and add test; closes #397. 2018-10-23 14:42:44 +01:00
David Wilson 6dd1001d7a tests: move kubectl into new subdir
Fixes tab completion with tests/ dir :)

CC @yannig
2018-10-02 20:31:17 +01:00
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 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
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 90f89f95fb ansible: fix exec_command() regression. 2018-09-10 01:31:15 +01:00
David Wilson 24a44499ca tests: verify Connection.put_file() for small/large files. 2018-09-10 00:26:14 +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 72fa129f8a tests: fix clash when localhost is test-target 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 90c2ed03d0 ansible: fix synchronize module
Broken by recent connection delegation fixes.
2018-08-20 15:43:56 +01:00