From c70c83f74593c1ed75c2195e2dba74a5dfcd30cc Mon Sep 17 00:00:00 2001 From: James Elliott Date: Tue, 5 Mar 2024 19:53:02 +1100 Subject: fix(configuration): warning about log level env (#6784) The AUTHELIA_LOG_LEVEL env variable is incorrectly detected as the deprecated version which maps to the `log_level` key instead of the `log.level` key. Signed-off-by: James Elliott --- internal/configuration/helpers_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/configuration/helpers_test.go') diff --git a/internal/configuration/helpers_test.go b/internal/configuration/helpers_test.go index 0c86d09a5..fcb7e343d 100644 --- a/internal/configuration/helpers_test.go +++ b/internal/configuration/helpers_test.go @@ -41,12 +41,12 @@ func TestGetEnvConfigMaps(t *testing.T) { assert.Equal(t, key, "mysecret.user_password") key, ok = keys[DefaultEnvPrefix+"MYOTHER_CONFIGKEY"] - assert.False(t, ok) - assert.Equal(t, key, "") + assert.True(t, ok) + assert.Equal(t, "myother.configkey", key) key, ok = keys[DefaultEnvPrefix+"MYSECRET_PASSWORD"] - assert.False(t, ok) - assert.Equal(t, key, "") + assert.True(t, ok) + assert.Equal(t, "mysecret.password", key) assert.Len(t, ignoredKeys, 4) assert.Contains(t, ignoredKeys, DefaultEnvPrefix+"MYOTHER_CONFIGKEY_FILE") -- cgit v1.2.3