config: validate databroker settings (#1260)

* config: validate databroker settings

* fix test
This commit is contained in:
Caleb Doxsey 2020-08-12 11:32:34 -06:00 committed by GitHub
parent 877edde0be
commit bd5c784670
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 10 deletions

View file

@ -33,11 +33,13 @@ func TestConfigSource(t *testing.T) {
cfgs := make(chan *config.Config, 10)
base := config.NewDefaultOptions()
base.DataBrokerURL = mustParse("http://" + li.Addr().String())
base.InsecureServer = true
base.GRPCInsecure = true
src := NewConfigSource(config.NewStaticSource(&config.Config{
Options: &config.Options{
DataBrokerURL: mustParse("http://" + li.Addr().String()),
GRPCInsecure: true,
},
Options: base,
}), func(cfg *config.Config) {
cfgs <- cfg
})