ansible/test/integration/targets/gathering_facts/verify_subset.yml
Brian Coca 4a82e2c486
Fix setup subset (#74022)
* fix error msg on bad subset

* added test
* handle more raised but not handled fact exceptions
2021-03-26 12:43:16 -04:00

13 lines
317 B
YAML

- 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']"