Skip to content

Commit

Permalink
Enable centos repos before the analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
kokesak committed May 23, 2024
1 parent 9e4fada commit 304e0f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ def satellite_registration(shell, yum_conf_exclude, request):
Register the system to the Satellite server
By default it acquires the curl command from the satellite_curl_command function
Can be parametrized with requesting a different key from the SAT_REG_FILE(.sat_reg_file):
@pytest.mark.parametrized("satellite_registration", ["DIFFERENT_KEY"], indirect=True)
@pytest.mark.parametrize("satellite_registration", ["DIFFERENT_KEY"], indirect=True)
"""
# Get the curl command for the respective system
# from the conftest function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ def test_enabled_repositories_after_analysis(shell, convert2rhel, satellite_regi
- Run the analysis and assert that we successfully enabled the RHSM repositories
- Collect the enabled repositories after the tool run to compare with the repositories prior to the analysis
"""

# Enable CentOS repos manually because they are disabled by default in our satellite instance
shell("subscription-manager repos --enable='Satellite_Engineering_CentOS_7_Updates_x86_64'")
shell("subscription-manager repos --enable='Satellite_Engineering_CentOS_7_Base_x86_64'")

enabled_repositories_prior_analysis = collect_enabled_repositories(shell)

with convert2rhel("analyze -y --debug") as c2r:
Expand Down

0 comments on commit 304e0f3

Please sign in to comment.