ansible/test/units/parsing
Adrian Likins 22f7ca8c97 Add a encode() to AnsibleVaultEncryptedUnicode (#19840)
* Add a encode() to AnsibleVaultEncryptedUnicode

Without it, calling encode() on it results in a bytestring
of the encrypted !vault-encrypted string.

ssh connection plugin triggers this if ansible_password
is from a var using !vault-encrypted. That path ends up
calling .encode() instead of using the __str__.

Fixes #19795

* Fix str.encode() errors on py2.6

py2.6 str.encode() does not take keyword arguments.

(cherry picked from commit c771ab34c7)
2017-01-04 12:17:38 -05:00
..
utils Clean up jsonify unit test with format to remove json lib differences 2016-02-29 15:08:59 -05:00
vault Many Cleanups to vault 2016-09-15 15:22:06 -07:00
yaml Add a encode() to AnsibleVaultEncryptedUnicode (#19840) 2017-01-04 12:17:38 -05:00
__init__.py Making the switch to v2 2015-05-03 21:47:26 -05:00
test_addresses.py allow for non standard hostnames 2015-12-21 13:42:34 -05:00
test_data_loader.py Fix bug (#18355) where encrypted inventories fail 18355 (#18373) 2016-11-07 10:15:09 -05:00
test_mod_args.py Revert "Track local_action internally to prevent it from being overridden" 2015-10-09 13:01:32 -04:00
test_splitter.py New unit tests for #13630 fix 2016-03-28 15:54:07 -04:00
test_unquote.py Break apart a looped dependency to show a warning when parsing playbooks 2015-10-27 12:39:42 -07:00