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/utils
Matt Davis 7fed9b06e0
[stable-2.18] forward ports of unsafe persistence fixes (#83922)
* [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>
(cherry picked from commit 9e622ddb67)

* rewrite illegal templated conditional in find test

---------

Co-authored-by: Matt Martz <matt@sivel.net>
2 months ago
..
collection_loader Remove unused/unreachable unit test code (#82160) 1 year ago
display test: Handle Singleton Display class (#83673) 4 months ago
__init__.py Cleanup combine_vars 9 years ago
conftest.py test: Handle Singleton Display class (#83673) 4 months ago
test_cleanup_tmp_file.py Require `from __future__ import annotations` (#81902) 1 year ago
test_context_objects.py Require `from __future__ import annotations` (#81902) 1 year ago
test_display.py test: Handle Singleton Display class (#83673) 4 months ago
test_encrypt.py test_encrypt: remove unreachable assertion (#82570) 11 months ago
test_helpers.py test: update tests (#83686) 4 months ago
test_isidentifier.py isidentifier: Remove Python 2 specific code (#83688) 2 months ago
test_listify.py Remove deprecated 'loader' argument (#82968) 8 months ago
test_plugin_docs.py remove repetitive words (#82799) 9 months ago
test_shlex.py Require `from __future__ import annotations` (#81902) 1 year ago
test_unsafe_proxy.py [stable-2.18] forward ports of unsafe persistence fixes (#83922) 2 months ago
test_vars.py test: update tests (#83686) 4 months ago
test_version.py Require `from __future__ import annotations` (#81902) 1 year ago