Skip to content

[9.1] Add TestEntitlementsRule with support for dynamic entitled node paths for testing (#132077) #132431

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

Merged
merged 1 commit into from
Aug 5, 2025

Conversation

mosche
Copy link
Contributor

@mosche mosche commented Aug 5, 2025

Backports the following commits to 9.1:

…hs for testing (elastic#132077)

Use TestEntitlementsRule and closable entitled node paths for better isolation and management of entitlement related state during tests. 

However, wipePendingDataDirectories in tests requires entitlement delegation to work as this uses server's FileSystemUtils. Until ES-10920 is solved, entitled node paths cannot be removed unless the test suite completes or explicitly removing all entitled node paths in-between tests (if cluster scope is TEST).

Relates to ES-12042
@mosche mosche added :Core/Infra/Entitlements Entitlements infrastructure >refactoring auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Core/Infra Meta label for core/infra team labels Aug 5, 2025
@elasticsearchmachine elasticsearchmachine merged commit 90daf4a into elastic:9.1 Aug 5, 2025
34 checks passed
@mosche mosche deleted the backport/9.1/pr-132077 branch August 5, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Core/Infra/Entitlements Entitlements infrastructure >refactoring Team:Core/Infra Meta label for core/infra team v9.1.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants