Documentation
¶
Index ¶
- func GetValidMailNotificationChannel() maildto.MailNotificationChannelRequest
- func GetValidMattermostNotificationChannel() mattermostdto.MattermostNotificationChannelRequest
- func GetValidTeamsNotificationChannel() teamsdto.TeamsNotificationChannelRequest
- func MockAuthMiddleware(ctx *gin.Context)
- func MockAuthMiddlewareWithAdmin(ctx *gin.Context)
- func MockAuthMiddlewareWithNotificationUser(ctx *gin.Context)
- func NewJSONRequest(method, url string, bodyAsStruct any) (*http.Request, error)
- func NewTestWebEngine(registry *errmap.Registry) *gin.Engine
- func SetupNotificationChannelTestEnv(t *testing.T) (notificationrepository.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() maildto.MailNotificationChannelRequest
func GetValidMattermostNotificationChannel ¶ added in v0.12.0
func GetValidMattermostNotificationChannel() mattermostdto.MattermostNotificationChannelRequest
func GetValidTeamsNotificationChannel ¶ added in v0.12.0
func GetValidTeamsNotificationChannel() teamsdto.TeamsNotificationChannelRequest
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 MockAuthMiddlewareWithNotificationUser ¶ added in v0.12.0
MockAuthMiddleware mocks authentication by setting a notification 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
func SetupNotificationChannelTestEnv(t *testing.T) (notificationrepository.NotificationChannelRepository, *sqlx.DB)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.