phase 14-15: docker build validation and helm deployment
This commit is contained in:
+11
-1
@@ -1,5 +1,5 @@
|
||||
"""Basic tests for shared config loader."""
|
||||
from services.shared.config import load_config, AppConfig
|
||||
from services.shared.config import load_config, AppConfig, AlertingConfig
|
||||
|
||||
|
||||
def test_load_config_returns_app_config():
|
||||
@@ -20,3 +20,13 @@ def test_redis_url_format():
|
||||
def test_default_broker_mode():
|
||||
config = load_config()
|
||||
assert config.broker.mode == "paper"
|
||||
|
||||
|
||||
def test_alerting_config_defaults():
|
||||
config = load_config()
|
||||
assert isinstance(config.alerting, AlertingConfig)
|
||||
assert config.alerting.source_failure_threshold == 3
|
||||
assert config.alerting.schema_failure_rate_threshold == 0.3
|
||||
assert config.alerting.lake_lag_threshold_minutes == 60
|
||||
assert config.alerting.broker_error_threshold == 3
|
||||
assert config.alerting.check_interval_seconds == 120
|
||||
|
||||
Reference in New Issue
Block a user