Files
felhom.eu/hub/internal/notify/box_clock_operator_only_test.go
T

22 lines
632 B
Go

package notify
import "testing"
// R-1384 (D79): a box's clock against the hub's is the operator's to read; the household is never mailed about it.
func TestBoxClockEventsAreOperatorOnly(t *testing.T) {
for _, e := range []string{"box_clock_wrong", "box_clock_ok"} {
if !operatorOnlyEvents[e] {
t.Errorf("%s must be operator-only", e)
}
}
}
// R-1379 (D77): the two end-date warnings are the operator's.
func TestEndDateEventsAreOperatorOnly(t *testing.T) {
for _, e := range []string{"operator_token_ends_soon", "web_cert_ends_soon"} {
if !operatorOnlyEvents[e] {
t.Errorf("%s must be operator-only", e)
}
}
}