internal/config: Switch to using struct scoped viper instance (#332)

* Switch to using struct scoped viper instance

* Rename NewXXXOptions

* Handle unchecked errors from viper.BindEnv
This commit is contained in:
Travis Groth 2019-10-01 18:16:36 -04:00 committed by GitHub
parent 5df0ff500c
commit 251ab0d527
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 98 additions and 52 deletions

View file

@ -7,7 +7,7 @@ import (
)
func newTestOptions(t *testing.T) *config.Options {
opts, err := config.NewOptions("https://authenticate.example", "https://authorize.example")
opts, err := config.NewMinimalOptions("https://authenticate.example", "https://authorize.example")
if err != nil {
t.Fatal(err)
}