feat(v1): compose temporal fall event pipeline
This commit is contained in:
@@ -54,3 +54,18 @@ def test_load_config_rejects_embedded_source_address(tmp_path):
|
||||
|
||||
with pytest.raises(ConfigError, match="rtsp_url_env"):
|
||||
load_config(config_file)
|
||||
|
||||
|
||||
def test_runtime_config_version_is_stable_and_excludes_rtsp_address(tmp_path, monkeypatch):
|
||||
config_file = tmp_path / "config.json"
|
||||
_write_config(
|
||||
config_file,
|
||||
{"id": "lobby-camera-01", "rtsp_url_env": "SILVER_POSE_RTSP_URL"},
|
||||
)
|
||||
monkeypatch.setenv("SILVER_POSE_RTSP_URL", "rtsp://operator:secret@camera-a/live")
|
||||
first = load_config(config_file)
|
||||
monkeypatch.setenv("SILVER_POSE_RTSP_URL", "rtsp://operator:other-secret@camera-b/live")
|
||||
second = load_config(config_file)
|
||||
|
||||
assert first.runtime_config_version == second.runtime_config_version
|
||||
assert first.runtime_config_version.startswith("cfg-")
|
||||
|
||||
Reference in New Issue
Block a user