ansible/test/units
Adrian Likins c771ab34c7 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.
2017-01-04 12:17:19 -05:00
..
cli testing GalaxyCLI.run() does what is expected 2016-12-21 23:52:18 -08:00
contrib skip vmware inventory when missing lib 2016-11-07 15:37:59 -05:00
errors Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
executor Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
inventory Add lots of test cases to inventory/test_host.py (#17827) 2016-11-29 13:38:04 -05:00
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 2015-05-28 15:26:03 -05:00
mock Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
module_utils Adding auth support for google-api-python-client and gcloud-python (#19090) 2016-12-29 12:33:52 -05:00
modules Add regex support to gce_tag module, add unit tests and update integration test. (#19087) 2016-12-29 08:45:20 -05:00
parsing Add a encode() to AnsibleVaultEncryptedUnicode (#19840) 2017-01-04 12:17:19 -05:00
playbook unit tests for playbook/conditional.py (#18586) 2016-12-13 14:38:16 -05:00
plugins Lastpass lookup plugin (#16285) 2016-12-22 14:47:33 -08:00
template Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
utils FEATURE: adding variable serial batches 2016-08-04 15:04:10 -05:00
vars ansible_playbook_python (#18530) 2016-11-23 16:30:46 -05:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00