mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 23:44:22 +00:00
Refactor encryption key handling: auto-generate if not provided, update README and tests
This commit is contained in:
@@ -179,15 +179,6 @@ func TestLoad(t *testing.T) {
|
||||
},
|
||||
expectedError: "LEMMA_ADMIN_EMAIL and LEMMA_ADMIN_PASSWORD must be set",
|
||||
},
|
||||
{
|
||||
name: "missing encryption key",
|
||||
setupEnv: func(t *testing.T) {
|
||||
cleanup()
|
||||
setEnv(t, "LEMMA_ADMIN_EMAIL", "admin@example.com")
|
||||
setEnv(t, "LEMMA_ADMIN_PASSWORD", "password123")
|
||||
},
|
||||
expectedError: "invalid LEMMA_ENCRYPTION_KEY: encryption key is required",
|
||||
},
|
||||
{
|
||||
name: "invalid encryption key",
|
||||
setupEnv: func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user