-
Notifications
You must be signed in to change notification settings - Fork 87
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
[RHELC-828] Add missing integration tests for single yum transaction #677
[RHELC-828] Add missing integration tests for single yum transaction #677
Conversation
Codecov ReportBase: 92.69% // Head: 92.71% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #677 +/- ##
==========================================
+ Coverage 92.69% 92.71% +0.02%
==========================================
Files 24 24
Lines 3273 3282 +9
Branches 576 576
==========================================
+ Hits 3034 3043 +9
Misses 172 172
Partials 67 67
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
4adb380
to
af5ffa5
Compare
tests/integration/tier0/single-yum-transaction-validation/test_remove_entitlement_keys.py
Fixed
Show fixed
Hide fixed
tests/integration/tier0/single-yum-transaction-validation/test_remove_entitlement_keys.py
Fixed
Show fixed
Hide fixed
0968d4f
to
d64c17e
Compare
tests/integration/tier0/single-yum-transaction-validation/test_remove_entitlement_keys.py
Fixed
Show fixed
Hide fixed
d64c17e
to
074ae02
Compare
tests/integration/tier0/single-yum-transaction-validation/test_remove_entitlement_keys.py
Fixed
Show fixed
Hide fixed
c5b8a9e
to
bdebb9e
Compare
tests/integration/tier0/single-yum-transaction-validation/test_transaction_validation_error.py
Fixed
Show resolved
Hide resolved
3c3c575
to
0df16ce
Compare
8fe2151
to
ac4f771
Compare
/packit test |
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.
Re-approving as no code has changed since @SpyTec 's review
ac4f771
to
5ea8586
Compare
- enabled: false | ||
when: distro == centos-8 or distro == oraclelinux-8 |
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'd love to add a because:
here to say why I'm disabling this test for centos-8 and oraclelinux-8, but since it's been a really long time, I don't remember. I will try to get the rationale at some point.
...ntegration/tier0/single-yum-transaction-validation/test_single_yum_transaction_validation.py
Fixed
Show fixed
Hide fixed
...ntegration/tier0/single-yum-transaction-validation/test_single_yum_transaction_validation.py
Fixed
Show fixed
Hide fixed
c1b358e
to
bfc8255
Compare
While testing convert2rhel manually in a vagrant box, I realized that the conversion stopped in the yum transaction validation phase, generating a traceback and not doing a proper rollback after the error appeared. Since the transaction validation is supposed to trigger the rollback in case of any failures, it was strange that the tool was not behaving the way it should. As part of oamg#674 that introduced the fix, we left out the integration tests that were supposed to cover this scenario. Signed-off-by: Rodolfo Olivieri <[email protected]>
Signed-off-by: Rodolfo Olivieri <[email protected]>
Signed-off-by: Rodolfo Olivieri <[email protected]>
Signed-off-by: Rodolfo Olivieri <[email protected]>
c1bab5b
to
9938034
Compare
Signed-off-by: Rodolfo Olivieri <[email protected]>
...ntegration/tier0/single-yum-transaction-validation/test_single_yum_transaction_validation.py
Outdated
Show resolved
Hide resolved
...ntegration/tier0/single-yum-transaction-validation/test_single_yum_transaction_validation.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Michal Bocek <[email protected]>
...ntegration/tier0/single-yum-transaction-validation/test_single_yum_transaction_validation.py
Outdated
Show resolved
Hide resolved
…_single_yum_transaction_validation.py
for more information, see https://pre-commit.ci
try: | ||
os.unlink(cert_path) | ||
except Exception as e: | ||
print("Failed to delete %s. Reason: %s" % (cert_path, e)) |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
@@ -0,0 +1,100 @@ | |||
import os | |||
import shutil |
Check notice
Code scanning / CodeQL
Unused import
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 can open a follow-up PR to remove this type of warning later... I don't want to wait for a couple of hours to get results for the 3rd time in a row.
…677) * Add missing integration tests for single yum transaction While testing convert2rhel manually in a vagrant box, we've bumped into a traceback when the conversion stopped in the yum transaction validation phase and no rollback happened. Since the transaction validation is supposed to trigger the rollback in case of any failures, it was strange that the tool was not behaving the way it should. As part of #674 that introduced a fix for that, we left out the integration test that was supposed to cover this scenario. Signed-off-by: Rodolfo Olivieri <[email protected]> Co-authored-by: Michal Bocek <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Rodolfo Olivieri [email protected]
While testing convert2rhel manually in a vagrant box, I realized that the
conversion stopped in the yum transaction validation phase, generating a
traceback and not doing a proper rollback after the error appeared.
Since the transaction validation is supposed to trigger the rollback in case of
any failures, it was strange that the tool was not behaving the way it should.
As part of #674 that introduced the fix, we left out the integration tests that
were supposed to cover this scenario.
Jira Issue: RHELC-828
Checklist
[RHELC-]
is part of the PR titleRelease Pending