1
0
mirror of https://github.com/TwiN/gatus.git synced 2026-02-15 18:30:05 +00:00

Start working on #12: Fix inconsistencies in alerting providers

This commit is contained in:
TwinProduction
2020-09-19 16:22:12 -04:00
parent abd49bca8e
commit ae2c4b1ea9
16 changed files with 337 additions and 240 deletions

19
alerting/twilio_test.go Normal file
View File

@@ -0,0 +1,19 @@
package alerting
import "testing"
func TestTwilioAlertProvider_IsValid(t *testing.T) {
invalidProvider := TwilioAlertProvider{}
if invalidProvider.IsValid() {
t.Error("provider shouldn't have been valid")
}
validProvider := TwilioAlertProvider{
SID: "1",
Token: "1",
From: "1",
To: "1",
}
if !validProvider.IsValid() {
t.Error("provider should've been valid")
}
}