-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Fix entitlements in internalClusterTest #131539
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
mosche
merged 25 commits into
elastic:main
from
mosche:entitlements/fixInternalClusterTest
Jul 29, 2025
+97
−28
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
c3ba071
Fix entitlements in internalClusterTest
mosche 3bf8256
continue logging stacktrace in isTriviallyAllowed
mosche 707e792
Run Azure tests without entitlements until ES-12435
mosche 491f8b6
Run inference tests without entitlements until ES-12435
mosche a43e9b1
Merge branch 'main' into entitlements/fixInternalClusterTest
mosche 02757bf
Don't log exception in isTriviallyAllowed
mosche 1373ee1
Merge branch 'main' into entitlements/fixInternalClusterTest
mosche ca4fd4b
Grant file entitlements for shared data dir to ES base due to lack of…
mosche cadd799
Merge branch 'entitlements/shared_data_path_fix' into entitlements/fi…
mosche eac1835
grant shared_data dir to lucene
mosche ea06394
Merge branch 'entitlements/shared_data_path_fix' into entitlements/fi…
mosche b85aff5
fix
mosche 36fa717
Merge branch 'entitlements/shared_data_path_fix' into entitlements/fi…
mosche 7b7a7f3
fix
mosche cc5fdeb
Merge branch 'entitlements/shared_data_path_fix' into entitlements/fi…
mosche 6351dde
logging
mosche 43f856e
grant shared_data dir to plugins that have a grant on data dir indices/
mosche 8af6bfa
Merge branch 'entitlements/shared_data_path_fix' into entitlements/fi…
mosche d112237
Merge branch 'main' into entitlements/shared_data_path_fix
mosche e86c705
Merge branch 'main' into entitlements/fixInternalClusterTest
mosche 35dfa0d
fix parser
mosche 87cc124
Merge branch 'main' into entitlements/shared_data_path_fix
mosche ffd993f
Merge branch 'entitlements/shared_data_path_fix' into entitlements/fi…
mosche 475ecd9
Merge branch 'main' into entitlements/fixInternalClusterTest
mosche 4479411
Merge branch 'main' into entitlements/fixInternalClusterTest
mosche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,7 @@ | |
import org.elasticsearch.plugins.Plugin; | ||
import org.elasticsearch.test.CorruptionUtils; | ||
import org.elasticsearch.test.ESIntegTestCase; | ||
import org.elasticsearch.test.ESTestCase; | ||
import org.elasticsearch.test.InternalSettingsPlugin; | ||
import org.elasticsearch.test.InternalTestCluster; | ||
import org.elasticsearch.test.engine.MockEngineSupport; | ||
|
@@ -93,6 +94,7 @@ | |
import static org.hamcrest.Matchers.startsWith; | ||
|
||
@ESIntegTestCase.ClusterScope(scope = ESIntegTestCase.Scope.TEST, numDataNodes = 0) | ||
@ESTestCase.WithoutEntitlements // commands don't run with entitlements enforced | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a bit unfortunate how often we need to do this. Makes me wonder if there's a more general rule we could apply so that |
||
public class RemoveCorruptedShardDataCommandIT extends ESIntegTestCase { | ||
|
||
@Override | ||
|
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.