mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-04 05:04:23 -07:00
Readd tests
This commit is contained in:
parent
a5250f2374
commit
4ea8502591
1 changed files with 51 additions and 51 deletions
|
@ -579,60 +579,60 @@
|
||||||
user_name: "{{ test_user_name }}"
|
user_name: "{{ test_user_name }}"
|
||||||
plugin_type: "{{ test_plugin_type }}"
|
plugin_type: "{{ test_plugin_type }}"
|
||||||
|
|
||||||
# - name: Plugin auth | Connect with user and password
|
- 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"'
|
ansible.builtin.command: '{{ mysql_command }} -u {{ test_user_name }} -p{{ test_plugin_auth_string }} -e "SELECT 1"'
|
||||||
|
|
||||||
# - name: Plugin auth | Change auth user plugin in check mode
|
- name: Plugin auth | Change auth user plugin in check mode
|
||||||
# community.mysql.mysql_user:
|
community.mysql.mysql_user:
|
||||||
# <<: *mysql_params
|
<<: *mysql_params
|
||||||
# name: "{{ test_user_name }}"
|
name: "{{ test_user_name }}"
|
||||||
# host: '%'
|
host: '%'
|
||||||
# plugin: caching_sha2_password
|
plugin: caching_sha2_password
|
||||||
# plugin_auth_string: "{{ test_plugin_auth_string }}"
|
plugin_auth_string: "{{ test_plugin_auth_string }}"
|
||||||
# salt: "{{ test_salt }}"
|
salt: "{{ test_salt }}"
|
||||||
# priv: "{{ test_default_priv }}"
|
priv: "{{ test_default_priv }}"
|
||||||
# check_mode: true
|
check_mode: true
|
||||||
# register: result
|
register: result
|
||||||
# failed_when: result is not changed
|
failed_when: result is not changed
|
||||||
|
|
||||||
# - name: Plugin auth | Check that the expected plugin type is set (not changed)
|
- name: Plugin auth | Check that the expected plugin type is set (not changed)
|
||||||
# ansible.builtin.include_tasks: utils/assert_plugin.yml
|
ansible.builtin.include_tasks: utils/assert_plugin.yml
|
||||||
# vars:
|
vars:
|
||||||
# user_name: "{{ test_user_name }}"
|
user_name: "{{ test_user_name }}"
|
||||||
# plugin_type: "{{ test_plugin_type }}"
|
plugin_type: "{{ test_plugin_type }}"
|
||||||
|
|
||||||
# - name: Plugin auth | Change auth user plugin
|
- name: Plugin auth | Change auth user plugin
|
||||||
# community.mysql.mysql_user:
|
community.mysql.mysql_user:
|
||||||
# <<: *mysql_params
|
<<: *mysql_params
|
||||||
# name: "{{ test_user_name }}"
|
name: "{{ test_user_name }}"
|
||||||
# host: '%'
|
host: '%'
|
||||||
# plugin: caching_sha2_password
|
plugin: caching_sha2_password
|
||||||
# plugin_auth_string: "{{ test_plugin_auth_string }}"
|
plugin_auth_string: "{{ test_plugin_auth_string }}"
|
||||||
# salt: "{{ test_salt }}"
|
salt: "{{ test_salt }}"
|
||||||
# priv: "{{ test_default_priv }}"
|
priv: "{{ test_default_priv }}"
|
||||||
# register: result
|
register: result
|
||||||
# failed_when: result is not changed
|
failed_when: result is not changed
|
||||||
|
|
||||||
# - name: Plugin auth | Check that the expected (new) plugin type is set
|
- name: Plugin auth | Check that the expected (new) plugin type is set
|
||||||
# ansible.builtin.include_tasks: utils/assert_plugin.yml
|
ansible.builtin.include_tasks: utils/assert_plugin.yml
|
||||||
# vars:
|
vars:
|
||||||
# user_name: "{{ test_user_name }}"
|
user_name: "{{ test_user_name }}"
|
||||||
# plugin_type: caching_sha2_password
|
plugin_type: caching_sha2_password
|
||||||
|
|
||||||
# - name: Plugin auth | Change auth user plugin again (should not change)
|
- name: Plugin auth | Change auth user plugin again (should not change)
|
||||||
# community.mysql.mysql_user:
|
community.mysql.mysql_user:
|
||||||
# <<: *mysql_params
|
<<: *mysql_params
|
||||||
# name: "{{ test_user_name }}"
|
name: "{{ test_user_name }}"
|
||||||
# host: '%'
|
host: '%'
|
||||||
# plugin: caching_sha2_password
|
plugin: caching_sha2_password
|
||||||
# plugin_auth_string: "{{ test_plugin_auth_string }}"
|
plugin_auth_string: "{{ test_plugin_auth_string }}"
|
||||||
# salt: "{{ test_salt }}"
|
salt: "{{ test_salt }}"
|
||||||
# priv: "{{ test_default_priv }}"
|
priv: "{{ test_default_priv }}"
|
||||||
# register: result
|
register: result
|
||||||
# failed_when: result is changed
|
failed_when: result is changed
|
||||||
|
|
||||||
# - name: Plugin auth | Check that the expected (not changed) plugin type is set
|
- name: Plugin auth | Check that the expected (not changed) plugin type is set
|
||||||
# ansible.builtin.include_tasks: utils/assert_plugin.yml
|
ansible.builtin.include_tasks: utils/assert_plugin.yml
|
||||||
# vars:
|
vars:
|
||||||
# user_name: "{{ test_user_name }}"
|
user_name: "{{ test_user_name }}"
|
||||||
# plugin_type: caching_sha2_password
|
plugin_type: caching_sha2_password
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue