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

Migrate integration test to use tempfile #1891

Merged
merged 1 commit into from
May 10, 2023

Conversation

yihuaf
Copy link
Collaborator

@yihuaf yihuaf commented May 8, 2023

This is the last part of switching to the tempfile crate. The integration test migration is mostly straight forward. Previously, we use container id as the bundle name. Now we use a random name from the tempfile as the bundle path. There is no hard requirement that the bundle path name has to be the container id (uuid), so we are fine here. Also, since the bundle path prepared using tempfile, it will be cleaned up regardless if test success or fails. So we are safe to make the change.

There are some minor edits to the tests I tagged along. It is small enough that I am too lazy to separate out as a different PR :)

Signed-off-by: yihuaf <yihuaf@unkies.org>
@yihuaf yihuaf requested review from YJDoc2, utam0k and a team May 8, 2023 18:44
@yihuaf yihuaf self-assigned this May 8, 2023
@yihuaf yihuaf changed the title fix integration test using tempfile Migrate integration test to use tempfile May 8, 2023
Copy link
Member

@utam0k utam0k left a comment

Choose a reason for hiding this comment

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

Good work

@utam0k utam0k merged commit e7294c3 into youki-dev:main May 10, 2023
@yihuaf yihuaf deleted the yihuaf/integration-temp branch May 10, 2023 16:40
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.

2 participants