From adeeb1299f72fef85f9ac233fc7f4a168c9131ce Mon Sep 17 00:00:00 2001 From: "R. Sicart" Date: Wed, 7 Sep 2022 10:33:17 +0200 Subject: [PATCH] Fix assertion when appending privs in mysql_role_initial integration tests --- .../test_mysql_role/tasks/mysql_role_initial.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/integration/targets/test_mysql_role/tasks/mysql_role_initial.yml b/tests/integration/targets/test_mysql_role/tasks/mysql_role_initial.yml index 8c81a75..36f2418 100644 --- a/tests/integration/targets/test_mysql_role/tasks/mysql_role_initial.yml +++ b/tests/integration/targets/test_mysql_role/tasks/mysql_role_initial.yml @@ -1491,16 +1491,10 @@ priv: '{{ test_db1 }}.{{ test_table }}:SELECT,INSERT/{{ test_db2 }}.{{ test_table }}:DELETE' append_privs: yes - # TODO it must be changed. The module uses user_mod function - # taken from mysql_user module. It's a bug / expected behavior - # because I added a similar tasks to mysql_user tests - # https://github.com/ansible-collections/community.mysql/issues/50#issuecomment-871216825 - # and it's also failed. Create an issue after the module is merged to avoid conflicts. - # TODO Fix this after user_mod is fixed. - - name: Check + - name: Check that there's no change assert: that: - - result is changed + - result is not changed - name: Rewrite privs <<: *task_params