-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
52 additions
and
0 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
22 changes: 22 additions & 0 deletions
22
...s/integration/tier0/destructive/offline-system-conversion/test_offline_system_analysis.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,22 @@ | ||
import pytest | ||
|
||
from conftest import TEST_VARS | ||
|
||
|
||
@pytest.mark.test_offline_system_analysis | ||
def test_offline_system_analysis(shell, convert2rhel): | ||
"""Test analysis systems not connected to the Internet but requiring sub-mgr (e.g. managed by Satellite).""" | ||
|
||
enabled_repositories_prior_analysis = shell("subscription-manager repos --list-enabled").output | ||
|
||
with convert2rhel( | ||
"-y -k {} -o {} --debug".format( | ||
TEST_VARS["SATELLITE_KEY"], | ||
TEST_VARS["SATELLITE_ORG"], | ||
) | ||
) as c2r: | ||
c2r.expect("Rollback: Enabling RHSM repositories") | ||
assert c2r.exitstatus == 0 | ||
|
||
enabled_repositories_after_analysis = shell("subscription-manager repos --list-enabled").output | ||
assert enabled_repositories_prior_analysis == enabled_repositories_after_analysis |