Skip to content

Conversation

@ldematte
Copy link
Contributor

Create "fake" test entitlement libs dir and jar to pass validation

@BeforeClass
public static void beforeClass() throws IOException {
Files.createDirectories(ENTITLEMENTS_LIB_DIR);
Files.createTempFile(ENTITLEMENTS_LIB_DIR, "mock-entitlements-bridge", ".jar");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need the file? The directory is not enough?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I'm asking because I'm a bit surprised that it needs the file, but doesn't care about the file's name.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:D funny you asked, you probably removed that difficult phase of the project :)
The name of the jar itself is difficult to predict (with version, snapshot, etc), so the code there test we have exactly one jar in that directory, the name can be anything.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course I remember that. I was just testing whether you knew. 😅

Copy link
Contributor

@mosche mosche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@prdoyle
Copy link
Contributor

prdoyle commented Feb 20, 2025

This is blocking #122907 now. I think I'll move it out of draft and merge on behalf of @ldematte since it's outside his work hours now.

@prdoyle prdoyle marked this pull request as ready for review February 20, 2025 18:34
@prdoyle prdoyle requested a review from a team as a code owner February 20, 2025 18:34
@prdoyle prdoyle merged commit 6d04251 into elastic:main Feb 20, 2025
17 checks passed
@ldematte
Copy link
Contributor Author

This is blocking #122907 now. I think I'll move it out of draft and merge on behalf of @ldematte since it's outside his work hours now.

I was leaving one day for people to object but you did good, especially if it was blocking!

@ldematte ldematte deleted the fix-JvmOptionsParserTests branch February 21, 2025 08:02
afoucret pushed a commit to afoucret/elasticsearch that referenced this pull request Feb 21, 2025
rjernst pushed a commit to rjernst/elasticsearch that referenced this pull request Feb 25, 2025
elasticsearchmachine pushed a commit that referenced this pull request Feb 26, 2025
…#123428)

Co-authored-by: Lorenzo Dematté <lorenzo.dematte@elastic.co>
rjernst pushed a commit to rjernst/elasticsearch that referenced this pull request Feb 26, 2025
rjernst pushed a commit to rjernst/elasticsearch that referenced this pull request Feb 26, 2025
elasticsearchmachine pushed a commit that referenced this pull request Feb 26, 2025
…#123444)

Co-authored-by: Lorenzo Dematté <lorenzo.dematte@elastic.co>
elasticsearchmachine pushed a commit that referenced this pull request Feb 26, 2025
…#123445)

Co-authored-by: Lorenzo Dematté <lorenzo.dematte@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants