Documentation ¶
Index ¶
- Constants
- func NewLogRepositoryMock() logs.Log
- func NewMockClientDAO() client.Repository
- func NewMockComponentDAO() component.Repository
- func NewMockFailureClientDAO() client.Repository
- func NewMockFailureComponentDAO() component.Repository
- func NewMockFailureIncidentDAO() incident.Repository
- func NewMockIncidentDAO() incident.Repository
- func PrometheusModel() map[string]models.PrometheusIncomingWebhook
Constants ¶
View Source
const ( //ZeroTimeHex is a fixed reproducible value to be used as References // defined with bson.Hex of time.Zero ZeroTimeHex = "886e09000000000000000000" //OneSecTimeHex is a fixed reproducible value to be used as References // defined with bson.Hex of time.Zero + 1 time.Second OneSecTimeHex = "886e09010000000000000000" )
Variables ¶
This section is empty.
Functions ¶
func NewLogRepositoryMock ¶
NewLogRepositoryMock creates a new mock for the log repository
func NewMockClientDAO ¶
func NewMockClientDAO() client.Repository
NewMockClientDAO creates a new Client Repository Mock
func NewMockComponentDAO ¶
func NewMockComponentDAO() component.Repository
NewMockComponentDAO creates a new Component Repository Mock
func NewMockFailureClientDAO ¶
func NewMockFailureClientDAO() client.Repository
NewMockFailureClientDAO creates a new Client Repository Mock that fails in every operation
func NewMockFailureComponentDAO ¶
func NewMockFailureComponentDAO() component.Repository
NewMockFailureComponentDAO creates a new Component Repository Mock that fails in every operation
func NewMockFailureIncidentDAO ¶
func NewMockFailureIncidentDAO() incident.Repository
NewMockFailureIncidentDAO creates a new Incident Repository Mock that fails in every operation
func NewMockIncidentDAO ¶
func NewMockIncidentDAO() incident.Repository
NewMockIncidentDAO creates a new Incident Repository Mock
func PrometheusModel ¶
func PrometheusModel() map[string]models.PrometheusIncomingWebhook
PrometheusModel return a map of PrometheusIncomingWebhook structures to be used in tests named by it's the test case model
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.