mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-06 22:24:24 -07:00
tests: fix syntax
This commit is contained in:
parent
3edba3d8ca
commit
12a2bd358e
13 changed files with 201 additions and 54 deletions
|
@ -37,7 +37,11 @@
|
|||
state: present
|
||||
when: current_append_privs == "yes"
|
||||
|
||||
- include_tasks: utils/assert_user.yml user_name={{ user_name_2 }} user_host=% priv='SELECT'
|
||||
- include_tasks: utils/assert_user.yml
|
||||
vars:
|
||||
user_name: "{{ user_name_2 }}"
|
||||
user_host: "%"
|
||||
priv: 'SELECT'
|
||||
when: current_append_privs == "yes"
|
||||
|
||||
- name: Privs | Create user with current privileges (expect changed=true)
|
||||
|
@ -188,7 +192,9 @@
|
|||
that:
|
||||
- result is not changed
|
||||
|
||||
- include_tasks: utils/remove_user.yml user_name="{{ user_name_2 }}"
|
||||
- include_tasks: utils/remove_user.yml
|
||||
vars:
|
||||
user_name: "{{ user_name_2 }}"
|
||||
|
||||
# ============================================================
|
||||
- name: Privs | Grant all privileges with grant option
|
||||
|
@ -259,4 +265,6 @@
|
|||
- result is failed
|
||||
- "'Error granting privileges' in result.msg"
|
||||
|
||||
- include_tasks: utils/remove_user.yml user_name="{{ user_name_2 }}"
|
||||
- include_tasks: utils/remove_user.yml
|
||||
vars:
|
||||
user_name: "{{ user_name_2 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue