- Enhanced Notifications component tests to include support for Discord, Gotify, and Webhook provider types. - Updated test cases to validate the correct handling of provider type options and ensure proper payload structure during creation, preview, and testing. - Introduced new tests for Gotify token handling and ensured sensitive information is not exposed in the UI. - Refactored existing tests for clarity and maintainability, including improved assertions and error handling. - Added comprehensive coverage for payload validation scenarios, including malformed requests and security checks against SSRF and oversized payloads.
10 lines
467 B
Go
10 lines
467 B
Go
package notifications
|
|
|
|
const (
|
|
FlagNotifyEngineEnabled = "feature.notifications.engine.notify_v1.enabled"
|
|
FlagDiscordServiceEnabled = "feature.notifications.service.discord.enabled"
|
|
FlagGotifyServiceEnabled = "feature.notifications.service.gotify.enabled"
|
|
FlagWebhookServiceEnabled = "feature.notifications.service.webhook.enabled"
|
|
FlagSecurityProviderEventsEnabled = "feature.notifications.security_provider_events.enabled"
|
|
)
|