test(alerts): 對齊 no-action 修復語意測試
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user