From 9209a123c6fe35113e36201b57c9feeb1c5ebf6d Mon Sep 17 00:00:00 2001 From: "E.S. Rosenberg a.k.a. Keeper of the Keys" Date: Wed, 5 Mar 2025 17:57:36 +0200 Subject: [PATCH] Fix host of user (was % should have been localhost after deleting `host:` earlier) Signed-off-by: E.S. Rosenberg a.k.a. Keeper of the Keys --- .../test_mysql_user/tasks/test_user_locking.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/integration/targets/test_mysql_user/tasks/test_user_locking.yml b/tests/integration/targets/test_mysql_user/tasks/test_user_locking.yml index 5d77f4d..6c3976f 100644 --- a/tests/integration/targets/test_mysql_user/tasks/test_user_locking.yml +++ b/tests/integration/targets/test_mysql_user/tasks/test_user_locking.yml @@ -31,7 +31,7 @@ community.mysql.mysql_query: <<: *mysql_params query: - - SHOW CREATE USER 'mysql_locked_user'@'%' + - SHOW CREATE USER 'mysql_locked_user'@'localhost' register: locked_user_creation failed_when: - locked_user_creation.query_result[0][0] is not search('ACCOUNT LOCK') @@ -48,7 +48,7 @@ community.mysql.mysql_query: <<: *mysql_params query: - - SHOW CREATE USER 'mysql_locked_user'@'%' + - SHOW CREATE USER 'mysql_locked_user'@'localhost' register: locked_user_creation failed_when: - locked_user_creation.query_result[0][0] is search('ACCOUNT LOCK') @@ -72,7 +72,7 @@ community.mysql.mysql_query: <<: *mysql_params query: - - SHOW CREATE USER 'mysql_locked_user'@'%' + - SHOW CREATE USER 'mysql_locked_user'@'localhost' register: locked_user_creation failed_when: - locked_user_creation.query_result[0][0] is search('ACCOUNT LOCK') @@ -89,7 +89,7 @@ community.mysql.mysql_query: <<: *mysql_params query: - - SHOW CREATE USER 'mysql_locked_user'@'%' + - SHOW CREATE USER 'mysql_locked_user'@'localhost' register: locked_user_creation failed_when: - locked_user_creation.query_result[0][0] is search('ACCOUNT LOCK') @@ -112,7 +112,7 @@ community.mysql.mysql_query: <<: *mysql_params query: - - SHOW CREATE USER 'mysql_locked_user'@'%' + - SHOW CREATE USER 'mysql_locked_user'@'localhost' register: locked_user_creation failed_when: - locked_user_creation.query_result[0][0] is search('ACCOUNT LOCK')