PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
FIX (tests): Ensure directories for temp data created before tests
Rostislav Dugind4ec46e18e6b
diff --git a/backend/internal/features/storages/model_test.go b/backend/internal/features/storages/model_test.goindex 40b4a32b..3455daa2 100644--- a/backend/internal/features/storages/model_test.go+++ b/backend/internal/features/storages/model_test.go@@ -12,6 +12,7 @@ import (local_storage "postgresus-backend/internal/features/storages/models/local"nas_storage "postgresus-backend/internal/features/storages/models/nas"s3_storage "postgresus-backend/internal/features/storages/models/s3"+ files_utils "postgresus-backend/internal/util/files""postgresus-backend/internal/util/logger""strconv""testing"@@ -37,6 +38,13 @@ func Test_Storage_BasicOperations(t *testing.T) {validateEnvVariables(t)+ // create directories that used for backups and restore+ err := files_utils.EnsureDirectories([]string{+ config.GetEnv().TempFolder,+ config.GetEnv().DataFolder,+ })+ require.NoError(t, err, "Failed to ensure directories")+// Setup S3 connection to docker-compose MinIOs3Container, err := setupS3Container(ctx)require.NoError(t, err, "Failed to setup S3 container")