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: