gateway: AcknowledgeAlarm + QueryActiveAlarms handler tests (PR A.4) #113
Reference in New Issue
Block a user
Delete Branch "track-a4-conditionrefresh-coverage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Nineteenth (final) PR of the alarms-over-gateway epic. Pins the public RPC handler contract added in PR A.3:
AcknowledgeAlarmrejects empty session_id + empty alarm_full_reference with InvalidArgument.AcknowledgeAlarmwith valid input returns OK and a worker-pending diagnostic so clients see a successful round-trip even before A.2's worker dispatch lands.QueryActiveAlarmsrejects empty session_id with InvalidArgument.QueryActiveAlarmswith valid input streams zero snapshots (filter-prefix passthrough verified at the proto layer).OpenSessionadvertises both new RPC capability strings (unary-acknowledge-alarm,server-stream-active-alarms).Closes Track A's gateway-side surface. Worker-side ConditionRefresh walk + parity-rig validation lands alongside PR A.2's COM-side alarm subscription pin during dev-rig hardware validation.
Test plan
MxAccessGatewayServiceTestscover both handlers + the capability advertisement