mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-28 15:41:26 -07:00
Fix assertions
This commit is contained in:
parent
be0244e5bc
commit
9ffdeb0be3
5 changed files with 185 additions and 7 deletions
|
@ -51,7 +51,7 @@
|
|||
- name: assert output message for current privileges
|
||||
assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- result is changed
|
||||
|
||||
- name: run command to show privileges for user (expect privileges in stdout)
|
||||
command: "{{ mysql_command }} -e \"SHOW GRANTS FOR '{{user_name_2}}'@'localhost'\""
|
||||
|
@ -101,7 +101,7 @@
|
|||
- name: Assert that priv changed
|
||||
assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- result is changed
|
||||
|
||||
- name: Add privs to a specific table (expect ok)
|
||||
mysql_user:
|
||||
|
@ -162,7 +162,7 @@
|
|||
- name: Assert that priv changed
|
||||
assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- result is changed
|
||||
|
||||
- name: Test idempotency (expect ok)
|
||||
mysql_user:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue