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
|
@ -21,9 +21,9 @@
|
|||
- name: assert create temp file defaults check
|
||||
assert:
|
||||
that:
|
||||
- create_tmp_file_defaults_check|changed
|
||||
- create_tmp_file_defaults_check is changed
|
||||
- create_tmp_file_defaults_check.state == 'file'
|
||||
- create_tmp_file_defaults_check.path | regex_replace('\\\\', '/') | match(temp_value + '/ansible.*')
|
||||
- create_tmp_file_defaults_check.path | regex_replace('\\\\', '/') is match(temp_value + '/ansible.*')
|
||||
- actual_create_tmp_file_defaults_check.stat.exists == False
|
||||
|
||||
- name: create temp file defaults
|
||||
|
@ -38,9 +38,9 @@
|
|||
- name: assert create temp file defaults
|
||||
assert:
|
||||
that:
|
||||
- create_tmp_file_defaults|changed
|
||||
- create_tmp_file_defaults is changed
|
||||
- create_tmp_file_defaults.state == 'file'
|
||||
- create_tmp_file_defaults.path | regex_replace('\\\\', '/') | match(temp_value + '/ansible.*')
|
||||
- create_tmp_file_defaults.path | regex_replace('\\\\', '/') is match(temp_value + '/ansible.*')
|
||||
- actual_create_tmp_file_defaults.stat.exists == True
|
||||
- actual_create_tmp_file_defaults.stat.isdir == False
|
||||
|
||||
|
@ -56,9 +56,9 @@
|
|||
- name: assert create temp file defaults
|
||||
assert:
|
||||
that:
|
||||
- create_tmp_file_defaults_again|changed
|
||||
- create_tmp_file_defaults_again is changed
|
||||
- create_tmp_file_defaults_again.state == 'file'
|
||||
- create_tmp_file_defaults_again.path | regex_replace('\\\\', '/') | match(temp_value + '/ansible.*')
|
||||
- create_tmp_file_defaults_again.path | regex_replace('\\\\', '/') is match(temp_value + '/ansible.*')
|
||||
- create_tmp_file_defaults_again.path != create_tmp_file_defaults.path
|
||||
- actual_create_tmp_file_defaults_again.stat.exists == True
|
||||
- actual_create_tmp_file_defaults_again.stat.isdir == False
|
||||
|
@ -77,9 +77,9 @@
|
|||
- name: assert create temp folder check
|
||||
assert:
|
||||
that:
|
||||
- create_tmp_folder_check|changed
|
||||
- create_tmp_folder_check is changed
|
||||
- create_tmp_folder_check.state == 'directory'
|
||||
- create_tmp_folder_check.path | regex_replace('\\\\', '/') | match(temp_value + '/ansible.*')
|
||||
- create_tmp_folder_check.path | regex_replace('\\\\', '/') is match(temp_value + '/ansible.*')
|
||||
- actual_create_tmp_folder_check.stat.exists == False
|
||||
|
||||
- name: create temp folder
|
||||
|
@ -95,9 +95,9 @@
|
|||
- name: assert create temp folder
|
||||
assert:
|
||||
that:
|
||||
- create_tmp_folder|changed
|
||||
- create_tmp_folder is changed
|
||||
- create_tmp_folder.state == 'directory'
|
||||
- create_tmp_folder.path | regex_replace('\\\\', '/') | match(temp_value + '/ansible.*')
|
||||
- create_tmp_folder.path | regex_replace('\\\\', '/') is match(temp_value + '/ansible.*')
|
||||
- actual_create_tmp_folder.stat.exists == True
|
||||
- actual_create_tmp_folder.stat.isdir == True
|
||||
|
||||
|
@ -114,9 +114,9 @@
|
|||
- name: assert create temp file with suffix
|
||||
assert:
|
||||
that:
|
||||
- create_tmp_file_suffix|changed
|
||||
- create_tmp_file_suffix is changed
|
||||
- create_tmp_file_suffix.state == 'file'
|
||||
- create_tmp_file_suffix.path | regex_replace('\\\\', '/') | match(temp_value + '/ansible.*.test-suffix')
|
||||
- create_tmp_file_suffix.path | regex_replace('\\\\', '/') is match(temp_value + '/ansible.*.test-suffix')
|
||||
- actual_creat_tmp_file_suffix.stat.exists == True
|
||||
- actual_creat_tmp_file_suffix.stat.isdir == False
|
||||
|
||||
|
@ -133,9 +133,9 @@
|
|||
- name: assert create temp file with prefix
|
||||
assert:
|
||||
that:
|
||||
- create_tmp_file_prefix|changed
|
||||
- create_tmp_file_prefix is changed
|
||||
- create_tmp_file_prefix.state == 'file'
|
||||
- create_tmp_file_prefix.path | regex_replace('\\\\', '/') | match(temp_value + '/test-prefix.*')
|
||||
- create_tmp_file_prefix.path | regex_replace('\\\\', '/') is match(temp_value + '/test-prefix.*')
|
||||
- actual_creat_tmp_file_prefix.stat.exists == True
|
||||
- actual_creat_tmp_file_prefix.stat.isdir == False
|
||||
|
||||
|
@ -161,9 +161,9 @@
|
|||
- name: assert create temp file with different path
|
||||
assert:
|
||||
that:
|
||||
- create_tmp_file_difference_path|changed
|
||||
- create_tmp_file_difference_path is changed
|
||||
- create_tmp_file_difference_path.state == 'file'
|
||||
- create_tmp_file_difference_path.path | regex_replace('\\\\', '/') | match(test_tempfile_path_regex + '/ansible.*')
|
||||
- create_tmp_file_difference_path.path | regex_replace('\\\\', '/') is match(test_tempfile_path_regex + '/ansible.*')
|
||||
- actual_creat_tmp_file_different_path.stat.exists == True
|
||||
- actual_creat_tmp_file_different_path.stat.isdir == False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue