mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -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
|
@ -254,12 +254,12 @@
|
|||
- name: verify simultaneous install/remove worked
|
||||
assert:
|
||||
that:
|
||||
- zypper_res1|success
|
||||
- zypper_res1|changed
|
||||
- not zypper_res1a|changed
|
||||
- zypper_res1b|changed
|
||||
- not zypper_res2|changed
|
||||
- not zypper_res3|changed
|
||||
- zypper_res1 is successful
|
||||
- zypper_res1 is changed
|
||||
- zypper_res1a is not changed
|
||||
- zypper_res1b is changed
|
||||
- zypper_res2 is not changed
|
||||
- zypper_res3 is not changed
|
||||
|
||||
|
||||
- name: install and remove with state=absent
|
||||
|
@ -273,7 +273,7 @@
|
|||
- name: verify simultaneous install/remove failed with absent
|
||||
assert:
|
||||
that:
|
||||
- zypper_res|failed
|
||||
- zypper_res is failed
|
||||
- zypper_res.results[0].msg == "Can not combine '+' prefix with state=remove/absent."
|
||||
|
||||
- name: try rm patch
|
||||
|
@ -282,7 +282,7 @@
|
|||
register: zypper_patch
|
||||
- assert:
|
||||
that:
|
||||
- zypper_patch|failed
|
||||
- zypper_patch is failed
|
||||
- zypper_patch.msg.startswith('Can not remove patches.')
|
||||
|
||||
- name: try rm URL
|
||||
|
@ -291,7 +291,7 @@
|
|||
register: zypper_rm
|
||||
- assert:
|
||||
that:
|
||||
- zypper_rm|failed
|
||||
- zypper_rm is failed
|
||||
- zypper_rm.msg.startswith('Can not remove via URL.')
|
||||
|
||||
# check for https://github.com/ansible/ansible/issues/20139
|
||||
|
@ -313,6 +313,6 @@
|
|||
|
||||
- assert:
|
||||
that:
|
||||
- zypper_result_update_cache|success
|
||||
- zypper_result_update_cache_check|success
|
||||
- not zypper_result_update_cache_check|changed
|
||||
- zypper_result_update_cache is successful
|
||||
- zypper_result_update_cache_check is successful
|
||||
- zypper_result_update_cache_check is not changed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue