Skip to content

[To dev/1.3] Use column header constants in pipe authentication assertions - #19167

Open
Caideyipi wants to merge 1 commit into
dev/1.3from
codex/cp-0ed7549b-dev13
Open

Caideyipi wants to merge 1 commit into
dev/1.3from
codex/cp-0ed7549b-dev13

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Backport #19131 (commit 0ed7549) to dev/1.3, based on 876b22b.

Reuse ColumnHeaderConstant.USER in both IoTDBPipePermissionIT user-header assertions. Keep the existing one-column LIST USER results, expected rows, and assertion behavior on this branch.

Compatibility adaptations: use the dev/1.3 test path and org.apache.iotdb.db.queryengine.common.header package. The source user-column lookup maps to the existing testWithConnector user-header assertion on this branch. Both IoTDBPipeInclusionIT headers already use the branch's canonical constants, including PATH for privilege paths, so they need no changes. Do not introduce the newer user-ID column or privilege scope format.

Validation: mvn spotless:apply -P with-integration-tests -pl integration-test (restricted to the changed Java file) and git diff --check passed. A source comparison verified that expanding the two USER references to their declared value reproduces the base Java tokens exactly, apart from the added import and formatting. Full compilation and integration tests were not run for this test-only constant substitution. No new tests were added.

* Use column header constants in pipe user assertions

* Use canonical column names in pipe privilege assertions

(cherry picked from commit 0ed7549)
@sonarqubecloud

sonarqubecloud Bot commented Nov 6, 2026

Copy link
Copy Markdown

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.

1 participant