SIENTIAPDE-1005
Enhance README and configuration files; add Redis authentication and update workflows
This commit is contained in:
@@ -90,7 +90,9 @@ def test_build_redis_config_defaults():
|
||||
|
||||
assert config == {
|
||||
'host': 'localhost',
|
||||
'port': 6379
|
||||
'port': 6379,
|
||||
'username': None,
|
||||
'password': None
|
||||
}
|
||||
|
||||
|
||||
@@ -99,11 +101,15 @@ def test_build_redis_config_with_env_vars():
|
||||
"""Test that build_redis_config uses env vars when set"""
|
||||
with patch.dict(os.environ, {
|
||||
'REDIS_HOST': 'redis.example.com',
|
||||
'REDIS_PORT': '6380'
|
||||
'REDIS_PORT': '6380',
|
||||
'REDIS_USERNAME': 'test',
|
||||
'REDIS_PASSWORD': 'test'
|
||||
}):
|
||||
config = build_redis_config()
|
||||
|
||||
assert config == {
|
||||
'host': 'redis.example.com',
|
||||
'port': 6380
|
||||
'port': 6380,
|
||||
'username': 'test',
|
||||
'password': 'test'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user