From 2575eaebe254e9fc6ff021098bcb162b34583825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Sanju=C3=A1n?= Date: Mon, 26 Aug 2024 12:01:43 +0200 Subject: [PATCH] Test without check mode --- .../tasks/test_user_plugin_auth.yml | 76 +++++++++---------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/tests/integration/targets/test_mysql_user/tasks/test_user_plugin_auth.yml b/tests/integration/targets/test_mysql_user/tasks/test_user_plugin_auth.yml index a7d77c5..8ddd8b7 100644 --- a/tests/integration/targets/test_mysql_user/tasks/test_user_plugin_auth.yml +++ b/tests/integration/targets/test_mysql_user/tasks/test_user_plugin_auth.yml @@ -591,48 +591,48 @@ plugin_auth_string: "{{ test_plugin_auth_string }}" salt: "{{ test_salt }}" priv: "{{ test_default_priv }}" - check_mode: true + # check_mode: true register: result failed_when: result is not changed - - name: Plugin auth | Check that the expected plugin type is set (not changed) - ansible.builtin.include_tasks: utils/assert_plugin.yml - vars: - user_name: "{{ test_user_name }}" - plugin_type: "{{ test_plugin_type }}" + # - name: Plugin auth | Check that the expected plugin type is set (not changed) + # ansible.builtin.include_tasks: utils/assert_plugin.yml + # vars: + # user_name: "{{ test_user_name }}" + # plugin_type: "{{ test_plugin_type }}" - - name: Plugin auth | Change auth user plugin - community.mysql.mysql_user: - <<: *mysql_params - name: "{{ test_user_name }}" - host: '%' - plugin: caching_sha2_password - plugin_auth_string: "{{ test_plugin_auth_string }}" - salt: "{{ test_salt }}" - priv: "{{ test_default_priv }}" - register: result - failed_when: result is not changed + # - name: Plugin auth | Change auth user plugin + # community.mysql.mysql_user: + # <<: *mysql_params + # name: "{{ test_user_name }}" + # host: '%' + # plugin: caching_sha2_password + # plugin_auth_string: "{{ test_plugin_auth_string }}" + # salt: "{{ test_salt }}" + # priv: "{{ test_default_priv }}" + # register: result + # failed_when: result is not changed - - name: Plugin auth | Check that the expected (new) plugin type is set - ansible.builtin.include_tasks: utils/assert_plugin.yml - vars: - user_name: "{{ test_user_name }}" - plugin_type: caching_sha2_password + # - name: Plugin auth | Check that the expected (new) plugin type is set + # ansible.builtin.include_tasks: utils/assert_plugin.yml + # vars: + # user_name: "{{ test_user_name }}" + # plugin_type: caching_sha2_password - - name: Plugin auth | Change auth user plugin again (should not change) - community.mysql.mysql_user: - <<: *mysql_params - name: "{{ test_user_name }}" - host: '%' - plugin: caching_sha2_password - plugin_auth_string: "{{ test_plugin_auth_string }}" - salt: "{{ test_salt }}" - priv: "{{ test_default_priv }}" - register: result - failed_when: result is changed + # - name: Plugin auth | Change auth user plugin again (should not change) + # community.mysql.mysql_user: + # <<: *mysql_params + # name: "{{ test_user_name }}" + # host: '%' + # plugin: caching_sha2_password + # plugin_auth_string: "{{ test_plugin_auth_string }}" + # salt: "{{ test_salt }}" + # priv: "{{ test_default_priv }}" + # register: result + # failed_when: result is changed - - name: Plugin auth | Check that the expected (not changed) plugin type is set - ansible.builtin.include_tasks: utils/assert_plugin.yml - vars: - user_name: "{{ test_user_name }}" - plugin_type: caching_sha2_password + # - name: Plugin auth | Check that the expected (not changed) plugin type is set + # ansible.builtin.include_tasks: utils/assert_plugin.yml + # vars: + # user_name: "{{ test_user_name }}" + # plugin_type: caching_sha2_password