test(sfm): pin the ring-on-follow-up and calling-home poll exits; narrow the refusal clause
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
1 parent
14ea80f5a4
commit
78c3d568d5
3 files changed
+39
-1
No files matched your search
@@ -91,6 +91,8 @@ class DeviceAccess:
|
||||
even_if_already=even_if_already, caller=caller)
|
||||
|
||||
def _change_monitoring(self, address, serial, *, start, dry_run, even_if_already, caller):
|
||||
serial = normalise_serial(serial)
|
||||
series_for_serial(serial) # BadRequest (422) before the audit check
|
||||
if not dry_run and self._audit is None:
|
||||
raise NotSupported("no audit log is configured -- SFM refuses to change a unit "
|
||||
"without one (nothing sent)")
|
||||
|
||||
@@ -366,7 +366,7 @@ def s4_change_monitoring(client: Any, serial: str, *, start: bool, dry_run: bool
|
||||
|
||||
try:
|
||||
acks = client.protocol.execute(plan)
|
||||
except (OpcodeRefused, TypeError) as exc: # refused by the gate: nothing went out
|
||||
except OpcodeRefused as exc: # refused by the gate: nothing went out
|
||||
audit.finish(cid, outcome="failed", verified="not_checked", ack=None,
|
||||
error=f"refused before sending: {exc}")
|
||||
raise
|
||||
|
||||
Reference in new issue
Block a user