ansible/test/units
Matt Martz 95e77ac853
Ensure that the src file contents is converted to unicode in diff info (#45744)
* Ensure that the src file contents is converted to unicode in diff info. Fixes #45717

* Fix up and cleanup

* The diff functionality in the callback plugins should have the
  to_text() calls removed since we're now doing it in ActionBase
* catching of UnicodeError and warnings in the callback diff
  functionality from 61d01f549f haven't been
  needed since we switched to to_text so remove them.
* Add a note to ActionBase's diff function giving an example of when the
  diff function will be inaccurate and how to fix it

* Fix callback get_diff() tests

I believe the unittests of callback's get_diff() were wrong.  They were
sending in a list where strings were expected.  Because previous code
was transforming the lists into strings via their repr, the previous
tests did not fail but they would have formatted the test cases output
in an odd way if we had looked at it.
2018-09-20 12:31:48 -05:00
..
cli Fix unit tests which modify the source tree. (#45763) 2018-09-17 20:27:14 -07:00
config Fix another corner case of too many warnings for world readable current working directory 2018-08-23 20:23:59 -07:00
contrib Update vmware_inventory (#26308) 2017-07-18 07:20:23 -04:00
errors test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
executor Fix unittests for always adding basic to the AnsiBallZ zips 2018-08-24 15:37:13 -07:00
inventory_test_data/group_vars
mock AnsiballZ improvements 2018-07-26 20:07:25 -07:00
module_utils Fixing HTTPError case of fetch_url for Python 3 compatibility. (#45628) 2018-09-19 10:53:16 -05:00
modules Adds bigiq_device_facts module (#45822) 2018-09-18 22:30:31 -04:00
parsing Mass nuke deprecated items that are easily removed. ci_complete (#44320) 2018-08-20 16:26:10 -05:00
playbook Unit tests for ansible.playbook.become (#38541) 2018-08-23 13:47:20 -05:00
plugins Ensure that the src file contents is converted to unicode in diff info (#45744) 2018-09-20 12:31:48 -05:00
template remove unused templar._clean_data() (#42739) 2018-09-11 09:11:03 +02:00
utils [aws unit test utils] only create a recordings directory when the env var is set (#45752) 2018-09-17 18:16:44 -04:00
vars Fix pylint error on utf8 character in string (#45880) 2018-09-20 12:01:44 +10:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
ansible.cfg Fix ansible-test config management. 2017-10-04 12:52:36 -07:00
conftest.py Run unit tests in parallel. (#45812) 2018-09-18 13:58:22 -07:00
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 2017-06-14 11:08:34 -04:00