summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorJordan Borean <jborean93@gmail.com>2017-07-05 08:17:49 +1000
committerJordan <jborean93@gmail.com>2017-07-05 08:24:26 +1000
commit7f5a0715bfb72b85763feb19500133539f9b5abb (patch)
tree02a7fcc76d5cb0de9e0f5bc5eb6ce70f96a92fdd /test/integration
parent8ced21101f65b1730c5831f46e3161875641269e (diff)
downloadansible-7f5a0715bfb72b85763feb19500133539f9b5abb.tar.gz
win_regedit: fix for same dword value (#26415)
(cherry picked from commit 8e9d04043ae1ac8ed4fe458396748e127ab78bb8)
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/targets/win_regedit/tasks/main.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/integration/targets/win_regedit/tasks/main.yml b/test/integration/targets/win_regedit/tasks/main.yml
index 5519e25af0..11aa02e3e8 100644
--- a/test/integration/targets/win_regedit/tasks/main.yml
+++ b/test/integration/targets/win_regedit/tasks/main.yml
@@ -440,6 +440,28 @@
that:
- "check72_result.changed == false"
+# https://github.com/ansible/ansible/issues/26049
+# module reports change on dword with hex value even with same value
+- name: create hex value with prepending 0x
+ win_regedit:
+ key: HKCU:\Software\Cow Corp
+ value: full_hex_dword
+ data: 0xffffffff
+ datatype: dword
+ register: dword_create
+
+- name: change hex value and report no changes
+ win_regedit:
+ key: HKCU:\Software\Cow Corp
+ value: full_hex_dword
+ data: 0xffffffff
+ datatype: dword
+ register: dword_create_again
+
+- assert:
+ that:
+ - not dword_create_again|changed
+
# tear down
- name: remove registry key used for testing