daemon/job: test that sample configs are buildable

This commit is contained in:
Christian Schwarz
2020-07-19 23:59:33 +02:00
parent 4e702eedc9
commit 95fc299733
4 changed files with 54 additions and 0 deletions
+4
View File
@@ -25,6 +25,10 @@ func TLSListenerFactoryFromConfig(c *config.Global, in *config.TLSServe) (transp
return nil, errors.New("fields 'ca', 'cert' and 'key'must be specified")
}
if fakeCertificateLoading {
return func() (transport.AuthenticatedListener, error) { return nil, nil }, nil
}
clientCA, err := tlsconf.ParseCAFile(in.Ca)
if err != nil {
return nil, errors.Wrap(err, "cannot parse ca file")