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:
Matt Martz 2017-11-27 16:58:08 -06:00 committed by ansibot
commit 4fe08441be
349 changed files with 4086 additions and 3844 deletions

View file

@ -25,8 +25,8 @@
that:
- "slurp_existing.content"
- "slurp_existing.encoding == 'base64'"
- "not slurp_existing|changed"
- "not slurp_existing|failed"
- "slurp_existing is not changed"
- "slurp_existing is not failed"
- name: test slurping a large binary file with path param and backslashes
slurp: path="C:\Windows\explorer.exe"
@ -38,8 +38,8 @@
that:
- "slurp_path_backslashes.content"
- "slurp_path_backslashes.encoding == 'base64'"
- "not slurp_path_backslashes|changed"
- "not slurp_path_backslashes|failed"
- "slurp_path_backslashes is not changed"
- "slurp_path_backslashes is not failed"
- name: test slurping a non-existent file
slurp: src="C:/this_file_should_not_exist.txt"
@ -49,9 +49,9 @@
- name: check slurp missing result
assert:
that:
- "slurp_missing|failed"
- "slurp_missing is failed"
- "slurp_missing.msg"
- "not slurp_missing|changed"
- "slurp_missing is not changed"
- name: test slurping a directory
slurp: src="C:/Windows"
@ -61,9 +61,9 @@
- name: check slurp directory result
assert:
that:
- "slurp_dir|failed"
- "slurp_dir is failed"
- "slurp_dir.msg"
- "not slurp_dir|changed"
- "slurp_dir is not changed"
- name: test slurp with missing argument
action: slurp
@ -73,6 +73,6 @@
- name: check slurp with missing argument result
assert:
that:
- "slurp_no_args|failed"
- "slurp_no_args is failed"
- "slurp_no_args.msg"
- "not slurp_no_args|changed"
- "slurp_no_args is not changed"