From 4d675b6d876219780f234360b02ddee1ef3a0df1 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Fri, 24 Jul 2020 00:28:11 +1000 Subject: [PATCH] win_reg_stat fix up broken test (#70830) --- .../targets/win_reg_stat/tasks/tests.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/test/integration/targets/win_reg_stat/tasks/tests.yml b/test/integration/targets/win_reg_stat/tasks/tests.yml index 5424ba4d45b..756542697be 100644 --- a/test/integration/targets/win_reg_stat/tasks/tests.yml +++ b/test/integration/targets/win_reg_stat/tasks/tests.yml @@ -68,20 +68,13 @@ path: HKCU:\{{ test_reg_path }}\nested\nest2 register: actual -- name: set expected value for reg key without sub keys or properties - set_fact: - expected: - changed: false - exists: true - failed: false - properties: {} - sub_keys: [] - register: expected - - name: assert get known reg key without sub keys and properties assert: that: - - actual == expected + - not actual is changed + - actual.exists + - actual.properties == {} + - actual.sub_keys == [] - name: get non-existent reg key win_reg_stat: