diff --git a/tests/integration/targets/test_mysql_role/tasks/test_priv_subtract.yml b/tests/integration/targets/test_mysql_role/tasks/test_priv_subtract.yml index 5152bdf..cefe32c 100644 --- a/tests/integration/targets/test_mysql_role/tasks/test_priv_subtract.yml +++ b/tests/integration/targets/test_mysql_role/tasks/test_priv_subtract.yml @@ -75,17 +75,17 @@ command: "{{ mysql_command }} -e \"SHOW GRANTS FOR '{{ role2 }}'\"" register: result - - name: Assert that the permissions were not changed if check_mode is set to 'no' + - name: Assert that the permissions were not changed if check_mode is set to 'yes' assert: that: - "'GRANT SELECT, INSERT ON `data1`.*' in result.stdout" - when: enable_check_mode == 'no' + when: enable_check_mode == 'yes' - - name: Assert that only DELETE was revoked if check_mode is set to 'yes' + - name: Assert that only DELETE was revoked if check_mode is set to 'no' assert: that: - "'GRANT SELECT ON `data1`.*' in result.stdout" - when: enable_check_mode == 'yes' + when: enable_check_mode == 'no' - name: Try to subtract invalid privileges mysql_role: diff --git a/tests/integration/targets/test_mysql_user/tasks/test_priv_subtract.yml b/tests/integration/targets/test_mysql_user/tasks/test_priv_subtract.yml index ee959c1..dd149fc 100644 --- a/tests/integration/targets/test_mysql_user/tasks/test_priv_subtract.yml +++ b/tests/integration/targets/test_mysql_user/tasks/test_priv_subtract.yml @@ -78,17 +78,17 @@ command: "{{ mysql_command }} -e \"SHOW GRANTS FOR '{{ user_name_4 }}'@'localhost'\"" register: result - - name: Assert that the permissions were not changed if check_mode is set to 'no' + - name: Assert that the permissions were not changed if check_mode is set to 'yes' assert: that: - "'GRANT SELECT, INSERT ON `data1`.*' in result.stdout" - when: enable_check_mode == 'no' + when: enable_check_mode == 'yes' - - name: Assert that only DELETE was revoked if check_mode is set to 'yes' + - name: Assert that only DELETE was revoked if check_mode is set to 'no' assert: that: - "'GRANT SELECT ON `data1`.*' in result.stdout" - when: enable_check_mode == 'yes' + when: enable_check_mode == 'no' - name: Try to subtract invalid privileges mysql_user: