-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ansible-lint issues in tests (#340)
* Fix ansible-lint issues in tests All tasks must be named Task names must begin with uppercase letter Fix Jinja spacing issues Fix long lines with appropriate wrapping Do not use `{{ .... }}` in `when` and `that` conditionals Some tests were using `safe_mode` instead of `storage_safe_mode` LUKS tests were using `regex_search` incorrectly and always passing - use `is search` instead and fix pattern to parse luksdump output correctly. Refactor tests that check for the role to raise an error - add a new file verify-role-failed.yml which checks for ansible errors and blivet errors * check for exceptions in module_stdout * fix errors * lint
- Loading branch information
Showing
160 changed files
with
2,503 additions
and
2,329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,5 @@ exclude_paths: | |
- tests/roles/ | ||
- .github/ | ||
- examples/roles/ | ||
- tests/ | ||
mock_roles: | ||
- linux-system-roles.storage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,3 @@ | |
extends: default | ||
ignore: | | ||
/.tox/ | ||
/tests/ | ||
/.github/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
--- | ||
- name: test lvm and xfs package deps | ||
- name: Test lvm and xfs package deps | ||
blivet: | ||
packages_only: "{{ packages_only }}" | ||
pools: "{{ storage_pools|default([]) }}" | ||
volumes: "{{ storage_volumes|default([]) }}" | ||
pools: "{{ storage_pools | default([]) }}" | ||
volumes: "{{ storage_volumes | default([]) }}" | ||
pool_defaults: "{{ storage_pool_defaults }}" | ||
volume_defaults: "{{ storage_volume_defaults }}" | ||
register: blivet_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.