1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-10 23:39:15 +00:00

chore: preparation for merge into main branch

This commit is contained in:
Elias Schneider
2025-12-30 16:27:48 +01:00
parent 078152d4db
commit e60b80632f
14 changed files with 42 additions and 14 deletions

View File

@@ -168,7 +168,7 @@ func ValidateEnvConfig(config *EnvConfigSchema) error {
switch config.FileBackend {
case "s3", "database":
// All good, these are valid values
case "", "fs":
case "", "filesystem":
if config.UploadPath == "" {
config.UploadPath = defaultFsUploadPath
}

View File

@@ -159,7 +159,7 @@ func TestParseEnvConfig(t *testing.T) {
t.Setenv("APP_URL", "http://localhost:3000")
t.Setenv("AUDIT_LOG_RETENTION_DAYS", "0")
err := parseEnvConfig()
err := parseAndValidateEnvConfig(t)
require.Error(t, err)
assert.ErrorContains(t, err, "AUDIT_LOG_RETENTION_DAYS must be greater than 0")
})