✨ feat(bdd): magic-link BDD scenarios + bcrypt overflow fix (ADR-0028 Phase A.5) (#63)
Co-authored-by: Gabriel Radureau <arcodange@gmail.com> Co-committed-by: Gabriel Radureau <arcodange@gmail.com>
This commit was merged in pull request #63.
This commit is contained in:
@@ -815,6 +815,20 @@ func createTestConfig(port int, v2Enabled bool) *config.Config {
|
||||
JWT: config.JWTConfig{
|
||||
TTL: 24 * time.Hour,
|
||||
},
|
||||
// Email + MagicLink defaults so the magic-link BDD scenarios
|
||||
// (ADR-0028 Phase A.5) can send to local Mailpit. Without these
|
||||
// the literal Config skips Viper's SetDefault and From stays
|
||||
// empty — pkg/email then rejects the message.
|
||||
Email: config.EmailConfig{
|
||||
From: "noreply@bdd.local",
|
||||
SMTPHost: "localhost",
|
||||
SMTPPort: 1025,
|
||||
Timeout: 5 * time.Second,
|
||||
},
|
||||
MagicLink: config.MagicLinkConfig{
|
||||
TTL: 15 * time.Minute,
|
||||
BaseURL: "http://localhost:8080",
|
||||
},
|
||||
},
|
||||
API: config.APIConfig{
|
||||
V2Enabled: v2Enabled,
|
||||
|
||||
Reference in New Issue
Block a user