Allow setting of global defaults for some values

This helps with reducing redundant config.

Note: There is no default for `alert_every` because the zero value has a
meaning and cannot be interpreted as an omission.
This commit is contained in:
Ian Fijolek
2022-12-19 09:50:44 -08:00
parent 958446050f
commit deec04bf0d
4 changed files with 37 additions and 3 deletions
+1
View File
@@ -14,6 +14,7 @@ func TestLoadConfig(t *testing.T) {
pyCompat bool
}{
{"./test/valid-config.yml", false, "Valid config file", false},
{"./test/valid-config-default-values.yml", false, "Valid config file with default values", false},
{"./test/valid-default-log-alert.yml", false, "Valid config file with default log alert PyCompat", true},
{"./test/valid-default-log-alert.yml", true, "Invalid config file no log alert", false},
{"./test/does-not-exist", true, "Invalid config path", false},