Pulse/internal/notifications
rcourtman 67a351fbd9 test: Add tests for webhook template generation and bootstrap token functions
- Add comprehensive tests for generatePayloadFromTemplateWithService covering:
  - Valid JSON template rendering
  - Invalid template syntax error handling
  - Template execution errors
  - ntfy service (plain text, skips JSON validation)
  - Various services (discord, telegram, pagerduty) JSON validation
  - Template function usage (upper, title)
  - Numeric and boolean values in templates
  - Special characters and empty template edge cases

- Add tests for bootstrapTokenValid covering:
  - Nil router handling
  - Empty hash and empty token cases
  - Valid token validation
  - Invalid token rejection
  - Whitespace trimming

- Add tests for clearBootstrapToken covering:
  - Nil router safety
  - Token file deletion
  - Missing file handling
  - Empty path handling
2025-12-01 22:07:40 +00:00
..
concurrency_test.go Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
email_enhanced.go Fix critical monitoring system issues and add robustness improvements 2025-11-07 08:52:37 +00:00
email_enhanced_test.go test: Add unit tests for email_enhanced.go error handling 2025-12-01 11:46:44 +00:00
email_providers.go chore: remove more dead code 2025-11-27 00:10:55 +00:00
email_template.go refactor: replace deprecated strings.Title with custom titleCase 2025-11-27 09:22:52 +00:00
email_template_test.go test: Add comprehensive tests for EmailTemplate function 2025-12-01 15:29:31 +00:00
notification_utils_test.go test: Add tests for notification config copy functions 2025-12-01 13:43:52 +00:00
notifications.go style: fix additional staticcheck warnings 2025-11-27 09:21:11 +00:00
notifications_test.go test: Add tests for webhook template generation and bootstrap token functions 2025-12-01 22:07:40 +00:00
queue.go style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
queue_test.go Add unit tests for notification queue utility functions 2025-11-30 03:19:23 +00:00
security_utils_test.go test: Improve coverage for security utility functions 2025-12-01 14:33:31 +00:00
templates_test.go Add unit tests for notification template functions (notifications) 2025-11-30 07:48:53 +00:00
webhook_allowlist_test.go test: Add error path tests for renderWebhookURL and UpdateAllowedPrivateCIDRs 2025-12-01 12:58:15 +00:00
webhook_enhanced.go Improve table column widths and sparkline visibility 2025-11-09 23:36:52 +00:00
webhook_retry_test.go Add unit tests for isRetryableWebhookError (internal/notifications) 2025-11-30 22:03:26 +00:00
webhook_templates.go Fix Pushover webhook custom field overrides (related to #665) 2025-11-08 10:32:27 +00:00