From 81da566c7e2a6681d24d771a2cd9c60b6f1318d1 Mon Sep 17 00:00:00 2001 From: "R. Sicart" Date: Thu, 1 Sep 2022 18:06:21 +0200 Subject: [PATCH] Format long lines --- .../targets/test_mysql_user/tasks/test_privs.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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