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
parent fd4a6cf7ad
commit 4fe08441be
349 changed files with 4086 additions and 3844 deletions

View File

@@ -9,8 +9,8 @@
- name: Verify create server
assert:
that:
- server|success
- server|changed
- server is successful
- server is changed
- server.state == 'running'
- name: Test create server indempotence
@@ -23,8 +23,8 @@
- name: Verify create server
assert:
that:
- server|success
- not server|changed
- server is successful
- server is not changed
- server.state == 'running'
- name: Test create server stopped
@@ -38,8 +38,8 @@
- name: Verify create server stopped
assert:
that:
- server_stopped|success
- server_stopped|changed
- server_stopped is successful
- server_stopped is changed
- server_stopped.state == 'stopped'
- name: Test create server failure without required parameters
@@ -50,7 +50,7 @@
- name: Verify create server failure without required parameters
assert:
that:
- server_failed|failed
- server_failed is failed
- "'Missing required parameter' in server_failed.msg"
- name: Test server stopped
@@ -61,8 +61,8 @@
- name: Verify server stopped
assert:
that:
- server|success
- server|changed
- server is successful
- server is changed
- server.state == 'stopped'
- name: Test server stopped indempotence
@@ -73,8 +73,8 @@
- name: Verify server stopped indempotence
assert:
that:
- server|success
- not server|changed
- server is successful
- server is not changed
- server.state == 'stopped'
- name: Test server running
@@ -85,8 +85,8 @@
- name: Verify server running
assert:
that:
- server|success
- server|changed
- server is successful
- server is changed
- server.state == 'running'
- name: Test server running indempotence
@@ -97,8 +97,8 @@
- name: Verify server running indempotence
assert:
that:
- server|success
- not server|changed
- server is successful
- server is not changed
- server.state == 'running'
- name: Test server deletion by name
@@ -109,8 +109,8 @@
- name: Verify server deletion
assert:
that:
- server|success
- server|changed
- server is successful
- server is changed
- server.state == 'absent'
- name: Test server deletion by uuid
@@ -121,8 +121,8 @@
- name: Verify server deletion by uuid
assert:
that:
- server_stopped|success
- server_stopped|changed
- server_stopped is successful
- server_stopped is changed
- server_stopped.state == 'absent'
- name: Test server deletion indempotence
@@ -133,6 +133,6 @@
- name: Verify server deletion
assert:
that:
- server|success
- not server|changed
- server is successful
- server is not changed
- server.state == 'absent'