Alex Willmer
6accc87da1
tests: Improve Ansible fail_msg formatting
...
By switching to block style (`|`) with clip (no `-` or `+`) the failure
messages don't require quoting and gain a single trailing newline. This causes
Ansible to print them as block style, when using the yaml stdout callback
plugin. As a result the values have one less layer of quoting and quote
escaping, making them much easier to read.
2024-10-06 14:55:22 +01:00
Alex Willmer
85b1b4070a
tests: Respect configured or detected Python more often
...
Relying on the virtualenv default or hardcoding "python" results in a Python
2.x virtualenv on some targets (e.g. debian10-test). This caused a failure
when testing with Ansible >= 10 (ansible-core >= 2.17), which have dropped
Python 2.x support.
refs #1074
2024-08-11 02:12:16 +01:00
Alex Willmer
2839954559
tests: Account for /tmp symlink in virtualenv test on macOS
2024-03-04 14:43:52 +00:00
Alex Willmer
526422b74b
tests: Name tasks
...
For easier grep, and easier identification in task_profiler summaries.
2022-09-12 19:27:40 +01:00
Alex Willmer
db0ffae352
tests: Enable stricter error handling, fix resulting failures
2022-07-17 13:44:05 +01:00
Alex Willmer
e194a6367f
ci: Fix version comparisons involving double digits
...
See https://gist.github.com/moreati/e7507c5b606b12ec0ddafcb7c8debbf1
2021-11-22 23:19:03 +00:00
Alex Willmer
3c58215a91
tests: Tag Ansible tests
...
This makes it easier to run subsets using ANSIBLE_RUN_TAGS=...
2021-11-02 20:07:28 +00:00
Alex Willmer
cfa5888547
tests: Print variables on failure of assert tasks
...
Fixes #852
2021-09-07 22:10:25 +01:00
Steven Robertson
bb048cc03d
accidentally deleted quotes
2020-02-25 13:05:37 -08:00
Steven Robertson
faf7798c16
revert python3 setup + add TODO; python3 tests aren't working now but python2 is EOL so they should work soon
2020-02-25 12:57:01 -08:00
Steven Robertson
1157ff6f43
try fixing mac python symlink weirdness
2020-02-24 16:24:50 -08:00
Steven Robertson
0a34d378c9
change virtualenv creation when running with python 3
2020-02-24 15:43:45 -08:00
Steven Robertson
d813092d69
revert hack done to virtualenv test
2020-02-21 12:46:49 -08:00
Steven Robertson
90d51fcbbd
'fix' test for virtualenv on mac
2020-02-14 16:57:41 -08:00
Steven Robertson
488ab3553e
upgrade ansible back to 2.9.4, and fix issue with virtualenv on Mac
2020-02-14 16:38:13 -08:00
Steven Robertson
868de4e5ba
added ability to repro current virtualenv bug behind a proxy, and adding verbosity to see why azure is unhappy
2020-02-12 12:25:23 -08:00
David Wilson
9aff8edf50
issue #477 : one more conditional test.
2019-01-27 04:44:50 +00:00
David Wilson
4f57c59b7e
issue #275 : Don't run virtualnv test on 2.6.
2018-06-25 01:36:48 +01:00
David Wilson
962ba862e9
tests: use test-targets group, not all group
2018-04-22 19:40:58 +01:00
David Wilson
b882b78d35
tests: clean up remaining reg tests
...
Delete some that are impossible to detect, fix up the remainder to
detect the condition they describe.
2018-04-18 15:22:06 +01:00
David Wilson
b247c320d2
issue #164 : rename tests for clarity
2018-04-06 15:10:33 +01:00