-
Notifications
You must be signed in to change notification settings - Fork 115
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
Update test_positive_all_packages_update
#12342
Update test_positive_all_packages_update
#12342
Conversation
test_positive_fm_packages_check_update
178f5e1
to
e22c025
Compare
|
# Verify that there are no packages available for update and return code is 0 | ||
result = sat_maintain.cli.Packages.check_update() | ||
assert 'FAIL' not in result.stdout | ||
assert result.status == 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test scenario looks very identical to test_positive_fm_packages_update
, can't we add this additional check of check-update when no update is available, into above test after package is updated?
I already added a test for this BZ when we got it on 6.13.z: #12009 is the PR and the bug for 6.13 is https://bugzilla.redhat.com/show_bug.cgi?id=2218656. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with both Gaurav and Griffin and I'm in favor of closing this. Unless there's some additional value to this test that I'm not aware of.
But we may want to add @pytest.mark.include_capsule
to Griffin's test.
I think a good resolution for this PR would be to add the capsule marker like @lhellebr said, and finish the work I started in the other PR that got merged. The test still doesn't completely verify that there are no updates available at the end. See #12009 (comment). @mstrlc if you don't want to add those updates yourself I'm willing to do it and push them here. Up to you. |
Sure, I will look into it & update this test. Sorry, kinda forgot that I had it open. |
test_positive_fm_packages_check_update
test_positive_all_packages_update
Updated Griffin's test to add the capsule marker and a check if the output of the |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me!
* add test_positive_fm_packages_check_update * add capsule marker * add regex to find packages to update * remove duplicate test * update regex to match if there's multiple packages
Automate BZ 2073535 (
satellite-maintain packages check-update fails when there are no packages to be updated
).