You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units
Matt Martz 34809f2b02 [stable-2.7] 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.
(cherry picked from commit 95e77ac)

Co-authored-by: Matt Martz <matt@sivel.net>
6 years ago
..
cli Fix unit tests which modify the source tree. (#45763) 6 years ago
config Fix another corner case of too many warnings for world readable current working directory 6 years ago
contrib Update vmware_inventory (#26308) 7 years ago
errors test/: PEP8 compliancy (#24803) 8 years ago
executor Fix unittests for always adding basic to the AnsiBallZ zips 6 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 10 years ago
mock AnsiballZ improvements 6 years ago
module_utils set ansible_os_family from name variable in os-release for clearlinux… (#49906) 6 years ago
modules [stable-2.7] FTD HTTP Api plugin bug fixes (#47747) (#48982) 6 years ago
parsing [stable-2.7] Support nested JSON decoding in AnsibleJSONDecoder (#45924) 6 years ago
playbook [stable-2.7] Do not use mutable defaults in FieldAttribute, instead allow supplying a callable for defaults of mutable types. Fixes #46824 (#46833). 6 years ago
plugins [stable-2.7] Ensure that the src file contents is converted to unicode in diff info (#45744) 6 years ago
template templar: ensure that exceptions are handled, fix 'AttributeError' (#48792) 6 years ago
utils [aws unit test utils] only create a recordings directory when the env var is set (#45752) 6 years ago
vars Don't use copy.deepcopy in high workload areas, use naive_deepcopy (#44337) 6 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
ansible.cfg Fix ansible-test config management. 7 years ago
conftest.py Run unit tests in parallel. (#45812) 6 years ago
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 8 years ago