Review changes

This commit is contained in:
cemturker
2020-11-24 17:15:52 +01:00
parent 978acf3cd2
commit daf27fd6d0
4 changed files with 28 additions and 25 deletions

View File

@ -368,8 +368,8 @@ alerting:
integration-key: "00000000000000000000000000000000"
messagebird:
access-key: "1"
originator: "31619191918"
recipients: "31619191919"
from: "31619191918"
to: "31619191919"
services:
- name: twinnation
url: https://twinnation.org/health
@ -416,11 +416,11 @@ services:
if config.Alerting.Messagebird.AccessKey != "1" {
t.Errorf("Messagebird access key should've been %s, but was %s", "1", config.Alerting.Messagebird.AccessKey)
}
if config.Alerting.Messagebird.Originator != "31619191918" {
t.Errorf("Messagebird originator should've been %s, but was %s", "31619191918", config.Alerting.Messagebird.Originator)
if config.Alerting.Messagebird.From != "31619191918" {
t.Errorf("Messagebird originator should've been %s, but was %s", "31619191918", config.Alerting.Messagebird.From)
}
if config.Alerting.Messagebird.Recipients != "31619191919" {
t.Errorf("Messagebird recipients should've been %s, but was %s", "31619191919", config.Alerting.Messagebird.Recipients)
if config.Alerting.Messagebird.To != "31619191919" {
t.Errorf("Messagebird recipients should've been %s, but was %s", "31619191919", config.Alerting.Messagebird.To)
}
if len(config.Services) != 1 {
t.Error("There should've been 1 service")