mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-31 13:29:08 -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
|
@ -11,7 +11,7 @@
|
|||
# some dnf python files after the package is uninstalled.
|
||||
- name: uninstall python2-dnf with shell
|
||||
shell: dnf -y remove python2-dnf
|
||||
when: rpm_result|success
|
||||
when: rpm_result is successful
|
||||
|
||||
# UNINSTALL
|
||||
# With 'python2-dnf' uninstalled, the first call to 'dnf' should install
|
||||
|
@ -203,7 +203,7 @@
|
|||
- name: check non-existent rpm install failed
|
||||
assert:
|
||||
that:
|
||||
- non_existent_rpm|failed
|
||||
- non_existent_rpm is failed
|
||||
|
||||
# Install in installroot='/'. This should be identical to default
|
||||
- name: install sos in /
|
||||
|
@ -345,7 +345,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "not dnf_result.changed"
|
||||
- "dnf_result|failed"
|
||||
- "dnf_result is failed"
|
||||
|
||||
- name: verify dnf module outputs
|
||||
assert:
|
||||
|
@ -363,7 +363,7 @@
|
|||
- name: verify installation failed
|
||||
assert:
|
||||
that:
|
||||
- "dnf_result|failed"
|
||||
- "dnf_result is failed"
|
||||
- "not dnf_result.changed"
|
||||
|
||||
- name: verify dnf module outputs
|
||||
|
@ -382,7 +382,7 @@
|
|||
- name: verify installation failed
|
||||
assert:
|
||||
that:
|
||||
- "dnf_result|failed"
|
||||
- "dnf_result is failed"
|
||||
- "not dnf_result.changed"
|
||||
|
||||
- name: verify dnf module outputs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue