Jakub Jelen
3cad473005
tests: Add negative test and context tests using regex
2021-06-01 16:09:23 +02:00
Jakub Jelen
8e180cfb48
Add new identification for Github Actions virtualization platform
2021-06-01 16:09:23 +02:00
Jakub Jelen
380ebd21d9
Support for appending a snippet to configuration file
2021-06-01 16:09:23 +02:00
Noriko Hosoi
fe0146b8a0
Fixing issues found by @jakure in his reviews.
2021-04-10 09:11:13 -07:00
Noriko Hosoi
6887864d2c
Fix issues found by linters - enable all tests on all repos - remove suppressions
...
Cleaning up yamllint errors.
- Use .yamllint.yml and .yamllint_defaults.yml instead of
.yamllint.yaml.
- Fix the invalid indentations.
Cleaning up ansible-lint errors.
- Add "name" to every task.
- Use command rather than shell
- Add "changed_when: false".
- Use '|' instead of '>' for the shell module.
- Fix '/bin/sh: line 3: CRYPTO_POLICY: unbound variable'.
- Add "set -eu" and "set -o pipefail" if pipefail is available.
Note: "pipefail" is not available in "sh" and "dash".
- Add "- '306' # Shells that use pipes should set the pipefail option"
to .ansible-lint since ansible-lint does not recognize it if it's set
in "if set -o | grep pipefail".
RHELPLAN-73804
2021-04-09 10:27:42 -07:00
Rich Megginson
bb612fb6c5
use state: absent instead of state: missing
2021-01-28 15:56:14 -07:00
Jakub Jelen
d46e5eb226
tests: Use valid option in Match blocks in RHEL6
2020-12-11 13:25:19 +01:00
Jakub Jelen
fd144194e6
tests: Do not use ed25519 keys as they are not available in RHEL6
2020-12-11 13:25:19 +01:00
Jakub Jelen
f1aa17930a
tests: Do not use gcm ciphers as they are not available in RHEL6
2020-12-11 13:25:19 +01:00
Jakub Jelen
e92a98a97f
tests: Improve testing of the sysconfig with more real example
2020-12-11 13:25:19 +01:00
Jakub Jelen
45bf0180fe
tests: Verify backup files are created and can be disabled
2020-12-11 13:25:19 +01:00
Jakub Jelen
497db39466
tests: Move setup tasks to separate file
2020-12-11 13:25:19 +01:00
Jakub Jelen
86495969dc
tests: Skip hostkey test in Debian and RHEL6 as it is missing
2020-12-11 13:25:19 +01:00
Jakub Jelen
425400d521
Do not attempt to create and verify sysconfig on unrelated systems
2020-12-11 13:25:19 +01:00
Jakub Jelen
48dc56b2d2
Recognize podman container runtime and ignore services there
2020-12-11 13:25:19 +01:00
Jakub Jelen
acb56267a1
tests: Verify variable precedence is correctly applied
2020-12-11 13:25:19 +01:00
Jakub Jelen
156373262c
tests: Test match can accept dict directly
2020-12-11 13:25:19 +01:00
Jakub Jelen
bb979290db
tests: Verify the sshd_enable variable works
2020-12-11 13:25:19 +01:00
Jakub Jelen
9032ea2b1e
tests: Verify the defaults of this role do not change os defaults
2020-12-11 13:24:59 +01:00
Jakub Jelen
9ccbe04b7f
tests: Implement backup & restore of important files for separate tests
2020-12-11 13:24:40 +01:00
Jakub Jelen
242058a10b
tests: For Fedora containers, make sure the sshd host keys exist
2020-11-16 11:32:28 +01:00
Jakub Jelen
ff04f6ff89
tests: Replace cat with slurp
2020-11-16 11:20:56 +01:00
Jakub Jelen
567708dff6
tests: Make sure the user/group nobody is present in the test
2020-11-16 11:20:56 +01:00
Jakub Jelen
e4de9a6afd
tests: Use complete connection specification for RHEL7 compatibility
2020-11-16 11:20:56 +01:00
Jakub Jelen
e2d6a8ba0f
tests: Fix for Fedora using different default configuration file
2020-11-16 11:20:56 +01:00
Jakub Jelen
f3f041b580
tests: Verify we can write main config after included one
2020-11-16 11:20:55 +01:00
Jakub Jelen
35945647e1
tests: Use the main configuration file for setting sftp subsystem
2020-11-16 11:16:57 +01:00
Jakub Jelen
33dcb0d9d4
tests: Verify we can generate hostkeys and prevent its creation if needed
2020-11-16 11:16:44 +01:00
Jakub Jelen
ad913968ac
Add a symlink to make tests working in CI without modification to ansible.cfg
2020-11-06 11:35:10 +01:00
Jakub Jelen
4b944a6c98
tests: Check for the sysconfig configuration only on relevant OS
2020-11-06 10:57:23 +01:00
Jakub Jelen
8414fd5994
tests: Remove trailing newlines to satisfy galaxy linters
2020-10-21 18:32:49 +02:00
Jakub Jelen
7da7f8199f
Rename test to tests
2020-10-21 18:32:49 +02:00
Jakub Jelen
0ba1b77f92
tests: Remove duplicate become (already specified on ansible-playbook commandline)
2020-10-21 18:32:49 +02:00
Jakub Jelen
1fbe49934e
tests: Remove duplicate newlines
2020-10-21 18:32:39 +02:00
Matt Willsher
62ae5d7856
Merge branch 'master' into crypto-policies
2020-10-15 10:02:03 +01:00
Jakub Jelen
6ed5341f32
Test match blocks generators
2020-10-08 18:45:01 +02:00
Jakub Jelen
1f9b67d830
test sysconfig template
2020-10-06 21:21:18 +02:00
Jakub Jelen
e5ad657038
Test alternative configuration file creation
2020-09-23 14:35:09 +02:00
Jakub Jelen
2744b2e225
Document and test alternative invocation of role through include_role
2020-09-23 14:35:09 +02:00
Jakub Jelen
1266519c23
Add test case for uncommon configuration options
2020-09-23 14:35:09 +02:00
Jakub Jelen
e2bc8f14e5
Test setting common configuration options
2020-09-23 14:35:09 +02:00
Jakub Jelen
9b3e83b853
Move the basic test to test_default
2020-09-23 14:16:24 +02:00
Matt Willsher
62c69684e3
Config not needed here
2017-05-04 14:10:23 +01:00
Matt Willsher
349d0e6828
Remove circular symlink in tests dir
2017-05-04 13:58:46 +01:00
Matt Willsher
a4df6a5385
Use become to change user
2016-01-24 15:57:12 +00:00
Matt Willsher
6e4931fa9d
Add testing via Vagrant
...
Still needs a bit of work to make OS switching a little more seamless
2016-01-24 15:52:13 +00:00
Matt Willsher
2117ef23e1
Add first pass Vagrantfile
...
Order of execution is screwy. Fixme :D
2016-01-24 12:39:47 +00:00
Matt Willsher
0c99bc08e0
Fix test syntax error
2015-01-12 21:15:25 +00:00
Matt Willsher
e06669fb65
Add tests
2015-01-12 21:01:08 +00:00