返回 Bug 清单
BUG-0766project-08高已修复database-schema

backward compat shim + add WeCom/DingTalk unit tests

发现:2026-10-09验证:2026-10-31置信度:70%

症状

commit 5cfdd8ce0e67 (2026-09-16) fix(alert): backward compat shim + add WeCom/DingTalk unit tests

根因

commit message 描述: fix(alert): backward compat shim + add WeCom/DingTalk unit tests

修复方案

修复 299 行,删除 0 行。改动文件: omnicert/config.py, tests/test_dingtalk_webhook.py, tests/test_wecom_webhook.py

错误签名

fix(alert): backward compat shim + add WeCom/DingTalk unit tests ## Backward compat
- config.py: add alert_webhook_url/secret → feishu_webhook_url/secret migration shim
  before __dataclass_fields__ filtering, so old config.json keys are not silently dropped

## Unit tests (+22 tests, 140 total)
- tests/test_wecom_webhook.py (11 tests): sign determinism, hex(64), payload structure,
  sign in body, errcode response code, level emoji mapping
- tests/test_dingtalk_webhook.py (11 tests): sign determ

技术信息

来源项目

project-08

涉及文件

omnicert/config.py, tests/test_dingtalk_webhook.py, tests/test_wecom_webhook.py

标签

git-sweep, auto-ingested, project-08, mcp-reported, source-agent