test(alerts): 對齊 no-action 修復語意測試
All checks were successful
CD Pipeline / tests (push) Successful in 1m19s
Code Review / ai-code-review (push) Successful in 12s
CD Pipeline / build-and-deploy (push) Successful in 3m29s
CD Pipeline / post-deploy-checks (push) Successful in 1m47s

This commit is contained in:
Your Name
2026-05-31 15:52:24 +08:00
parent 8d9525fb3b
commit e9a8a2b3e9
3 changed files with 7 additions and 3 deletions

View File

@@ -63,6 +63,8 @@ async def test_no_action_execution_resolves_incident_once(monkeypatch):
approval.id,
success=True,
execution_kind="no_action",
repair_executed=False,
repair_attempted=False,
)
assert "未執行修復" in timeline_add_event.await_args.kwargs["title"]
assert alert_completed.await_args.kwargs["execution_kind"] == "no_action"
@@ -129,5 +131,7 @@ async def test_no_action_execution_returns_true_when_resolve_raises(monkeypatch)
approval.id,
success=True,
execution_kind="no_action",
repair_executed=False,
repair_attempted=False,
)
incident_service.resolve_incident.assert_awaited_once_with("INC-TEST-002")