Skip to content

test(common): deepen SystemGroupFilter prefix-boundary coverage - #3265

Open
yyqdbngt wants to merge 1 commit into
apache:rocketmq-studiofrom
yyqdbngt:codex/yy-system-group-filter-coverage
Open

test(common): deepen SystemGroupFilter prefix-boundary coverage#3265
yyqdbngt wants to merge 1 commit into
apache:rocketmq-studiofrom
yyqdbngt:codex/yy-system-group-filter-coverage

Conversation

@yyqdbngt

@yyqdbngt yyqdbngt commented Sep 5, 2026

Copy link
Copy Markdown

Summary

Extends the existing SystemGroupFilterTest (1 to 3 tests) to pin down the prefix-boundary contract of the system consumer-group filter.

Added cases:

  • system tokens embedded anywhere but the start of the name do not mark a user group as system (app_TOOLS_CONSUMER, xCID_SYS_custom, xCID_HOUSEKEEPING_x, orders-CID_RMQ_SYS_TRANS, yrmq_sys_custom, pre%RETRY%consumer, suffix_%DLQ%consumer);
  • bare prefix tokens (CID_SYS_, rmq_sys_, %RETRY%) and the canonical prefixed names are still recognized as system.

Why

The filter hides system consumer groups from user-facing lists and dashboard counts; its prefix-boundary semantics (token must start the name) had no negative coverage.

Testing

mvn -B test -Dtest=SystemGroupFilterTest — 3/3 pass; checkstyle (validate) clean.

@RockteMQ-AI RockteMQ-AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Summary

test(common): deepen SystemGroupFilter prefix-boundary coverage

Clean test coverage improvement. Tests are well-structured with proper assertions and edge case handling.

LGTM.


Automated review by github-manager-bot

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants