From a1047e6273485144f4a3812f946760dcf9d56755 Mon Sep 17 00:00:00 2001 From: jhawkesworth Date: Mon, 27 Feb 2017 13:05:00 +0000 Subject: [PATCH] Adds integration test steps to win_regedit test to cover Extras 2090 (#15641) * Adds integration test steps to win_regedit test to cover Extras 2090 * Fixed merge conflict and error in win_regedit integration tests * fixed pep8 space after comma requirement discovered by ci build --- .../targets/win_regedit/tasks/main.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test/integration/targets/win_regedit/tasks/main.yml b/test/integration/targets/win_regedit/tasks/main.yml index 72080e034f5..5519e25af05 100644 --- a/test/integration/targets/win_regedit/tasks/main.yml +++ b/test/integration/targets/win_regedit/tasks/main.yml @@ -389,6 +389,31 @@ that: - "check62_result.changed == false" +# check can use yaml array of bytes as input +- name: regedit binary data using yaml syntax + win_regedit: + key: 'HKCU:\SOFTWARE\Cow Corp' + value: hellobinaryfromyaml + data: [0x21, 0xb3, 0x33, 0xf9, 0x0d, 0xff, 0xd0, 0x01] + datatype: binary + register: check63_result + +- assert: + that: + - "check63_result.changed == true" + +- name: regedit binary data using yaml syntax again + win_regedit: + key: 'HKCU:\SOFTWARE\Cow Corp' + value: hellobinaryfromyaml + data: [0x21, 0xb3, 0x33, 0xf9, 0x0d, 0xff, 0xd0, 0x01] + datatype: binary + register: check64_result + +- assert: + that: + - "check64_result.changed == false" + # test dword - name: check basic set dword works