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/plugins
Toshio Kuratomi d834412ead Fix for persistent connection plugin on Python3 (#24431)
Fix for persistent connection plugin on Python3.  Note that fixes are also needed to each terminal plugin.  This PR only fixes the ios terminal (as proof that this approach is workable.)  Future PRs can address the other terminal types.

* On Python3, pickle needs to work with byte strings, not text strings.
* Set the pickle protocol version to 0 because we're using a pty to feed data to the connection plugin.  A pty can't have control characters.  So we have to send ascii only.  That means
only using protocol=0 for pickling the data.
* ansible-connection isn't being used with py3 in the bug but it needs
several changes to work with python3.
* In python3, closing the pty too early causes no data to be sent.  So
leave stdin open until after we finish with the ansible-connection
process.
* Fix typo using traceback.format_exc()
* Cleanup unnecessary StringIO, BytesIO, and to_bytes calls
* Modify the network_cli and terminal plugins for py3 compat.  Lots of mixing of text and byte strings that needs to be straightened out to be compatible with python3
* Documentation for the bytes<=>text strategy for terminal plugins
* Update unittests for more bytes-oriented internals

Fixes #24355
8 years ago
..
action moved to exceptions for basic skip/fails 8 years ago
cache PEP 8 E111 & E114 cleanup. (#20838) 8 years ago
callback allow debug to be 'changed' (#20957) 8 years ago
connection Fix for persistent connection plugin on Python3 (#24431) 8 years ago
filter Ryanpineo fix ipaddr netmask with 32 cidr (#23506) 8 years ago
inventory Add empty-init code-smell script. (#18406) 8 years ago
lookup Update module_utils.six to latest (#22855) 8 years ago
shell Add empty-init code-smell script. (#18406) 8 years ago
strategy Update module_utils.six to latest (#22855) 8 years ago
vars Add empty-init code-smell script. (#18406) 8 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
test_plugins.py Fix ziploader for the cornercase of ansible invoking ansible. 9 years ago