mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-24 11:21:26 -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
|
@ -22,4 +22,4 @@
|
|||
- name: assert message failure (expect failed=true)
|
||||
assert:
|
||||
that:
|
||||
- "output.failed | bool == true"
|
||||
- output is failed
|
||||
|
|
|
@ -31,6 +31,6 @@
|
|||
- name: assert output mysql variable name and value
|
||||
assert:
|
||||
that:
|
||||
- "result.changed | bool == true"
|
||||
- result is changed
|
||||
- "'{{ var_name }}' in result.stdout"
|
||||
- "'{{ var_value }}' in result.stdout"
|
||||
|
|
|
@ -35,6 +35,6 @@
|
|||
- name: assert output variable info match mysql variable info
|
||||
assert:
|
||||
that:
|
||||
- "result.changed | bool == true"
|
||||
- result is changed
|
||||
- "key_name in result.stdout"
|
||||
- "key_value in result.stdout"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue