The bug was the function UseRAGEnabled was using a hard coded value for the default rather than the constant. As a result, when we recently changed the default to be true it wasn't actually enabled by default.
Refactor viper processing so its easy to test configuration in a unittest
We want to be able to create instances of viper using viper.New in the unittest so that we don't have to only use the global viper instance.
To support that we refactor InitViper into a separate function which takes as an argument *viper.Viper
Fix #249
The bug was the function UseRAGEnabled was using a hard coded value for the default rather than the constant. As a result, when we recently changed the default to be true it wasn't actually enabled by default.
Refactor viper processing so its easy to test configuration in a unittest
We want to be able to create instances of viper using viper.New in the unittest so that we don't have to only use the global viper instance.
To support that we refactor InitViper into a separate function which takes as an argument *viper.Viper