summaryrefslogtreecommitdiff
path: root/test/integration/targets
diff options
context:
space:
mode:
authorJohn R Barker <john@johnrbarker.com>2017-06-17 17:16:19 +0100
committerMatt Clay <matt@mystile.com>2017-06-19 16:22:37 -0700
commitcac3cfa9ebc351d76d9dfc29bf28de9f623e5dd0 (patch)
tree61926469b7dd24e9ccb985212b5cdcb01b8c5460 /test/integration/targets
parentbf34bdb32c6d53a2154c8259a1d7573eebb16b59 (diff)
downloadansible-cac3cfa9ebc351d76d9dfc29bf28de9f623e5dd0.tar.gz
MySQL Password updates (#25825)
* MySQL Password updates * Disable user_password_update_test (cherry picked from commit 448efdb9e56fe209705778f20ae871123ae3ebbc)
Diffstat (limited to 'test/integration/targets')
-rw-r--r--test/integration/targets/mysql_user/defaults/main.yml4
-rw-r--r--test/integration/targets/mysql_user/tasks/main.yml2
-rw-r--r--test/integration/targets/mysql_user/tasks/remove_user.yml2
-rw-r--r--test/integration/targets/mysql_user/tasks/user_password_update_test.yml6
-rw-r--r--test/integration/targets/mysql_variables/defaults/main.yml2
5 files changed, 8 insertions, 8 deletions
diff --git a/test/integration/targets/mysql_user/defaults/main.yml b/test/integration/targets/mysql_user/defaults/main.yml
index 1775a99cf6..e40be893fb 100644
--- a/test/integration/targets/mysql_user/defaults/main.yml
+++ b/test/integration/targets/mysql_user/defaults/main.yml
@@ -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
diff --git a/test/integration/targets/mysql_user/tasks/main.yml b/test/integration/targets/mysql_user/tasks/main.yml
index 7c6d8ed418..57389eb8e3 100644
--- a/test/integration/targets/mysql_user/tasks/main.yml
+++ b/test/integration/targets/mysql_user/tasks/main.yml
@@ -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
diff --git a/test/integration/targets/mysql_user/tasks/remove_user.yml b/test/integration/targets/mysql_user/tasks/remove_user.yml
index eed959300a..2f1fe5aa05 100644
--- a/test/integration/targets/mysql_user/tasks/remove_user.yml
+++ b/test/integration/targets/mysql_user/tasks/remove_user.yml
@@ -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
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 315066724e..dce5a6f7db 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
@@ -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
diff --git a/test/integration/targets/mysql_variables/defaults/main.yml b/test/integration/targets/mysql_variables/defaults/main.yml
index a53a9f6761..2a0c459eed 100644
--- a/test/integration/targets/mysql_variables/defaults/main.yml
+++ b/test/integration/targets/mysql_variables/defaults/main.yml
@@ -1,4 +1,4 @@
---
# defaults file for test_mysql_variables
user: 'user1'
-password: 'password1'
+password: 'khH&DYigjg'