Documentation
¶
Index ¶
- func GetValidMailNotificationChannel() request.MailNotificationChannelRequest
- func GetValidMattermostNotificationChannel() request.MattermostNotificationChannelRequest
- func MockAuthMiddleware(ctx *gin.Context)
- func MockAuthMiddlewareWithAdmin(ctx *gin.Context)
- func NewJSONRequest(method, url string, bodyAsStruct any) (*http.Request, error)
- func NewTestWebEngine() *gin.Engine
- func SetupNotificationChannelTestEnv(t *testing.T) (port.NotificationChannelRepository, *sqlx.DB)
- func VerifyResponseWithMetadata[T any](t *testing.T, wantResponseCode int, wantResponseParsed T, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetValidMailNotificationChannel ¶ added in v0.12.0
func GetValidMailNotificationChannel() request.MailNotificationChannelRequest
func GetValidMattermostNotificationChannel ¶ added in v0.12.0
func GetValidMattermostNotificationChannel() request.MattermostNotificationChannelRequest
func MockAuthMiddleware ¶ added in v0.7.0
MockAuthMiddleware mocks authentication by setting a default user context in the Gin context for testing purposes.
func MockAuthMiddlewareWithAdmin ¶ added in v0.12.0
MockAuthMiddleware mocks authentication by setting a admin user context in the Gin context for testing purposes.
func NewJSONRequest ¶
NewJSONRequest wraps http.NewRequest and sets the passed struct as body
func NewTestWebEngine ¶ added in v0.12.0
func SetupNotificationChannelTestEnv ¶ added in v0.12.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.