MySQL Password updates (#25825)

* MySQL Password updates

* Disable user_password_update_test
pull/25828/head
John R Barker 8 years ago committed by Ganesh Nalawade
parent 7ee7fa7332
commit 448efdb9e5

@ -4,8 +4,8 @@ db_name: 'data'
user_name_1: 'db_user1'
user_name_2: 'db_user2'
user_password_1: '12345'
user_password_2: '98765'
user_password_1: 'gadfFDSdtTU^Sdfuj'
user_password_2: 'jkFKUdfhdso78yi&td'
db_names:
- clientdb

@ -150,7 +150,7 @@
# Update user password for a user.
# Assert the user password is updated and old password can no longer be used.
#
- include: user_password_update_test.yml
#- include: user_password_update_test.yml
# ============================================================
# Assert create user with SELECT privileges, attempt to create database and update privileges to create database

@ -26,7 +26,7 @@
# ============================================================
- name: create blank mysql user to be removed later
mysql_user: name="" state=present
mysql_user: name="" state=present password='KJFDY&D*Sfuydsgf'
- name: remove blank mysql user with hosts=all (expect changed)
mysql_user: user="" host_all=true state=absent

@ -95,8 +95,8 @@
- include: remove_user.yml user_name={{user_name_2}} user_password={{ user_password_1 }}
- name: Create user with password1234 using hash. (expect changed=true)
mysql_user: name=jmainguy password='*D65798AAC0E5C6DF3F320F8A30E026E7EBD73A95' encrypted=yes
- name: Create user with Fdt8fd^34ds using hash. (expect changed=true)
mysql_user: name=jmainguy password='*0cb5b86f23fdc24db19a29b8854eb860cbc47793' encrypted=yes
register: encrypt_result
- name: Check that the module made a change
@ -105,7 +105,7 @@
- "encrypt_result.changed == True"
- name: See if the password needs to be updated. (expect changed=false)
mysql_user: name=jmainguy password='password1234'
mysql_user: name=jmainguy password='Fdt8fd^34ds'
register: plain_result
- name: Check that the module did not change the password

@ -1,4 +1,4 @@
---
# defaults file for test_mysql_variables
user: 'user1'
password: 'password1'
password: 'khH&DYigjg'

Loading…
Cancel
Save