mitogen/tests/ansible/integration
Alex Willmer b822f20007 ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7
Follwing fixes in Ansible 7-9 for CVE-2023-5764 cating `AnsibleUnsafeBytes` &
`AnsibleUnsafeText` to `bytes()` or `str()` requires special handling. The
handling is Ansible specific, so it shouldn't go in the mitogen package but
rather the ansible_mitogen package.

`ansible_mitogen.utils.unsafe.cast()` is most like `mitogen.utils.cast()`.
During development it began as `ansible_mitogen.utils.unsafe.unwrap_var()`,
closer to an inverse of `ansible.utils.unsafe_procy.wrap_var()`. Future
enhancements may move in this direction.

refs #977, refs #1046

See also
- https://github.com/advisories/GHSA-7j69-qfc3-2fq9
- https://github.com/ansible/ansible/pull/82293
- https://github.com/mitogen-hq/mitogen/wiki/AnsibleUnsafe-notes
2024-04-04 09:11:23 +01:00
..
action ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7 2024-04-04 09:11:23 +01:00
async ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7 2024-04-04 09:11:23 +01:00
become tests: Enable su tests under vanilla Ansible >= 2.11 2024-03-04 16:02:18 +00:00
connection tests: Name tasks 2022-09-12 19:27:40 +01:00
connection_delegation mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12 2024-03-17 14:57:57 +00:00
connection_loader tests: Enable stricter error handling, fix resulting failures 2022-07-17 13:44:05 +01:00
context_service tests: Name tasks 2022-09-12 19:27:40 +01:00
glibc_caches tests: Name tasks 2022-09-12 19:27:40 +01:00
interpreter_discovery tests: Skip "discovered python matches invoked" on macOS 11/Python 2.7/Vanilla 2024-03-17 14:58:01 +00:00
local tests: Name tasks 2022-09-12 19:27:40 +01:00
module_utils ci: Upgrade VM Images to macOS 11 and Ubuntu 20.04 2022-09-02 22:01:10 +01:00
playbook_semantics tests: Name tasks 2022-09-12 19:27:40 +01:00
process tests: Support Ubuntu 22.04 as test suite runner (controller) 2023-07-29 00:26:26 +01:00
runner tests: Clarify status/purpose of Python 2.x era Ansible Module workaround 2024-03-04 14:48:19 +00:00
ssh tests: Support Ubuntu 22.04 as test suite runner (controller) 2023-07-29 00:26:26 +01:00
strategy tests: Eliminate MITOGEN_INVENTORY_FILE 2022-09-12 19:27:40 +01:00
stub_connections ansible_mitogen: Handle AnsibleUnsafeText et al in Ansible >= 7 2024-04-04 09:11:23 +01:00
transport tests: Tag Ansible tests 2021-11-02 20:07:28 +00:00
transport_config ansible_mitogen: Correct ansible_become_pass/ansible_become_password precendence 2022-07-24 10:14:50 +01:00
_mitogen_only.yml issue #536: add mitogen_via= tests too. 2019-02-12 02:12:39 +00:00
all.yml Revert "Revert "fixed tests for ansible 2.12"" 2021-12-12 22:11:38 +01:00