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

test: refactor monolithic test_smoke into multiple tests #49

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Dec 11, 2023

The existing test_smoke was becoming a bit too big and especially the fact that part have to be skipped depending on the environment is really not nice.

This commit refactors it to be more module. For this it uses the pytest session scope to ensure that the build container and the test image are only build once and then shared accross the various individual tests.

test/test_smoke.py Outdated Show resolved Hide resolved
bcl
bcl previously approved these changes Dec 11, 2023
Copy link
Contributor

@bcl bcl left a comment

Choose a reason for hiding this comment

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

Other than my one nitpick this looks like an excellent improvement. Not sure what's up with the testing farm tests failing though.

bcl
bcl previously approved these changes Dec 12, 2023
Copy link
Contributor

@bcl bcl left a comment

Choose a reason for hiding this comment

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

Looks good!

mvo5 and others added 3 commits December 13, 2023 10:25
The existing test_smoke was becoming a bit too big and especially
the fact that part have to be skipped depending on the environment
is really not nice.

This commit refactors it to be more module. For this it uses the
pytest session scope to ensure that the build container and the
test image are only build once and then shared accross the
various individual tests.
@mvo5
Copy link
Collaborator Author

mvo5 commented Dec 13, 2023

This includes now #50 which apparently was required to make the RHTAP build work (it was failing before without this).

@supakeen supakeen added this pull request to the merge queue Dec 13, 2023
Merged via the queue into osbuild:main with commit 6b677ab Dec 13, 2023
9 checks passed
@mvo5 mvo5 deleted the refactor-tests branch December 13, 2023 11:29
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