Repository navigation
SearchAggregateRbacIT: skip the restricted-user tests on an external cluster - #35477
Conversation
…cluster The restricted user's client signs its token with the harness key, which a deployed cluster rejects. Three of the four tests have failed with 401 on every nightly cluster run since #35148, and scale-it, which runs only when search-it passes, was skipped with them. They now skip in external mode, as the other search ITs that cannot run against a cluster do. Embedded runs are unchanged.
Code Review ✅ Approved🟡 Medium risk · Skipping three restricted-user RBAC tests in external mode reduces cluster coverage and could leave regressions in those authorization paths undetected. Skips the three restricted-user tests in VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
🚦 Removed from the merge queue —
|
Describe your changes:
Fixes the
SearchAggregateRbacITfailures that have failed every main nightly cluster run since #35148 merged on 2026-10-12 (openmetadata-nightlyk8s-java-it, job "Java UI + Search ITs").401 Not Authorized! Token signing key not found in configured public keys … JWT Token keyID doesn't match the configured keyID. This happened in nightly runs 38340813961 and 38504749438 (scheduled) and 38518461916 (dispatch).SdkClients.createClient, which signs the token with the harness key, and a deployed cluster does not trust that key.scale-itruns only whensearch-itpasses, so the whole scale matrix has been skipped on main since 10-13, including the new lineage benchmark.Change: the three tests now skip in external mode, the way the other search ITs that cannot run against a cluster do (
assumeTrue(!OssTestServer.isExternalMode(), …), as inLiveSearchSettingsChangeIT).test_aggregate_adminSeesBothDomainsuses only the admin client and keeps running on the cluster.No issue: this fixes a failing test, so it carries
skip-pr-checks.Type of change:
High-level design:
N/A — a test-only change to one class.
Tests:
Use cases covered
Unit tests
Not applicable — test-only change.
Backend integration tests
OM_URL+OM_ADMIN_TOKEN,-P search-it -Dskip.embedded.bootstrap=true): 3 skipped with the new reason before any server call, 0 failures.Ingestion integration tests
Playwright (UI) tests
Manual testing performed
UI screen recording:
Not applicable — test-only change.
Checklist:
Fixes <issue-number>: <short explanation>— a test fix, so no issue (skip-pr-checks).Fixes #<issue-number>above — as above.🤖 Generated with Claude Code