Disable force jsonfile variable (#1611)

This enables windows management tests

Added another DNS server to the dns server tests
This commit is contained in:
Maycon Santos
2024-03-15 10:50:02 +01:00
committed by GitHub
parent 52a3ac6b06
commit fc7c1e397f
3 changed files with 13 additions and 2 deletions

View File

@@ -103,7 +103,14 @@ func NewStoreFromJson(dataDir string, metrics telemetry.AppMetrics) (Store, erro
return nil, err
}
switch kind := getStoreEngineFromEnv(); kind {
// if store engine is not set in the config we first try to evaluate NETBIRD_STORE_ENGINE
kind := getStoreEngineFromEnv()
if kind == "" {
// NETBIRD_STORE_ENGINE is not set we evaluate default based on dataDir
kind = getStoreEngineFromDatadir(dataDir)
}
switch kind {
case FileStoreEngine:
return fstore, nil
case SqliteStoreEngine: