chore(config): 工作流配置、清单与文档同步
workflows/schedules/commands/notification-routing 与 source-manifests 四模块 清单同步登录统一化与新工作流(product.hk_anpei_public_inventory.daily 等); docs 运维手册、控制台与耗时分布文档、CI 关键脚本清单、AGENTS 指南更新; 测试与模块注册对齐。
This commit is contained in:
1 parent
90282ae766
commit
dc8be88e60
27 files changed
+1094
-224
No files matched your search
@@ -67,15 +67,21 @@ def test_baseline_contains_all_provided_people_and_routable_capabilities(
|
||||
) -> None:
|
||||
payload, revision = NotificationRoutingStore(routing_settings).snapshot()
|
||||
|
||||
assert len(payload["people"]) == 16
|
||||
assert len(payload["people"]) == 18
|
||||
assert payload["app_profile"] == "hermes-analyzer"
|
||||
assert (
|
||||
payload["app_profiles"]["hermes-analyzer"]["app_id"]
|
||||
== ANALYZER_NOTIFICATION_APP_ID
|
||||
)
|
||||
assert all(person["mobile"] is None for person in payload["people"].values())
|
||||
mobiles = {
|
||||
person_id: person["mobile"]
|
||||
for person_id, person in payload["people"].items()
|
||||
}
|
||||
assert mobiles["wang_yunlong"] == "+8613663785145"
|
||||
assert mobiles["stock_alert_user_19832771651"] == "+8619832771651"
|
||||
assert set(payload["capabilities"]) == set(NOTIFICATION_CAPABILITIES)
|
||||
assert payload["routes"] == {}
|
||||
assert set(payload["routes"]) == {"product.online_stock_alert.daily"}
|
||||
assert payload["routes"]["product.online_stock_alert.daily"]["enabled"] is True
|
||||
assert len(revision) == 64
|
||||
|
||||
wang = payload["people"]["wang_yunlong"]
|
||||
@@ -85,10 +91,15 @@ def test_baseline_contains_all_provided_people_and_routable_capabilities(
|
||||
assert wang["bindings"]["hermes-analyzer"]["open_id"] == (
|
||||
"ou_7ad5fc8012e2f741afc5346e05ffd447"
|
||||
)
|
||||
_mobile_lookup_people = {
|
||||
"wang_yunlong",
|
||||
"online_stock_alert_recipient",
|
||||
"stock_alert_user_19832771651",
|
||||
}
|
||||
provided = {
|
||||
person["name"]: binding["open_id"]
|
||||
for person_id, person in payload["people"].items()
|
||||
if person_id != "wang_yunlong"
|
||||
if person_id not in _mobile_lookup_people
|
||||
for profile, binding in person["bindings"].items()
|
||||
if profile == "hermes-analyzer"
|
||||
}
|
||||
@@ -112,7 +123,7 @@ def test_baseline_contains_all_provided_people_and_routable_capabilities(
|
||||
assert all(
|
||||
binding["verified"] is False and binding["source"] == "provided"
|
||||
for person_id, person in payload["people"].items()
|
||||
if person_id != "wang_yunlong"
|
||||
if person_id not in _mobile_lookup_people
|
||||
for profile, binding in person["bindings"].items()
|
||||
if profile == "hermes-analyzer"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user