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
|
@ -7,7 +7,7 @@
|
|||
- name: Validate results of rax_network with no args
|
||||
assert:
|
||||
that:
|
||||
- rax_network|failed
|
||||
- rax_network is failed
|
||||
- 'rax_network.msg == "missing required arguments: label"'
|
||||
# ============================================================
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
|||
- name: Validate results of rax_network with no args
|
||||
assert:
|
||||
that:
|
||||
- rax_network|failed
|
||||
- rax_network is failed
|
||||
- rax_network.msg == 'No credentials supplied!'
|
||||
# ============================================================
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
|||
- name: Validate results of rax_network with creds
|
||||
assert:
|
||||
that:
|
||||
- rax_network|failed
|
||||
- rax_network is failed
|
||||
- rax_network.msg.startswith('None is not a valid region')
|
||||
# ============================================================
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
|||
- name: Validate results of rax_network with creds and region
|
||||
assert:
|
||||
that:
|
||||
- rax_network|failed
|
||||
- rax_network is failed
|
||||
- 'rax_network.msg == "missing required arguments: cidr"'
|
||||
# ============================================================
|
||||
|
||||
|
@ -79,8 +79,8 @@
|
|||
- name: Validate results of rax_network with creds, region and cidr
|
||||
assert:
|
||||
that:
|
||||
- rax_network|success
|
||||
- rax_network|changed
|
||||
- rax_network is successful
|
||||
- rax_network is changed
|
||||
- rax_network.networks.0.cidr == "172.17.141.0/24"
|
||||
- rax_network.networks.0.label == "{{ resource_prefix }}-1"
|
||||
|
||||
|
@ -96,8 +96,8 @@
|
|||
- name: Validate delete integration 1
|
||||
assert:
|
||||
that:
|
||||
- rax_network|changed
|
||||
- rax_network|success
|
||||
- rax_network is changed
|
||||
- rax_network is successful
|
||||
- rax_network.networks.0.label == "{{ resource_prefix }}-1"
|
||||
- rax_network.networks.0.cidr == "172.17.141.0/24"
|
||||
# ============================================================
|
||||
|
@ -117,8 +117,8 @@
|
|||
- name: Validate rax_network idempotency 1
|
||||
assert:
|
||||
that:
|
||||
- rax_network|success
|
||||
- rax_network|changed
|
||||
- rax_network is successful
|
||||
- rax_network is changed
|
||||
- rax_network.networks.0.cidr == "172.17.142.0/24"
|
||||
- rax_network.networks.0.label == "{{ resource_prefix }}-2"
|
||||
|
||||
|
@ -134,8 +134,8 @@
|
|||
- name: Validate rax_network idempotency 2
|
||||
assert:
|
||||
that:
|
||||
- rax_network|success
|
||||
- not rax_network|changed
|
||||
- rax_network is successful
|
||||
- rax_network is not changed
|
||||
- rax_network.networks.0.cidr == "172.17.142.0/24"
|
||||
- rax_network.networks.0.label == "{{ resource_prefix }}-2"
|
||||
|
||||
|
@ -151,8 +151,8 @@
|
|||
- name: Validate delete integration 2
|
||||
assert:
|
||||
that:
|
||||
- rax_network|changed
|
||||
- rax_network|success
|
||||
- rax_network is changed
|
||||
- rax_network is successful
|
||||
- rax_network.networks.0.label == "{{ resource_prefix }}-2"
|
||||
- rax_network.networks.0.cidr == "172.17.142.0/24"
|
||||
# ============================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue