ansible/test/integration/targets/argspec/tasks/main.yml
Matt Martz 9081b22868
Remove incidental_vyos_static_route (#72024)
* Add explicit tests for required_together suboptions

* ci_complete ci_coverage

* Remove incidental_vyos_static_route

* ci_complete ci_coverage

* Add explicit coverage of suboptions required_if

* ci_complete ci_coverage

* Remove incidental_vyos_logging

* ci_complete ci_coverage
2020-09-30 15:38:12 -05:00

111 lines
2 KiB
YAML

- argspec:
state: absent
- argspec:
state: present
register: argspec_required_if_fail
ignore_errors: true
- argspec:
state: present
path: foo
- argspec:
state: present
content: foo
- argspec:
state: present
content: foo
path: foo
register: argspec_mutually_exclusive_fail
ignore_errors: true
- argspec:
mapping:
foo: bar
register: argspec_good_mapping
- argspec:
mapping: foo=bar
register: argspec_good_mapping_kv
- argspec:
mapping: !!str '{"foo": "bar"}'
register: argspec_good_mapping_json
- argspec:
mapping: foo
register: argspec_bad_mapping_string
ignore_errors: true
- argspec:
mapping: 1
register: argspec_bad_mapping_int
ignore_errors: true
- argspec:
mapping:
- foo
- bar
register: argspec_bad_mapping_list
ignore_errors: true
- argspec:
required_together:
- thing: foo
other: bar
another: baz
- argspec:
required_together:
- another: baz
- argspec:
required_together:
- thing: foo
register: argspec_required_together_fail
ignore_errors: true
- argspec:
required_together:
- thing: foo
other: bar
- argspec:
required_if:
- thing: bar
- argspec:
required_if:
- thing: foo
other: bar
- argspec:
required_if:
- thing: foo
register: argpsec_required_if_fail
ignore_errors: true
- assert:
that:
- argspec_required_if_fail is failed
- argspec_mutually_exclusive_fail is failed
- argspec_good_mapping is successful
- >-
argspec_good_mapping.mapping == {'foo': 'bar'}
- argspec_good_mapping_json is successful
- >-
argspec_good_mapping_json.mapping == {'foo': 'bar'}
- argspec_good_mapping_kv is successful
- >-
argspec_good_mapping_kv.mapping == {'foo': 'bar'}
- argspec_bad_mapping_string is failed
- argspec_bad_mapping_int is failed
- argspec_bad_mapping_list is failed
- argspec_required_together_fail is failed
- argpsec_required_if_fail is failed