This commit is contained in:
2025-08-23 23:28:35 -04:00
parent 02323a8b5c
commit 113b978557
3 changed files with 25 additions and 16 deletions

View File

@ -94,6 +94,15 @@ func (c *TestConfig) GetJWTSecret() string {
return c.GetString("JWT_SECRET")
}
func (c *TestConfig) GetDatabaseDSNForLogging() string {
return "host=" + c.GetString("DB_HOST") +
" port=" + c.GetString("DB_PORT") +
" user=" + c.GetString("DB_USER") +
" password=***MASKED***" +
" dbname=" + c.GetString("DB_NAME") +
" sslmode=" + c.GetString("DB_SSLMODE")
}
// NewTestConfig creates a test configuration with default values
func NewTestConfig() *TestConfig {
return &TestConfig{