feat(sre): close provider and telegram automation receipts

This commit is contained in:
ogt
2026-07-17 02:27:29 +08:00
parent 1b551e0d33
commit 6b82adca35
45 changed files with 8263 additions and 944 deletions

View File

@@ -555,8 +555,9 @@ async def test_send_request_mirrors_direct_ai_alert_card_to_agent99(monkeypatch)
"inbox_triggered": True,
}
async def fake_outbound_message(**kwargs) -> None: # type: ignore[no-untyped-def]
async def fake_outbound_message(**kwargs) -> bool: # type: ignore[no-untyped-def]
outbound_receipts.append(kwargs)
return True
monkeypatch.setattr(TelegramGateway, "api_url", property(lambda _self: "https://telegram.test/botx"))
monkeypatch.setattr(
@@ -1871,6 +1872,7 @@ async def test_send_request_strips_awooop_callback_metadata_before_telegram_api(
"provider_message_id": provider_message_id,
"source_envelope_extra": source_envelope_extra,
}
return True
gateway._http_client = FakeClient()
monkeypatch.setattr(gateway, "_mirror_outbound_message", fake_mirror_outbound_message)