David Wilson
6da991fae9
[stream-refactor] Py3.x test fixes
2019-07-28 15:57:07 +01:00
David Wilson
3a1125a7bd
issue #363 : add test.
2019-07-22 18:30:51 +01:00
David Wilson
fb23ecae01
tests: jail_test fixes.
2019-07-22 18:30:51 +01:00
David Wilson
bbf0b22493
Import minimal jail_test.
2019-07-22 18:30:51 +01:00
Jordan Webb
d71bdd1694
Add buildah test and stub
2019-06-10 13:17:54 -05:00
David Wilson
4506c528ca
issue #481 : add test.
2019-02-10 22:32:57 +00:00
David Wilson
0a9c3dcc40
issue #477 : missing stub-su.py from 137f5fa6c5
2019-01-27 01:25:12 +00:00
David Wilson
8f1f3de123
tests: Pythonize env_wrapper.sh, clean up local_test
2018-11-06 16:57:51 +00:00
David Wilson
3f46c9569c
tests: 3.x syntax compat for tests/data/stubs/
2018-11-04 20:17:09 +00:00
David Wilson
802de6a8d5
issue #406 : clean up DiagLogStream handling and connect() failure.
...
When Stream.connect() fails, have it just use on_disconnect(). Now there
is a single disconnect cleanup path.
Remove cutpasted DiagLogStream setup/destruction, and move it into the
base class (temporarily), and only manage the lifetime of its underlying
FD via Side.close(). This cures another EBADF failure.
2018-11-04 13:48:34 +00:00
David Wilson
fd326f5ad7
tests: stub tests for doas/mitogen_doas
2018-11-01 00:49:26 +00:00
David Wilson
fcdf4a0f35
Import missing stub-sudo.py.
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
f2294c1678
issue #409 : add new stub_connections/ test type.
2018-10-31 00:47:47 +00:00
David Wilson
429832b8f7
issue #409 : add kubectl stub and constructor test.
2018-10-31 00:46:47 +00:00
David Wilson
51658fdd66
issue #409 : name-prefix stubs so they can be added to PATH
...
Allows us to reference them from playbooks easily.
2018-10-31 00:08:33 +00:00
David Wilson
1eae594e32
ssh: fix check_host_keys="accept" and test; closes #411
...
Add real accept/enforce tests.
2018-10-30 10:35:45 +00:00
David Wilson
16ca111ebd
ssh: better OpenSSH 7.5+ permission denied handling
...
The user@host prefix in new-style OpenSSH messages unfortunately takes
the host part from ~/.ssh/config and friends. There is no way to know
which hostname will appear in this string without parsing the OpenSSH
config, nor which username will appear.
Instead just regex it.
Add SSH stub modes to print the new/old errors and add some simple
tests.
This extends the work done in b9112a9cbb
2018-10-30 10:20:04 +00:00
David Wilson
918f709420
tests: import a bunch more random unchecked in pieces.
2018-10-26 09:45:17 +01:00
David Wilson
73055150f3
tests: move stub tools, into subdir, import docker_test.
2018-10-26 09:21:29 +01:00