test(e2e): TestCaseResult permissions via UserClass.setCustomRulePolicy#27273
Merged
shah-harshit merged 2 commits intomainfrom Apr 11, 2026
Merged
Conversation
Replace PolicyClass/RolesClass/setupUserWithPolicy with UserClass.create + setCustomRulePolicy for team-based policies (collate#3610). Made-with: Cursor
Contributor
Contributor
🟡 Playwright Results — all passed (24 flaky)✅ 3601 passed · ❌ 0 failed · 🟡 24 flaky · ⏭️ 207 skipped
🟡 24 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…tCustomRulePolicy
Code Review ✅ ApprovedEnd-to-end test for TestCaseResult permissions via UserClass.setCustomRulePolicy. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
ShaileshParmar11
approved these changes
Apr 11, 2026
SaaiAravindhRaja
pushed a commit
to SaaiAravindhRaja/OpenMetadata
that referenced
this pull request
Apr 12, 2026
…pen-metadata#27273) Replace PolicyClass/RolesClass/setupUserWithPolicy with UserClass.create + setCustomRulePolicy for team-based policies (collate#3610). Made-with: Cursor
SaaiAravindhRaja
pushed a commit
to SaaiAravindhRaja/OpenMetadata
that referenced
this pull request
Apr 12, 2026
…pen-metadata#27273) Replace PolicyClass/RolesClass/setupUserWithPolicy with UserClass.create + setCustomRulePolicy for team-based policies (collate#3610). Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Related
https://github.com/open-metadata/openmetadata-collate/issues/3610
Summary
Refactors
TestCaseResultPermissions.spec.tsto stop usingPolicyClass,RolesClass, andsetupUserWithPolicy. Each permission user is created withUserClass.create(apiContext, false)and then receives rules throughUserClass.setCustomRulePolicy(policy + role + team), matching the pattern used inDataQualityPermissions.spec.ts.Test plan
yarn eslintonTestCaseResultPermissions.spec.tsyarn playwright:run(or targeted run) forTestCaseResultPermissions.spec.tsMade with Cursor