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,
|
"event": event,
|
||||||
}).Info("New Event")
|
}).Info("New Event")
|
||||||
|
|
||||||
//TODO check amqp.Channe
|
|
||||||
if channel != nil {
|
if channel != nil {
|
||||||
eventJSON, err := json.Marshal(event)
|
eventJSON, err := json.Marshal(event)
|
||||||
failOnError(err, "Failed to Marshal Event")
|
failOnError(err, "Failed to Marshal Event")
|
||||||
|
@ -15,8 +15,8 @@ core:
|
|||||||
logDisableTimestamp: true
|
logDisableTimestamp: true
|
||||||
logsPath: ./logs
|
logsPath: ./logs
|
||||||
tracing:
|
tracing:
|
||||||
mongoEnabled: true
|
rabbitMQEnabled: true
|
||||||
mongoURI: provaMock`)
|
rabbitMQURI: provaMock`)
|
||||||
return configurationsCoreBytes, nil
|
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.LogDisableTimestamp, true)
|
||||||
assert.Equal(t, coreConfigurations.Core.Logging.DebugReportCaller, false)
|
assert.Equal(t, coreConfigurations.Core.Logging.DebugReportCaller, false)
|
||||||
assert.Equal(t, coreConfigurations.Core.Logging.LogsPath, "./logs")
|
assert.Equal(t, coreConfigurations.Core.Logging.LogsPath, "./logs")
|
||||||
assert.Equal(t, coreConfigurations.Core.Tracing.MongoEnabled, true)
|
assert.Equal(t, coreConfigurations.Core.Tracing.RabbitMQEnabled, true)
|
||||||
assert.Equal(t, coreConfigurations.Core.Tracing.MongoURI, "provaMock")
|
assert.Equal(t, coreConfigurations.Core.Tracing.RabbitMQURI, "provaMock")
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestReadConfigurationsServicesFail(t *testing.T) {
|
func TestReadConfigurationsServicesFail(t *testing.T) {
|
||||||
|
Reference in New Issue
Block a user