Add more config validation

Validates that all alerts are actually found in the alert list
This commit is contained in:
Ian Fijolek
2019-10-07 10:48:19 -07:00
parent 1b07059825
commit 351216c3a7
4 changed files with 31 additions and 4 deletions
+1
View File
@@ -15,6 +15,7 @@ func TestLoadConfig(t *testing.T) {
{"./test/does-not-exist", true, "Invalid config path"},
{"./test/invalid-config-type.yml", true, "Invalid config type for key"},
{"./test/invalid-config-missing-alerts.yml", true, "Invalid config missing alerts"},
{"./test/invalid-config-unknown-alert.yml", true, "Invalid config unknown alert"},
}
for _, c := range cases {