Skip to content

[Entitlements] Test ScopeResolver based on TestBuildInfo (parser + resolver) #127719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ldematte
Copy link
Contributor

@ldematte ldematte commented May 5, 2025

This PR introduces a test-specific ScopeResolver to use with PolicyManager for checking entitlements within test code running in a test runner (unit tests and integ tests, where code is running withing the same JVM).
The information for resolving component and module names is derived from the file created in #127486

Some parts are still WIP (e.g. where to place the code that looks for all test-build-info files, or code to read server-specific test-build-info); these are clearly marked with a TODO and possibly will be dealt with in a follow-up PR.

@ldematte ldematte added >test Issues or PRs that are addressing/adding tests WIP :Core/Infra/Entitlements Entitlements infrastructure labels May 5, 2025
@ldematte ldematte changed the title [Entitlements] A ScopeResolver based on TestBuildInfo for tests (parser + resolver) [Entitlements] Test ScopeResolver based on TestBuildInfo (parser + resolver) May 6, 2025
@ldematte ldematte added auto-backport Automatically create backport pull requests when merged v8.19.0 v8.18.2 v9.0.2 labels May 6, 2025
@ldematte ldematte marked this pull request as ready for review May 6, 2025 12:24
@ldematte ldematte requested a review from a team May 6, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Core/Infra/Entitlements Entitlements infrastructure >test Issues or PRs that are addressing/adding tests v8.18.2 v8.19.0 v9.0.2 v9.1.0 WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants