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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user