Chore: Use proper database in integration tests (#109119)
* Chore: Apply proper database settings to integration tests * add logging * join host and port in database config to override default ports * apply test fixes from the original pr * host might contain port already * increase timeout * increase timeout even more * even larger timeouts * Use eventually for stats * Use eventually also for listing settings as index takes some time --------- Co-authored-by: Roberto Jimenez Sanchez <roberto.jimenez@grafana.com>
This commit is contained in:
co-authored by
Roberto Jimenez Sanchez
parent
3a4dc10d3f
commit
f3ca49f2b3
@@ -94,6 +94,9 @@ func (dbCfg *DatabaseConfig) readConfig(cfg *setting.Cfg) error {
|
||||
} else {
|
||||
dbCfg.Type = sec.Key("type").String()
|
||||
dbCfg.Host = sec.Key("host").String()
|
||||
if port := sec.Key("port").String(); port != "" {
|
||||
dbCfg.Host = dbCfg.Host + ":" + port
|
||||
}
|
||||
dbCfg.Name = sec.Key("name").String()
|
||||
dbCfg.User = sec.Key("user").String()
|
||||
dbCfg.ConnectionString = sec.Key("connection_string").String()
|
||||
|
||||
Reference in New Issue
Block a user