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
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
..
cache Update ansible-test sanity command. (#31958) 2017-10-26 00:21:46 -07:00
integration async: use async_dir for the async results file directory (#45461) 2018-09-20 19:37:54 +10:00
legacy Add an option to enable public ip at server creation (#44826) 2018-09-20 12:13:26 -04:00
results Collect data from integration test runs. (#28650) 2017-08-25 18:14:47 -04:00
runner Support comments in ansible-test flat files. 2018-09-20 00:48:00 -07:00
sanity Fix incorrect use of subprocess.CalledProcessError (#45890) 2018-09-20 10:14:11 -07:00
units Ensure that the src file contents is converted to unicode in diff info (#45744) 2018-09-20 12:31:48 -05:00
utils Flush output from timing script. 2018-08-31 07:58:12 -07:00