mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-09 14:50:02 -07:00
Deprecate tests used as filters (#32361)
* Warn on tests used as filters * Update docs, add aliases for tests that fit more gramatically with test syntax * Fix rst formatting * Add successful filter, alias of success * Remove renamed_deprecation, it was overkill * Make directory alias for is_dir * Update tests to use proper jinja test syntax * Update additional documentation, living outside of YAML files, to reflect proper jinja test syntax * Add conversion script, porting guide updates, and changelog updates * Update newly added uses of tests as filters * No underscore variable * Convert recent tests as filter changes to win_stat * Fix some changes related to rebasing a few integration tests * Make tests_as_filters_warning explicitly accept the name of the test, instead of inferring the name * Add test for tests_as_filters_warning * Update tests as filters in newly added/modified tests * Address recent changes to several integration tests * Address recent changes in cs_vpc
This commit is contained in:
parent
fd4a6cf7ad
commit
4fe08441be
349 changed files with 4086 additions and 3844 deletions
|
@ -9,7 +9,7 @@
|
|||
- name: test Powershell Gallery module setup
|
||||
assert:
|
||||
that:
|
||||
- "module_setup|changed"
|
||||
- "module_setup is changed"
|
||||
- "module_setup.output == 'Module {{ powershell_module }} installed'"
|
||||
|
||||
- name: check idempotency reinstalling module
|
||||
|
@ -21,7 +21,7 @@
|
|||
- name: test win_psmodule idempotency
|
||||
assert:
|
||||
that:
|
||||
- "not module_reinstall|changed"
|
||||
- "module_reinstall is not changed"
|
||||
|
||||
- name: check module install with allow_clobber not active
|
||||
win_psmodule:
|
||||
|
@ -32,7 +32,7 @@
|
|||
- name: test allow_clobber has failed
|
||||
assert:
|
||||
that:
|
||||
- "fail_allow_clobber|failed"
|
||||
- "fail_allow_clobber is failed"
|
||||
|
||||
- name: check module install with allow_clobber active
|
||||
win_psmodule:
|
||||
|
@ -43,7 +43,7 @@
|
|||
- name: test module install with allow_clobber active
|
||||
assert:
|
||||
that:
|
||||
- "ok_allow_clobber|changed"
|
||||
- "ok_allow_clobber is changed"
|
||||
|
||||
- name: check wrong module install attempt
|
||||
win_psmodule:
|
||||
|
@ -55,7 +55,7 @@
|
|||
- name: test module setup fails
|
||||
assert:
|
||||
that:
|
||||
- "module_fail|failed"
|
||||
- "module_fail is failed"
|
||||
|
||||
- name: check fake custom ps repository registration attempt
|
||||
win_psmodule:
|
||||
|
@ -68,7 +68,7 @@
|
|||
- name: test fake custom ps repository registration attempt
|
||||
assert:
|
||||
that:
|
||||
- "repo_fail|failed"
|
||||
- "repo_fail is failed"
|
||||
|
||||
- name: check module is installed
|
||||
win_shell: (Get-Module -Name {{ powershell_module }} -ListAvailable).Name
|
||||
|
@ -97,7 +97,7 @@
|
|||
- name: test powershell module removal
|
||||
assert:
|
||||
that:
|
||||
- "module_uninstall|changed"
|
||||
- "module_uninstall is changed"
|
||||
- "module_uninstall.output == 'Module {{ powershell_module }} removed'"
|
||||
|
||||
- name: check module is uninstalled
|
||||
|
@ -118,7 +118,7 @@
|
|||
- name: test idempotency
|
||||
assert:
|
||||
that:
|
||||
- "not module_uninstall_2|changed"
|
||||
- "module_uninstall_2 is not changed"
|
||||
|
||||
- name: check removing allow_clobber module
|
||||
win_psmodule:
|
||||
|
@ -129,8 +129,8 @@
|
|||
- name: test removing allow_clobber module
|
||||
assert:
|
||||
that:
|
||||
- "not module_uninstall_2|changed"
|
||||
- "module_uninstall_3|changed"
|
||||
- "module_uninstall_2 is not changed"
|
||||
- "module_uninstall_3 is changed"
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue