-
This commit is contained in:
@ -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{
|
||||
|
||||
Reference in New Issue
Block a user