diff options
author | Matt Martz <matt@sivel.net> | 2020-10-06 13:15:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 13:15:02 -0500 |
commit | 50c8c87fe2889612999f45d11d9f35a614518f1b (patch) | |
tree | 82e70524aa6ecdfcc4c90882197ca750cc48d190 /test/integration/targets/argspec/tasks/main.yml | |
parent | aff78f4cbc9a1afe70ca447e17e4c99582ad16b3 (diff) | |
download | ansible-50c8c87fe2889612999f45d11d9f35a614518f1b.tar.gz |
Add explicit coverage of suboptions=list without elements (#72108)
* Add explicit coverage of suboptions=list without elements
* ci_complete ci_coverage
* Remove incidental_vmware_guest_custom_attributes
* ci_complete ci_coverage
Diffstat (limited to 'test/integration/targets/argspec/tasks/main.yml')
-rw-r--r-- | test/integration/targets/argspec/tasks/main.yml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/integration/targets/argspec/tasks/main.yml b/test/integration/targets/argspec/tasks/main.yml index 17bbbdbc96..87d9a7b602 100644 --- a/test/integration/targets/argspec/tasks/main.yml +++ b/test/integration/targets/argspec/tasks/main.yml @@ -121,6 +121,11 @@ register: argspec_fail_required_together ignore_errors: true +- argspec: + suboptions_list_no_elements: + - thing: foo + register: argspec_suboptions_list_no_elements + - assert: that: - argspec_required_if_fail is failed @@ -145,13 +150,16 @@ - argpsec_required_if_fail is failed - argspec_good_json_string is successful - - > + - >- argspec_good_json_string.json == '{"foo": "bar"}' - argspec_good_json_dict is successful - - > + - >- argspec_good_json_dict.json == '{"foo": "bar"}' - argspec_bad_json is failed - argspec_fail_on_missing_params_bad is failed - argspec_fail_required_together is failed + + - >- + argspec_suboptions_list_no_elements.suboptions_list_no_elements.0 == {'thing': 'foo'} |