diff options
author | Andrew Klychkov <aaklychkov@mail.ru> | 2020-08-07 21:00:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 13:00:26 -0500 |
commit | c632d74487e7425cd4ad78bfcf37475610deeeb8 (patch) | |
tree | 2ba852b57af81143b1869417b93f86f81b5e51f4 /test/integration/targets | |
parent | 1b41129402cf6c31d24ff95386e7003f82d5caec (diff) | |
download | ansible-c632d74487e7425cd4ad78bfcf37475610deeeb8.tar.gz |
mysql_user: fix overriding user passowrd to the same (#70833)
Diffstat (limited to 'test/integration/targets')
-rw-r--r-- | test/integration/targets/mysql_user/tasks/user_password_update_test.yml | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/test/integration/targets/mysql_user/tasks/user_password_update_test.yml b/test/integration/targets/mysql_user/tasks/user_password_update_test.yml index 1f126c48b5..a85e4edf04 100644 --- a/test/integration/targets/mysql_user/tasks/user_password_update_test.yml +++ b/test/integration/targets/mysql_user/tasks/user_password_update_test.yml @@ -46,18 +46,17 @@ register: user_password_old when: user_password_old_create is failed -# FIXME: not sure why this is failing, but it looks like it should expect changed=true -#- name: update user2 state=present with same password (expect changed=false) -# mysql_user: -# name: '{{ user_name_2 }}' -# password: '{{ user_password_2 }}' -# priv: '*.*:ALL' -# state: present -# login_unix_socket: '{{ mysql_socket }}' -# register: result -# -#- name: assert output user2 was not updated -# assert: { that: "result.changed == false" } +- name: update user2 state=present with same password (expect changed=false) + mysql_user: + name: '{{ user_name_2 }}' + password: '{{ user_password_2 }}' + priv: '*.*:ALL' + state: present + login_unix_socket: '{{ mysql_socket }}' + register: result + +- name: assert output user2 was not updated + assert: { that: "result.changed == false" } - include: assert_user.yml user_name={{user_name_2}} priv='ALL PRIVILEGES' |