mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-21 21:41: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
|
# Test plugin auth with a salt
|
||||||
#
|
#
|
||||||
|
|
||||||
- name: Plugin auth | Create user with plugin auth and salt
|
- name: Plugin auth | Create user with plugin auth and salt
|
||||||
mysql_user:
|
community.mysql.mysql_user:
|
||||||
<<: *mysql_params
|
<<: *mysql_params
|
||||||
name: '{{ test_user_name }}'
|
name: '{{ test_user_name }}'
|
||||||
host: '%'
|
host: '%'
|
||||||
|
@ -493,21 +492,21 @@
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: Plugin auth | Assert that plugin_auth_string and salt was successful
|
- name: Plugin auth | Assert that plugin_auth_string and salt was successful
|
||||||
assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- result is succeeded
|
- result is succeeded
|
||||||
|
|
||||||
- name: Plugin auth | Connect with user and password
|
- 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
|
register: result
|
||||||
|
|
||||||
- name: Plugin auth | Assert that connection was successful
|
- name: Plugin auth | Assert that connection was successful
|
||||||
assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- result is succeeded
|
- result is succeeded
|
||||||
|
|
||||||
- name: Plugin auth | Alter user with same plugin auth and same salt
|
- name: Plugin auth | Alter user with same plugin auth and same salt
|
||||||
mysql_user:
|
community.mysql.mysql_user:
|
||||||
<<: *mysql_params
|
<<: *mysql_params
|
||||||
name: '{{ test_user_name }}'
|
name: '{{ test_user_name }}'
|
||||||
host: '%'
|
host: '%'
|
||||||
|
@ -518,11 +517,11 @@
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: Plugin auth | Assert that plugin_auth_string and salt doesn't trigger change
|
- name: Plugin auth | Assert that plugin_auth_string and salt doesn't trigger change
|
||||||
assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- result is not changed
|
- result is not changed
|
||||||
|
|
||||||
# Cleanup
|
- name: cleanup user
|
||||||
- include_tasks: utils/remove_user.yml
|
ansible.builtin.include_tasks: utils/remove_user.yml
|
||||||
vars:
|
vars:
|
||||||
user_name: "{{ test_user_name }}"
|
user_name: "{{ test_user_name }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue