mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-21 05:21:46 -07:00
lint
This commit is contained in:
parent
93c842a6da
commit
2eec847197
1 changed files with 9 additions and 10 deletions
|
@ -480,9 +480,8 @@
|
|||
# ============================================================
|
||||
# Test plugin auth with a salt
|
||||
#
|
||||
|
||||
- name: Plugin auth | Create user with plugin auth and salt
|
||||
mysql_user:
|
||||
community.mysql.mysql_user:
|
||||
<<: *mysql_params
|
||||
name: '{{ test_user_name }}'
|
||||
host: '%'
|
||||
|
@ -493,21 +492,21 @@
|
|||
register: result
|
||||
|
||||
- name: Plugin auth | Assert that plugin_auth_string and salt was successful
|
||||
assert:
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result is succeeded
|
||||
|
||||
- name: Plugin auth | Connect with user and password
|
||||
command: "{{ mysql_command }} -u {{ test_user_name }} -p{{ test_plugin_auth_string }} -e \"SELECT 1\""
|
||||
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
|
||||
assert:
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result is succeeded
|
||||
|
||||
- name: Plugin auth | Alter user with same plugin auth and same salt
|
||||
mysql_user:
|
||||
community.mysql.mysql_user:
|
||||
<<: *mysql_params
|
||||
name: '{{ test_user_name }}'
|
||||
host: '%'
|
||||
|
@ -518,11 +517,11 @@
|
|||
register: result
|
||||
|
||||
- name: Plugin auth | Assert that plugin_auth_string and salt doesn't trigger change
|
||||
assert:
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result is not changed
|
||||
|
||||
# Cleanup
|
||||
- include_tasks: utils/remove_user.yml
|
||||
- name: cleanup user
|
||||
ansible.builtin.include_tasks: utils/remove_user.yml
|
||||
vars:
|
||||
user_name: "{{ test_user_name }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue