1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00

improved config test

This commit is contained in:
Matthias Hannig
2017-05-22 11:13:36 +02:00
parent 06a13df874
commit e52647a14b

View File

@ -9,10 +9,20 @@ import (
func TestLoadConfigs(t *testing.T) {
config, err := loadConfigs("../etc/alicelg/alice.conf", "", "")
config, err := loadConfig("../etc/alicelg/alice.conf")
if err != nil {
t.Error("Could not load test config:", err)
}
t.Log(config)
if config.Server.Listen == "" {
t.Error("Listen string not present.")
}
if len(config.Ui.RoutesColumns) == 0 {
t.Error("Route columns settings missing")
}
if len(config.Ui.RoutesRejections.Reasons) == 0 {
t.Error("Rejection reasons missing")
}
}