mirror of
https://github.com/mariocandela/beelzebub.git
synced 2025-07-01 18:47:26 -04:00
fixe unit test
This commit is contained in:
1
main.go
1
main.go
@ -76,7 +76,6 @@ func traceStrategyStdout(event tracer.Event) {
|
||||
"event": event,
|
||||
}).Info("New Event")
|
||||
|
||||
//TODO check amqp.Channe
|
||||
if channel != nil {
|
||||
eventJSON, err := json.Marshal(event)
|
||||
failOnError(err, "Failed to Marshal Event")
|
||||
|
@ -15,8 +15,8 @@ core:
|
||||
logDisableTimestamp: true
|
||||
logsPath: ./logs
|
||||
tracing:
|
||||
mongoEnabled: true
|
||||
mongoURI: provaMock`)
|
||||
rabbitMQEnabled: true
|
||||
rabbitMQURI: provaMock`)
|
||||
return configurationsCoreBytes, nil
|
||||
}
|
||||
|
||||
@ -80,8 +80,8 @@ func TestReadConfigurationsCoreValid(t *testing.T) {
|
||||
assert.Equal(t, coreConfigurations.Core.Logging.LogDisableTimestamp, true)
|
||||
assert.Equal(t, coreConfigurations.Core.Logging.DebugReportCaller, false)
|
||||
assert.Equal(t, coreConfigurations.Core.Logging.LogsPath, "./logs")
|
||||
assert.Equal(t, coreConfigurations.Core.Tracing.MongoEnabled, true)
|
||||
assert.Equal(t, coreConfigurations.Core.Tracing.MongoURI, "provaMock")
|
||||
assert.Equal(t, coreConfigurations.Core.Tracing.RabbitMQEnabled, true)
|
||||
assert.Equal(t, coreConfigurations.Core.Tracing.RabbitMQURI, "provaMock")
|
||||
}
|
||||
|
||||
func TestReadConfigurationsServicesFail(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user