1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/parsing
Matt Martz 8c08d03989
Fieldattribute inheritance with defaults (#50891)
* Add tests for check_mode at play and task level

These test inheritance of check_mode from the various levels (command
line, as a play attribute and as a task attribute) so they will be
useful for checking that the change to fieldattribute inheritance with
defaults works

* Add a sentinel object

The Sentinel object can be used in place of None when we need to mark an
entry as being special (usually used to mark something as not having
been set)

* Start of using a Sentinel object instead of None.

* Handle edge cases around use of Sentinel

* _get_parent_attribute needs to deal in Sentinel not None

* No need to special case any_errors_fatal in task.py any longer

* Handle more edge cases around Sentinel

* Use Sentinel instead of None in TaskInclude

* Update code to clarify the vars we are copying are class attrs

* Add changelog fragment

* Use a default of Sentinel for delegate_to, this also allows 'delegate_to: ~' now to unset inherited delegate_to

* Explain Sentinel stripping in _extend_value

* Fix ModuleArgsParser tests to compare with Sentinel

* Fixes for tasks inside of roles inheriting from play

* Remove incorrect note. ci_complete

* Remove commented code
2019-01-23 11:40:07 -06:00
..
fixtures dataloader: unit tests (#50942) 2019-01-22 09:51:27 -05:00
utils Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
vault Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
yaml Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
test_ajson.py Support nested JSON decoding in AnsibleJSONDecoder (#45924) 2018-09-24 14:33:19 -05:00
test_dataloader.py dataloader: unit tests (#50942) 2019-01-22 09:51:27 -05:00
test_metadata.py metadata 1.1 2017-08-15 23:12:08 -07:00
test_mod_args.py Fieldattribute inheritance with defaults (#50891) 2019-01-23 11:40:07 -06:00
test_splitter.py Add unit tests 2018-09-28 19:19:58 +02:00
test_unquote.py Switch tests to pytest and ansible-test. 2017-01-11 12:34:59 -08:00