Commit Graph

10 Commits

Author SHA1 Message Date
Alex Willmer e36bbde9ac tests: Replace uses of assertTrue() with specific methods 2022-07-17 13:44:05 +01:00
Alex Willmer 18c89de5a9 Remove unused module imports 2022-04-23 10:01:06 +01:00
Alex Willmer caa20be43e tests: Use TestCase.assertEqual()
assertEquals() is deperecated in unittest
2022-04-21 19:23:43 +01:00
Alex Willmer a8317c2393 tests: Remove unittest2, use stdlib unittest
unittest2 is incomplatible with Python 3.10
2022-04-20 17:54:12 +01:00
Alex Willmer 9dce5fe056 tests: Correct DISTRO vs DISTROS usage in CI configurations
The environment variable DISTRO is used to set the target Docker image
used when running the Mitogen unit tests. DISTROS is used for the
Ansible integration tests. VER sets the version of Ansible that is
installed on the controller.

When MODE=Mitogen
- there is no need to set VER, because nothing that installs Ansible
- it does not make sense to set DISTROS.
2021-01-10 20:20:45 +00:00
Steven Robertson 74a6f18f12 disabling another flaky test 2020-02-20 15:27:31 -08:00
David Wilson 11923431a6 tests: one case from doas_test was invoking su 2019-08-17 14:35:03 +01:00
David Wilson 2f950b3bda [stream-refactor] allow doas_test to succeed on CentOS
Unlike on Debian, some environment variables that tickle
getpass.getuser() are being inherited. So use getuid() instead.

Also install the doas binary on CentOS. CI was changed (I believe) to
shrink the configuration matrix, and now these tests run on CentOS too.
2019-07-28 10:40:59 +00:00
David Wilson eff8179591 tests: add real test for doas. 2019-07-22 18:30:51 +01:00
David Wilson fd326f5ad7 tests: stub tests for doas/mitogen_doas 2018-11-01 00:49:26 +00:00