MSP-6703 add backup_cleaner
This commit is contained in:
1 parent
2caed6b3f0
commit
451d277644
6 files changed
+96
-9
No files matched your search
@@ -9,6 +9,10 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"isp-config-service/conf"
|
||||
"isp-config-service/domain"
|
||||
"isp-config-service/service/startup"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/txix-open/isp-kit/bootstrap"
|
||||
"github.com/txix-open/isp-kit/cluster"
|
||||
@@ -16,9 +20,6 @@ import (
|
||||
"github.com/txix-open/isp-kit/json"
|
||||
"github.com/txix-open/isp-kit/log"
|
||||
"github.com/txix-open/isp-kit/rc/schema"
|
||||
"isp-config-service/conf"
|
||||
"isp-config-service/domain"
|
||||
"isp-config-service/service/startup"
|
||||
)
|
||||
|
||||
//nolint:funlen,paralleltest
|
||||
@@ -175,6 +176,7 @@ func setupTest(t *testing.T) log.Logger {
|
||||
boot.MigrationsDir = "../migrations"
|
||||
dataPath := dataDir(t)
|
||||
boot.App.Config().Set("rqlite.DataPath", dataPath)
|
||||
boot.App.Config().Set("backup.Enabled", false)
|
||||
logger := boot.App.Logger()
|
||||
|
||||
startup, err := startup.New(boot)
|
||||
|
||||
@@ -6,15 +6,16 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"isp-config-service/conf"
|
||||
"isp-config-service/domain"
|
||||
"isp-config-service/service/startup"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/txix-open/isp-kit/bootstrap"
|
||||
"github.com/txix-open/isp-kit/cluster"
|
||||
"github.com/txix-open/isp-kit/http/httpclix"
|
||||
"github.com/txix-open/isp-kit/log"
|
||||
"github.com/txix-open/isp-kit/test/fake"
|
||||
"isp-config-service/conf"
|
||||
"isp-config-service/domain"
|
||||
"isp-config-service/service/startup"
|
||||
)
|
||||
|
||||
// nolint:paralleltest
|
||||
@@ -95,6 +96,7 @@ func setupTestWithAppRun(t *testing.T) (*require.Assertions, log.Logger) {
|
||||
boot.MigrationsDir = "../migrations"
|
||||
dataPath := dataDir(t)
|
||||
boot.App.Config().Set("rqlite.DataPath", dataPath)
|
||||
boot.App.Config().Set("backup.Enabled", false)
|
||||
logger := boot.App.Logger()
|
||||
|
||||
startup, err := startup.New(boot)
|
||||
|
||||
Reference in new issue
Block a user