From 6dab807ea1e181e3c0483a70845b00e60e1ba407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Sanju=C3=A1n?= Date: Wed, 28 Aug 2024 18:04:42 +0200 Subject: [PATCH] Fix newpass var --- .../targets/test_mysql_user/tasks/test_user_plugin_auth.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 df62223..7fed6e8 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 @@ -644,14 +644,14 @@ name: "{{ test_user_name }}" host: '%' plugin: caching_sha2_password - plugin_auth_string: newpass + plugin_auth_string: "{{ test_plugin_new_auth_string }}" salt: "{{ test_salt }}" priv: "{{ test_default_priv }}" register: result failed_when: result is not changed - name: Plugin auth | Connect with user and password - ansible.builtin.command: '{{ mysql_command }} -u {{ test_user_name }} -pnewpass -e "SELECT 1"' + ansible.builtin.command: '{{ mysql_command }} -u {{ test_user_name }} -p{{ test_plugin_new_auth_string }} -e "SELECT 1"' changed_when: false - name: Plugin auth | Check that the expected plugin type is set after change