ansible/test/units
Harm Geerts 9bd70045c9
Fix BaseFileCacheModule#keys to respect prefix (#72789)
* Fix BaseFileCacheModule#keys to respect prefix

Change:
- Previously BaseFileCacheModule#keys would return keys with the cache
  prefix. These keys are impossible to retrieve from the cache without
  removing the prefix or using the cache without a prefix.
  Now it removes the prefix from the key and only returns keys that
  share the same prefix as the cache.

Test Plan:
- New unit tests

* Add explicit BaseFileCacheModule#keys test

Test that files that do not match the cache prefix are ignored.
Test that the prefix is removed from the cache key.
2021-04-30 15:28:28 -04:00
..
_vendor
ansible_test Overhaul ansible-test container management. 2021-04-12 12:40:36 -07:00
cli
compat
config
errors
executor
galaxy
inventory
inventory_test_data/group_vars
mock
module_utils Remove deprecated common.removed module_util. 2021-04-29 16:07:56 -07:00
modules async_wrapper more info on end (#74199) 2021-04-13 10:30:13 -04:00
parsing
playbook [playbook/play.py] Increase error test coverage (#74217) 2021-04-13 11:22:02 -04:00
plugins Fix BaseFileCacheModule#keys to respect prefix (#72789) 2021-04-30 15:28:28 -04:00
regex
template
utils defend against bad or missing crypt (#74304) 2021-04-20 11:47:34 -04:00
vars
__init__.py
requirements.txt
test_constants.py
test_context.py