Files
felhom.eu/hub/internal/api/r871_catchup_event_test.go
T

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")
}
}