mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-30 00:21:27 -07:00
Is changed (#427)
* Refactor tests to use "is" and "is not" changed * Refactor tests to use is succeeded or is failed * Reformat indentation * Add filter "bool" to prevent issues
This commit is contained in:
parent
61586ae4cc
commit
0a68bb270f
20 changed files with 194 additions and 188 deletions
|
@ -37,7 +37,7 @@
|
|||
- name: assert output message mysql user was removed
|
||||
assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- result is changed
|
||||
|
||||
# ============================================================
|
||||
- name: create blank mysql user to be removed later
|
||||
|
@ -58,7 +58,7 @@
|
|||
- name: assert changed is true for removing all blank users
|
||||
assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- result is changed
|
||||
|
||||
- name: remove blank mysql user with hosts=all (expect ok)
|
||||
mysql_user:
|
||||
|
@ -71,4 +71,4 @@
|
|||
- name: assert changed is true for removing all blank users
|
||||
assert:
|
||||
that:
|
||||
- "result.changed == false"
|
||||
- result is not changed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue