-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the enabled repository check after the conversion
We found several problems with the enabled repository check. This PR should fix those plus some minor code improvement changes. Reference ticket: https://issues.redhat.com/browse/RHELC-1515
- Loading branch information
Showing
10 changed files
with
105 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
tests/integration/tier0/destructive/conversion-method/test_rhsm_eus.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import pytest | ||
|
||
from conftest import TEST_VARS | ||
|
||
|
||
@pytest.mark.test_rhsm_eus_account_conversion | ||
def test_rhsm_eus_account(convert2rhel, shell): | ||
""" | ||
Verify that Convert2RHEL is working properly when EUS repositories are used during the conversion. | ||
Only on EUS versions (8.6, 8.8, ...) it is possible to do EUS conversion. | ||
Verify that the correct repositories are enabled after the conversion. | ||
""" | ||
|
||
# Mark the system so the check for the enabled repos after the conversion handles this special case | ||
shell("touch /eus_repos_used") | ||
|
||
with convert2rhel( | ||
"-y --serverurl {} --username {} --password {} --debug --eus".format( | ||
TEST_VARS["RHSM_SERVER_URL"], | ||
TEST_VARS["RHSM_USERNAME"], | ||
TEST_VARS["RHSM_PASSWORD"], | ||
) | ||
) as c2r: | ||
# c2r.expect_exact("Error: 'rhel-8-for-x86_64-baseos-eus-rpms' does not match a valid repository ID.") | ||
# c2r.expect_exact("Error: 'rhel-8-for-x86_64-appstream-eus-rpms' does not match a valid repository ID.") | ||
# c2r.expect_exact("The RHEL EUS repositories are not possible to enable.") | ||
c2r.expect("Conversion successful!") | ||
assert c2r.exitstatus == 0 |
30 changes: 0 additions & 30 deletions
30
tests/integration/tier0/destructive/conversion-method/test_rhsm_non_eus.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters