Commit Graph

11 Commits

Author SHA1 Message Date
Jonathan Rosser f1132fcc47 Remove references to unsupported operating systems
All references to Gentoo, SUSE, Debian stretch and Centos-7  are removed.
Conditional tasks, ternary operators and variables are simplified where possible
OS specific variables files are generalised where possible

Change-Id: I55037805e59cb6d727593f467e98568a4c030e74
2021-03-16 08:57:25 +00:00
Jonathan Rosser e5cc6f8990 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: I5a83a7f237e4b7d86e8d7ee08b0e8c6b4f8a44f8
2021-02-23 09:25:49 +00:00
Jonathan Rosser 229c94c620 Switch filesystem mount test from btrfs to ext4
BTRFS is not available on centos-8 so switch the test to ext4 instead.

Change-Id: I9bcbbe4dd2ed94f2c6db1af5f927e68f079c8a7a
2020-09-28 12:16:12 +00:00
Marc Gariepy 720524c5cd remove ansible_python_interpreter
ansible_python_interpreter is now set to auto in the tests repo.
it doesn't need to be overwritten in the test anymore.

Depends-On: https://review.opendev.org/734676/
Change-Id: I310a1b3d81d726eb8c3401607a1306f44ee1a4d4
2020-06-11 15:58:53 -04:00
Jonathan Rosser 996ac88cdf debian: add support
Change-Id: Ie0c0b306c7f0cb05350b4e4cea950b2bb3857814
2019-04-23 08:58:33 +01:00
Jesse Pretorius 7f30f33f23 Set container_name as host_var in test inventory
The connection plugin no longer falls back on using the
inventory_hostname as the container_name. Set container_name as a host
var for each container in the test inventory.

In this role's case there are no containers, so I've just removed
the group_var so that the test setup is uniform with other roles
which do use containers.

Change-Id: If491e94c5d66f7e236bd344980b3d63ab22761d5
2018-10-22 11:10:11 +00:00
Jean-Philippe Evrard 4405f7d6b5 Fix usage of "|" for tests
With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: Id39023e9801f2bf114fbb02e89e13e1452e6b928
2018-07-12 17:01:17 +02:00
Jesse Pretorius 8a305bc0d5 Update run_tests.sh and remove tests-repo-clone.sh
The lint tests make use of the common linters test
used by the roles, so we need to ensure that the
run_tests.sh script is updated and the configuration
adjusted accordingly.

Change-Id: Icbb29acbfcee6a1c1aa5520153a38a1a703a3b4a
2018-03-28 08:42:21 +01:00
Kevin Carter 031ba51726
Add basic tests
This change adds basic tests when creating a mount unit file.
This test will ensure system-mount is functional with a local mounts,
NFS mounts, and swap mounts.

Change-Id: I00dbf7f6ff3b687e622b29808197dbd7427d24fe
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-03-23 18:12:18 -05:00
Logan V cc125a7437 Add base role tests
Depends-On: https://review.openstack.org/#/c/554402/
Change-Id: If4047f2d3f2286dc6188cc62e3d17c47b2f88cd4
2018-03-19 23:00:29 -05:00
Kevin Carter 4f37977e7b
Initial Commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-03-13 02:06:48 -05:00