mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #15570 from jhawkesworth/regedit_fix_str_compare_tests
win_regedit integration test to cover change to allow empty string comparison
This commit is contained in:
commit
ca5080d56b
1 changed files with 24 additions and 0 deletions
|
@ -349,6 +349,29 @@
|
|||
that:
|
||||
- "check56_result.changed == true"
|
||||
|
||||
# test empty data value (some things depend on this, having no data is not equivalent)
|
||||
|
||||
- name: set an empty data value
|
||||
win_regedit:
|
||||
key: HKCU:\Software\Cow Corp
|
||||
value: helloempty
|
||||
data: ""
|
||||
register: check61_result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "check61_result.changed == true"
|
||||
|
||||
- name: set an empty data value again (should not change)
|
||||
win_regedit:
|
||||
key: HKCU:\Software\Cow Corp
|
||||
value: helloempty
|
||||
data: ""
|
||||
register: check62_result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "check62_result.changed == false"
|
||||
# tear down
|
||||
|
||||
- name: remove registry key used for testing
|
||||
|
@ -356,4 +379,5 @@
|
|||
key: 'HKCU:\SOFTWARE\Cow Corp'
|
||||
state: absent
|
||||
|
||||
|
||||
# END OF win_regedit tests
|
||||
|
|
Loading…
Reference in a new issue