Skip to content

pkg/alertmanager: refactor telegram sanitization tests into dedicated function#8272

Open
tomlin7 wants to merge 1 commit intoprometheus-operator:mainfrom
tomlin7:refactor/telegram-sanitization-tests
Open

pkg/alertmanager: refactor telegram sanitization tests into dedicated function#8272
tomlin7 wants to merge 1 commit intoprometheus-operator:mainfrom
tomlin7:refactor/telegram-sanitization-tests

Conversation

@tomlin7
Copy link
Contributor

@tomlin7 tomlin7 commented Jan 12, 2026

Description

Consolidate all Telegram receiver sanitization test cases and version constants from TestSanitizeConfig into the dedicated TestSanitizeTelegramConfig for better maintainability.

Related to #8233 (comment)

Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Verification

I verified the changes by running the consolidated Telegram sanitization tests and ensuring all sub-tests pass.

  • go test -v ./pkg/alertmanager/ -run TestSanitizeTelegramConfig

Changelog entry

Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.

Consolidate Telegram sanitization tests into a dedicated function.

… function

Consolidate all Telegram receiver sanitization test cases and version constants from
TestSanitizeConfig into the dedicated TestSanitizeTelegramConfig for better maintainability.
@tomlin7 tomlin7 requested a review from a team as a code owner January 12, 2026 09:10
Copy link
Member

@heliapb heliapb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants