mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-21 21:41:46 -07:00
laurent review
This commit is contained in:
parent
a7d49feb9f
commit
ea8d348391
2 changed files with 1 additions and 23 deletions
|
@ -489,21 +489,9 @@
|
|||
plugin_auth_string: '{{ test_plugin_auth_string }}'
|
||||
salt: '{{ test_salt }}'
|
||||
priv: '{{ test_default_priv }}'
|
||||
register: result
|
||||
|
||||
- name: Plugin auth | Assert that plugin_auth_string and salt was successful
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result is succeeded
|
||||
|
||||
- name: Plugin auth | Connect with user and password
|
||||
ansible.builtin.command: "{{ mysql_command }} -u {{ test_user_name }} -p{{ test_plugin_auth_string }} -e \"SELECT 1\""
|
||||
register: result
|
||||
|
||||
- name: Plugin auth | Assert that connection was successful
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result is succeeded
|
||||
|
||||
- name: Plugin auth | Alter user with same plugin auth and same salt
|
||||
community.mysql.mysql_user:
|
||||
|
@ -515,11 +503,7 @@
|
|||
salt: '{{ test_salt }}'
|
||||
priv: '{{ test_default_priv }}'
|
||||
register: result
|
||||
|
||||
- name: Plugin auth | Assert that plugin_auth_string and salt doesn't trigger change
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result is not changed
|
||||
failed_when: result is not changed
|
||||
|
||||
- name: cleanup user
|
||||
ansible.builtin.include_tasks: utils/remove_user.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue