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 9e622ddb67
[stable-2.17] Unsafe persistence (#82779)
* Ensure that unsafe is more difficult to lose [stable-2.16] (#82293)

* Ensure that unsafe is more difficult to lose

* Add Task.untemplated_args, and switch assert over to use it
* Don't use re in first_found, switch to using native string methods
* If nested templating results in unsafe, just error, don't continue

* ci_complete

(cherry picked from commit 270b39f6ff)

* Fix various issues in unsafe_proxy (#82326)

- Use str/bytes directly instead of text_type/binary_type
- Fix AnsibleUnsafeBytes.__str__ implementation
- Fix AnsibleUnsafeBytes.__format__ return type
- Remove invalid methods from AnsibleUnsafeBytes (casefold, format, format_map)
- Use `chars` instead of `bytes` to match stdlib naming
- Remove commented out code

(cherry picked from commit 59aa0145d2)

* Additional Unsafe fixes (#82376)

* Allow older pickle protocols to pickle unsafe classes. Fixes #82356

* Address issues when iterating or getting single index from AnsibleUnsafeBytes. Fixes #82375

* clog frag

(cherry picked from commit afe3fc184f)

* [stable-2.16] Enable directly using `AnsibleUnsafeText` with Python `pathlib` (#82510)

* Enable directly using `AnsibleUnsafeText` with Python `pathlib`. Fixes #82414

(cherry picked from commit c6a652c081)

* Prevent failures due to unsafe plugin name (#82759)

(cherry picked from commit 56f31126ad)

* Address issues from merge conflicts

---------

Co-authored-by: Matt Clay <matt@mystile.com>
Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
2 years ago
..
_vendor Require `from __future__ import annotations` (#81902) 2 years ago
ansible_test Remove unused validate-modules unit test code 2 years ago
cli remove nonexistent url from role templates (#82933) 2 years ago
config Fix condition for unquoting configuration strings from ini files (#82388) 2 years ago
errors Remove Python 2.x compat from unit tests (#82109) 2 years ago
executor Updates to interpreter discovery for 2.17 (#82420) 2 years ago
galaxy Use of constant for 644 permission variable (#82762) 2 years ago
inventory Remove Python 2 compat (via six) from unit tests 2 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 11 years ago
mock Enable file cache for vaulted host_vars_files vars plugin (#81995) 2 years ago
module_utils atomic_move - fix preserving extended acls (#82818) 2 years ago
modules test_apt: migrate from unittest to pytest (#82666) 2 years ago
parsing [stable-2.17] Unsafe persistence (#82779) 2 years ago
playbook pylint: update for use-yield-from 2 years ago
plugins connection: update test coverage for SSH connection plugin (#82916) 2 years ago
regex Remove Python 2.x compat from unit tests (#82109) 2 years ago
template Remove Python 2.x compat from unit tests (#82109) 2 years ago
utils [stable-2.17] Unsafe persistence (#82779) 2 years ago
vars Remove Python 2 compat (via six) from unit tests 2 years ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
requirements.txt Remove Python 3.9 support for the controller (#80973) 2 years ago
test_context.py Require `from __future__ import annotations` (#81902) 2 years ago
test_no_tty.py Require `from __future__ import annotations` (#81902) 2 years ago