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:
serversdownandClaude Opus 5.5 committed 2026-10-23 16:45:02 -04:00
1 parent 14ea80f5a4
commit 78c3d568d5
3 files changed
+39 -1

No files matched your search

+2
View File
@@ -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)")