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

@ -6,7 +6,7 @@
- name: verify test fail missing url if host is not existent
assert:
that:
- host|failed
- host is failed
- 'host.msg == "missing required arguments: name"'
- name: test fail missing params if host is not existent
@ -17,7 +17,7 @@
- name: verify test fail missing params if host is not existent
assert:
that:
- host|failed
- host is failed
- 'host.msg == "missing required arguments: password, username, hypervisor, pod"'
- name: test create a host in check mode
@ -38,7 +38,7 @@
- name: verify test create a host in check mode
assert:
that:
- host|changed
- host is changed
- name: test create a host
cs_host:
@ -57,7 +57,7 @@
- name: verify test create a host
assert:
that:
- host|changed
- host is changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -91,7 +91,7 @@
- name: verify test create a host idempotence
assert:
that:
- not host|changed
- host is not changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -120,7 +120,7 @@
- name: verify test update a host in check mode
assert:
that:
- host|changed
- host is changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -148,7 +148,7 @@
- name: verify test update a host in check mode
assert:
that:
- host|changed
- host is changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -176,7 +176,7 @@
- name: verify test update a host idempotence
assert:
that:
- not host|changed
- host is not changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -203,7 +203,7 @@
- name: verify test update host remove host_tags
assert:
that:
- host|changed
- host is changed
- host.host_tags|length == 0
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
@ -231,7 +231,7 @@
- name: verify test update host remove host_tags idempotence
assert:
that:
- not host|changed
- host is not changed
- len(host.host_tags) == 0
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
@ -254,7 +254,7 @@
- name: verify test put host in maintenance in check mode
assert:
that:
- host|changed
- host is changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -274,7 +274,7 @@
- name: verify test put host in maintenance
assert:
that:
- host|changed
- host is changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -294,7 +294,7 @@
- name: verify test put host in maintenance idempotence
assert:
that:
- not host|changed
- host is not changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -315,7 +315,7 @@
- name: verify test put host out of maintenance in check mode
assert:
that:
- host|changed
- host is changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -335,7 +335,7 @@
- name: verify test put host out of maintenance
assert:
that:
- host|changed
- host is changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -355,7 +355,7 @@
- name: verify test put host out of maintenance idempotence
assert:
that:
- not host|changed
- host is not changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -376,7 +376,7 @@
- name: verify test remove a host in check mode
assert:
that:
- host|changed
- host is changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -396,7 +396,7 @@
- name: verify test remove a host
assert:
that:
- host|changed
- host is changed
- host.cluster == 'C0-basic'
- host.pod == 'POD0-basic'
- host.hypervisor == 'Simulator'
@ -416,4 +416,4 @@
- name: verify test remove a host idempotenc
assert:
that:
- not host|changed
- host is not changed