mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00: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
|
@ -7,7 +7,7 @@
|
|||
- name: verify setup
|
||||
assert:
|
||||
that:
|
||||
- region|success
|
||||
- region is successful
|
||||
|
||||
- name: test fail if missing params
|
||||
cs_region:
|
||||
|
@ -16,7 +16,7 @@
|
|||
- name: verify results of fail if missing name
|
||||
assert:
|
||||
that:
|
||||
- region|failed
|
||||
- region is failed
|
||||
- "region.msg.startswith('missing required arguments: ')"
|
||||
|
||||
- name: test create region in check mode
|
||||
|
@ -29,7 +29,7 @@
|
|||
- name: verify test create region in check mode
|
||||
assert:
|
||||
that:
|
||||
- region|changed
|
||||
- region is changed
|
||||
|
||||
- name: test create region in check mode
|
||||
cs_region:
|
||||
|
@ -40,7 +40,7 @@
|
|||
- name: verify test create region in check mode
|
||||
assert:
|
||||
that:
|
||||
- region|changed
|
||||
- region is changed
|
||||
- region.name == 'geneva'
|
||||
- region.id == 2
|
||||
- region.endpoint == 'https://cloud.gva.example.com'
|
||||
|
@ -56,7 +56,7 @@
|
|||
- name: verify test create region idempotence
|
||||
assert:
|
||||
that:
|
||||
- not region|changed
|
||||
- region is not changed
|
||||
- region.name == 'geneva'
|
||||
- region.id == 2
|
||||
- region.endpoint == 'https://cloud.gva.example.com'
|
||||
|
@ -73,7 +73,7 @@
|
|||
- name: verify test update region in check mode
|
||||
assert:
|
||||
that:
|
||||
- region|changed
|
||||
- region is changed
|
||||
- region.name == 'geneva'
|
||||
- region.id == 2
|
||||
- region.endpoint == 'https://cloud.gva.example.com'
|
||||
|
@ -89,7 +89,7 @@
|
|||
- name: verify test update region
|
||||
assert:
|
||||
that:
|
||||
- region|changed
|
||||
- region is changed
|
||||
- region.name == 'zuerich'
|
||||
- region.id == 2
|
||||
- region.endpoint == 'https://cloud.zrh.example.com'
|
||||
|
@ -105,7 +105,7 @@
|
|||
- name: verify test update region idempotence
|
||||
assert:
|
||||
that:
|
||||
- not region|changed
|
||||
- region is not changed
|
||||
- region.name == 'zuerich'
|
||||
- region.id == 2
|
||||
- region.endpoint == 'https://cloud.zrh.example.com'
|
||||
|
@ -121,7 +121,7 @@
|
|||
- name: verify test remove region in check mode
|
||||
assert:
|
||||
that:
|
||||
- region|changed
|
||||
- region is changed
|
||||
- region.name == 'zuerich'
|
||||
- region.id == 2
|
||||
- region.endpoint == 'https://cloud.zrh.example.com'
|
||||
|
@ -136,7 +136,7 @@
|
|||
- name: verify test remove region
|
||||
assert:
|
||||
that:
|
||||
- region|changed
|
||||
- region is changed
|
||||
- region.name == 'zuerich'
|
||||
- region.id == 2
|
||||
- region.endpoint == 'https://cloud.zrh.example.com'
|
||||
|
@ -151,4 +151,4 @@
|
|||
- name: verify test remove region idempotence
|
||||
assert:
|
||||
that:
|
||||
- not region|changed
|
||||
- region is not changed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue