Skip to content
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

Cleanup test certificate temp files #9707

Merged
merged 3 commits into from
Feb 21, 2024
Merged

Conversation

fvaleri
Copy link
Contributor

@fvaleri fvaleri commented Feb 19, 2024

Some tests leave a bunch of temporary files in the /tmp folder, which are used for certificate generation. This change adds code to clean them up after the test has finished. It also hides ClientAndServer in MockCruiseControl to isolate test classes from the mockserver dependency.

@fvaleri fvaleri requested review from scholzj and ppatierno and removed request for scholzj February 19, 2024 16:03
@fvaleri fvaleri added this to the 0.40.0 milestone Feb 19, 2024
Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

Why not just mark the files as deleteOnExit()?

Signed-off-by: Federico Valeri <[email protected]>
@fvaleri
Copy link
Contributor Author

fvaleri commented Feb 19, 2024

Why not just mark the files as deleteOnExit()?

You are right, that's better. Thanks.

I would like to keep the ClientAndServer wrapping in MockCruiseControl, which is useful to isolate test classes from the mockserver dependency. Wdyt?

Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

I'm fine with the MockCruiseControl change. But maybe it is worth mentioning in the PR description? Also, I wonder if one of the tests has some more places to check. But LGTM otherwise. Thanks.

Signed-off-by: Federico Valeri <[email protected]>
Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@scholzj scholzj merged commit d5ca61d into strimzi:main Feb 21, 2024
13 checks passed
@fvaleri fvaleri deleted the test-crt-cleanup branch February 21, 2024 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants