SIENTIAPDE-1005

Enhance README and configuration files; add Redis authentication and update workflows
This commit is contained in:
vitor-aignosi
2025-05-16 16:30:43 -03:00
parent e252ca7962
commit df8a0fc706
10 changed files with 350 additions and 18 deletions

View File

@@ -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'
}