package api import "testing" // R-97a — the allowlist entry is the delivery chain's first link. // // The recorded gotcha: an event type missing from allowedEventTypes makes POST /event return 400 and // the event vanishes. `internal/quiesce` had no route to the hub at all, so three failed whole-guest // backups on 2026-07-27 produced zero events. This pins the entry so a cleanup cannot quietly // re-break the chain. func TestWholeGuestBackupEventTypesAreAllowlisted(t *testing.T) { for _, et := range []string{"whole_guest_backup_failed", "whole_guest_backup_recovered"} { if !allowedEventTypes[et] { t.Fatalf("%s must be in allowedEventTypes, or POST /event 400s and the whole-guest "+ "backup tier goes silent again", et) } } }