Universal sidecar configuration, indexing with multiple roots #268 #348

Slowly getting to the point where only very few people are able to maintain this codebase :)

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer
2020-06-07 10:09:35 +02:00
parent 9bd2a867be
commit a91206a509
60 changed files with 468 additions and 319 deletions

View File

@@ -15,12 +15,10 @@ import (
// NewApiTest returns new API test helper
func NewApiTest() (app *gin.Engine, router *gin.RouterGroup, conf *config.Config) {
conf = config.TestConfig()
service.SetConfig(conf)
gin.SetMode(gin.TestMode)
app = gin.New()
router = app.Group("/api/v1")
return app, router, conf
return app, router, service.Config()
}
// Performs API request with empty request body.
@@ -46,6 +44,7 @@ func TestMain(m *testing.M) {
log.SetLevel(logrus.DebugLevel)
c := config.TestConfig()
service.SetConfig(c)
code := m.Run()