mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-30 04:49:09 -07:00
[5.0.0] Remove Ansible 2.9 / ansible-base 2.10 compatibility code (#4548)
* Remove Ansible 2.9 / ansible-base 2.10 compatibility code. * Remove path_join shim from BOTMETA. * Update comment. * Bump minimally required ansible-core version.
This commit is contained in:
parent
36a0eca193
commit
1a9b3214fd
22 changed files with 44 additions and 276 deletions
5
tests/unit/plugins/cache/test_redis.py
vendored
5
tests/unit/plugins/cache/test_redis.py
vendored
|
@ -25,21 +25,16 @@ pytest.importorskip('redis')
|
|||
|
||||
from ansible import constants as C
|
||||
from ansible.plugins.loader import cache_loader
|
||||
from ansible.release import __version__ as ansible_version
|
||||
from ansible_collections.community.general.plugins.cache.redis import CacheModule as RedisCache
|
||||
|
||||
|
||||
def test_redis_cachemodule():
|
||||
# The _uri option is required for the redis plugin
|
||||
connection = '127.0.0.1:6379:1'
|
||||
if ansible_version.startswith('2.9.'):
|
||||
C.CACHE_PLUGIN_CONNECTION = connection
|
||||
assert isinstance(cache_loader.get('community.general.redis', **{'_uri': connection}), RedisCache)
|
||||
|
||||
|
||||
def test_redis_cachemodule():
|
||||
# The _uri option is required for the redis plugin
|
||||
connection = '[::1]:6379:1'
|
||||
if ansible_version.startswith('2.9.'):
|
||||
C.CACHE_PLUGIN_CONNECTION = connection
|
||||
assert isinstance(cache_loader.get('community.general.redis', **{'_uri': connection}), RedisCache)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue