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

Refactor the lifecycle test #1868

Merged
merged 7 commits into from
May 6, 2023
Merged

Conversation

yihuaf
Copy link
Collaborator

@yihuaf yihuaf commented May 1, 2023

As previously discussed in #1827 , the TestResult is meant to be used in the test cases and not utility functions. Before this PR, the lifecycle test calls other tests using TestResult which is not inline with our intention. This PR fix this by refactoring all tests to not call other tests in test cases.

yihuaf added 5 commits May 1, 2023 19:33
Signed-off-by: yihuaf <yihuaf@unkies.org>
Signed-off-by: yihuaf <yihuaf@unkies.org>
Signed-off-by: yihuaf <yihuaf@unkies.org>
Signed-off-by: yihuaf <yihuaf@unkies.org>
Signed-off-by: yihuaf <yihuaf@unkies.org>
@yihuaf yihuaf requested review from YJDoc2 and a team May 1, 2023 20:45
@yihuaf yihuaf self-assigned this May 1, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #1868 (41286b3) into main (7d9d091) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1868   +/-   ##
=======================================
  Coverage   68.89%   68.89%           
=======================================
  Files         122      122           
  Lines       13717    13717           
=======================================
+ Hits         9450     9451    +1     
+ Misses       4267     4266    -1     

Copy link
Collaborator

@YJDoc2 YJDoc2 left a comment

Choose a reason for hiding this comment

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

Hey, overall its fine, just a few nits.

As you had said this makes much more sense that what we currently have. Thanks for taking initiative and making this change!

@yihuaf yihuaf requested a review from YJDoc2 May 5, 2023 19:03
@yihuaf
Copy link
Collaborator Author

yihuaf commented May 5, 2023

@YJDoc2 PTAL

Signed-off-by: yihuaf <yihuaf@unkies.org>
Signed-off-by: yihuaf <yihuaf@unkies.org>
Copy link
Collaborator

@YJDoc2 YJDoc2 left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@YJDoc2 YJDoc2 merged commit 66a3d7a into containers:main May 6, 2023
10 checks passed
@yihuaf yihuaf deleted the yihuaf/refactor-tests branch May 15, 2023 03:15
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.

None yet

3 participants