diff options
Diffstat (limited to 'test/integration/targets/gathering_facts/verify_subset.yml')
-rw-r--r-- | test/integration/targets/gathering_facts/verify_subset.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/targets/gathering_facts/verify_subset.yml b/test/integration/targets/gathering_facts/verify_subset.yml new file mode 100644 index 0000000..8913275 --- /dev/null +++ b/test/integration/targets/gathering_facts/verify_subset.yml @@ -0,0 +1,13 @@ +- hosts: localhost + gather_facts: false + tasks: + - name: bad subset used + setup: gather_subset=nonsense + register: bad_sub + ignore_errors: true + + - name: verify we fail the right way + assert: + that: + - bad_sub is failed + - "'MODULE FAILURE' not in bad_sub['msg']" |