Commit Graph

201 Commits

Author SHA1 Message Date
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 4d443e654b tests: replace another shell script. 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 c286f4f107 Add tests/ansible/requirements.txt to Tox. 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 c51b67b863 issue #409: add test stubs to the PATH in run_ansible_playbook.py 2018-10-31 00:08:57 +00:00
David Wilson 5b916fc556 issue #409: Pythonize run_ansible_playbook.sh
And add git_basedir extra variable.
2018-10-30 23:58:45 +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 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 a7d635dff8 tests: import ara_env helper script. 2018-10-26 10:16:46 +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 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 9d070541d9 ansible: try to create tempdir if missing.
Closes #358.
2018-10-02 21:06:00 +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 130e42a932 tests: prevent compare_output_test running on import. 2018-10-02 20:30:18 +01:00
David Wilson 4c81eba599 Merge commit 'refs/pull/377/head' of github.com:dw/mitogen into dmw
(Pull #377)

Changes:
- additional_parameters -> extra_args
- Merge with kubectl changes from dmw branch
- Update docs
- Remove unused username class member
- Avoid mutable kubectl_args class member
- Use six.iteritems
2018-10-02 20:00:00 +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 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
Yannig Perré 17548d1e49 [Enhancement] handle kubectl vars from Ansible connector.
This change allows the kubectl connector to support the same options as
Ansible's original connector.

The playbook sample comes with an example of a pod containing two containers
and checking that moving from one container to another, the version of Python
changes as expected.
2018-10-02 11:54:15 +02:00
Yannig Perré 6828926a36 Kubernetes connection support for mitogen. 2018-09-19 16:52:20 +02:00