6da3a7d866
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
13 lines
582 B
Go
13 lines
582 B
Go
package api
|
|
|
|
import "testing"
|
|
|
|
// R-871 (v0.134.0): the box's "missed backup made now" line (controller v0.295.0, event backup_catchup_done) must be
|
|
// an allowed type, or POST /event answers 400 and the household's timeline line vanishes (hub-event-allowlist trap).
|
|
// COMPANION RED-PROOF: remove "backup_catchup_done" from allowedEventTypes → this fails.
|
|
func TestR871_CatchUpEventIsAllowed(t *testing.T) {
|
|
if !allowedEventTypes["backup_catchup_done"] {
|
|
t.Fatal("backup_catchup_done is not an allowed event type — the box's catch-up line would be dropped with a 400")
|
|
}
|
|
}
|