From f8b0d78544bdebfd3caaef655eb8a4ecb6c57f4c Mon Sep 17 00:00:00 2001 From: bvandeusen Date: Sun, 19 Apr 2026 17:39:48 +0000 Subject: [PATCH] test(config): subsonic env override --- internal/config/config_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 24a6eb9e..511a5bb0 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -117,6 +117,17 @@ func TestLibraryEnvOverrides(t *testing.T) { } } +func TestSubsonicEnvOverride(t *testing.T) { + t.Setenv("SMARTMUSIC_SUBSONIC_ALLOW_PLAINTEXT_PASSWORD", "true") + cfg, err := Load("") + if err != nil { + t.Fatalf("Load: %v", err) + } + if !cfg.Subsonic.AllowPlaintextPassword { + t.Error("allow_plaintext_password = false, want true") + } +} + func TestLibraryYAMLLoads(t *testing.T) { dir := t.TempDir() path := filepath.Join(dir, "config.yaml")