mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 04:24:00 -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
|
@ -61,7 +61,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "actual_location.stdout_lines[0] == '12'" # Corresponds to en-AU
|
||||
- "check_location|changed"
|
||||
- "check_location is changed"
|
||||
- "check_location.restart_required == False"
|
||||
|
||||
- name: set location to United States
|
||||
|
@ -77,7 +77,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "actual_location.stdout_lines[0] == '244'" # Corresponds to en-US
|
||||
- "location|changed"
|
||||
- "location is changed"
|
||||
- "location.restart_required == False"
|
||||
|
||||
- name: set location to United States again
|
||||
|
@ -88,7 +88,7 @@
|
|||
- name: check that the result did not change
|
||||
assert:
|
||||
that:
|
||||
- "not location_again|changed"
|
||||
- "location_again is not changed"
|
||||
- "location_again.restart_required == False"
|
||||
|
||||
- name: set format to English United States in check mode
|
||||
|
@ -105,7 +105,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "actual_format.stdout_lines[0] == 'en-AU'"
|
||||
- "check_format|changed"
|
||||
- "check_format is changed"
|
||||
- "check_format.restart_required == False"
|
||||
|
||||
- name: set format to English United States
|
||||
|
@ -121,7 +121,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "actual_format.stdout_lines[0] == 'en-US'"
|
||||
- "format|changed"
|
||||
- "format is changed"
|
||||
- "format.restart_required == False"
|
||||
|
||||
- name: set format to English United States again
|
||||
|
@ -132,7 +132,7 @@
|
|||
- name: check that the result did not change
|
||||
assert:
|
||||
that:
|
||||
- "not format_again|changed"
|
||||
- "format_again is not changed"
|
||||
- "format_again.restart_required == False"
|
||||
|
||||
- name: set unicode_language to English United States in check mode
|
||||
|
@ -149,7 +149,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "actual_unicode.stdout_lines[0] == '0c09'"
|
||||
- "check_unicode|changed"
|
||||
- "check_unicode is changed"
|
||||
- "check_unicode.restart_required == True"
|
||||
|
||||
- name: set unicode_language to English United States
|
||||
|
@ -169,7 +169,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "actual_unicode.stdout_lines[0] == '0409'" # corresponds to en-US
|
||||
- "unicode|changed"
|
||||
- "unicode is changed"
|
||||
- "unicode.restart_required == True"
|
||||
|
||||
- name: set unicode_language to English United States again
|
||||
|
@ -180,7 +180,7 @@
|
|||
- name: check that the result did not change
|
||||
assert:
|
||||
that:
|
||||
- "not unicode_again|changed"
|
||||
- "unicode_again is not changed"
|
||||
- "unicode_again.restart_required == False"
|
||||
|
||||
- name: copy settings when setting to the same format check mode
|
||||
|
@ -193,7 +193,7 @@
|
|||
- name: check that the result did not change in check mode
|
||||
assert:
|
||||
that:
|
||||
- "not check_copy_same|changed"
|
||||
- "check_copy_same is not changed"
|
||||
- "check_copy_same.restart_required == False"
|
||||
|
||||
- name: copy settings when setting to the same format
|
||||
|
@ -205,7 +205,7 @@
|
|||
- name: check that the result did not change
|
||||
assert:
|
||||
that:
|
||||
- "not copy_same|changed"
|
||||
- "copy_same is not changed"
|
||||
- "copy_same.restart_required == False"
|
||||
|
||||
- name: copy setting when setting to a different format
|
||||
|
@ -248,5 +248,5 @@
|
|||
- "actual_network.stdout_lines[0] == 'en-GB'"
|
||||
- "actual_temp.stdout_lines[0] == 'en-GB'"
|
||||
- "actual_default.stdout_lines[0] == 'en-GB'"
|
||||
- "copy|changed"
|
||||
- "copy is changed"
|
||||
- "copy.restart_required == False"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue