ansible/test/units/playbook
Sam Doran cd473dfb2f
play - validate hosts entries (#74147)
* Change tests to pytest-style tests
* Add tests for invalid hosts
* Validate host inputs
  - check for empty values
  - check for None
  - check for values that are not a sequence and are not strings
  - add unit tests

* Move play name setting to get_name() and out of load()
* Add _validate_hosts() method
  By defining this method, it gets called automatically by FieldAttributeBase.validate().
2021-06-17 15:32:56 -04:00
..
role Add implicit role_complete block instead of role._eor (#72208) 2020-12-09 09:53:01 +01:00
__init__.py
test_attribute.py Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
test_base.py Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
test_block.py
test_collectionsearch.py Make sure collection is a list if a str is given (#69081) 2020-04-28 10:47:11 -05:00
test_conditional.py Remove duplicate unit test (#71488) 2020-08-27 15:55:30 -04:00
test_helpers.py Remove deprecated features from ansible.playbook.helpers (#74809) 2021-05-25 11:35:17 -04:00
test_included_file.py Fix IncludedFile equality check (#69524) 2020-06-04 10:41:46 -05:00
test_play.py play - validate hosts entries (#74147) 2021-06-17 15:32:56 -04:00
test_play_context.py Remove deprecated PlayContext.make_become_cmd (#74790) 2021-05-25 11:03:55 -04:00
test_playbook.py
test_taggable.py Update docs for --tags default, and add some tests (#70939) 2020-07-29 17:16:57 -05:00
test_task.py Provide better decryption errors for single vault values (#72362) 2020-11-18 14:25:32 -06:00