diff --git a/tests/integration/targets/test_mysql_user/tasks/test_privs.yml b/tests/integration/targets/test_mysql_user/tasks/test_privs.yml index be17908..3c911a9 100644 --- a/tests/integration/targets/test_mysql_user/tasks/test_privs.yml +++ b/tests/integration/targets/test_mysql_user/tasks/test_privs.yml @@ -173,12 +173,14 @@ state: present register: result - # FIXME: on mysql >=8 and mariadb >=10.5.2 there's always a change because the REPLICATION CLIENT privilege was renamed to BINLOG MONITOR + # FIXME: on mysql >=8 and mariadb >=10.5.2 there's always a change because + # the REPLICATION CLIENT privilege was renamed to BINLOG MONITOR - name: Assert that priv did not change assert: that: - result is not changed - when: (install_type == 'mysql' and mysql_version is version('8', '<')) or (install_type == 'mariadb' and mariadb_version is version('10.5', '<')) + when: (install_type == 'mysql' and mysql_version is version('8', '<')) or + (install_type == 'mariadb' and mariadb_version is version('10.5', '<')) - name: remove username mysql_user: @@ -211,7 +213,7 @@ - name: Assert that 'GRANT' permission is present assert: that: - - "mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y'" + - mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y' - name: Test idempotency (expect ok) mysql_user: @@ -227,7 +229,8 @@ assert: that: - result is not changed - when: (install_type == 'mysql' and mysql_version is version('8', '<')) or (install_type == 'mariadb') + when: (install_type == 'mysql' and mysql_version is version('8', '<')) or + (install_type == 'mariadb') - name: Collect user info by host community.mysql.mysql_info: @@ -238,7 +241,7 @@ - name: Assert that 'GRANT' permission is present assert: that: - - "mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y'" + - mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y' # ============================================================ - name: update user with invalid privileges