From 3b388eb775df097c5895fcb7ec5e9a4bd0953b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Sanju=C3=A1n?= Date: Fri, 23 Aug 2024 16:52:02 +0200 Subject: [PATCH] Add check --- .../test_mysql_user/tasks/test_user_plugin_auth.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/integration/targets/test_mysql_user/tasks/test_user_plugin_auth.yml b/tests/integration/targets/test_mysql_user/tasks/test_user_plugin_auth.yml index 8118b22..125c5bf 100644 --- a/tests/integration/targets/test_mysql_user/tasks/test_user_plugin_auth.yml +++ b/tests/integration/targets/test_mysql_user/tasks/test_user_plugin_auth.yml @@ -564,6 +564,12 @@ password: "{{ test_plugin_auth_string }}" priv: "{{ test_default_priv }}" + - name: Plugin auth | Check that the expected (previous) plugin type is set + ansible.builtin.include_tasks: utils/assert_plugin.yml + vars: + user_name: "{{ test_user_name }}" + plugin_type: "{{ test_plugin_type }}" + - 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"' @@ -583,7 +589,7 @@ ansible.builtin.include_tasks: utils/assert_plugin.yml vars: user_name: "{{ test_user_name }}" - plugin_type: "{{ caching_sha2_password }}" + plugin_type: "{{ test_plugin_type }}" - name: Plugin auth | Change auth user plugin community.mysql.mysql_user: