fix tests
This commit is contained in:
@@ -95,14 +95,18 @@ func main() {
|
||||
return swagger, nil
|
||||
}
|
||||
|
||||
// this must be done before the rbac.InitializeAuthProvider
|
||||
// Both of these operations (InitializeConfig and InitializeAuthProvider)
|
||||
// would be better off in the service.new but there are temporal dependencies
|
||||
// that make this not possible right now without more refactoring.
|
||||
|
||||
// This must be done before the rbac.InitializeAuthProvider
|
||||
errInitializingConfig := serviceconfig.InitializeConfig(cfg)
|
||||
if errInitializingConfig != nil {
|
||||
slog.Error(errInitializingConfig.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
// initialize the rbac config here since only the API service needs it
|
||||
// Initialize the rbac config here since only the API service needs it
|
||||
errorGettingAuthProvider := rbac.InitializeAuthProvider(&cfg.AuthConfig)
|
||||
if errorGettingAuthProvider != nil {
|
||||
slog.Error(errorGettingAuthProvider.Error())
|
||||
|
||||
Reference in New Issue
Block a user