Skip to content

Commit

Permalink
Move repo enable to commonly used fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
sambible committed Sep 1, 2023
1 parent d16c3b6 commit a2a83c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/foreman/ui/test_contenthost.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def vm(module_repos_collection_with_manifest, rhel7_contenthost, target_sat):
"""Virtual machine registered in satellite"""
module_repos_collection_with_manifest.setup_virtual_machine(rhel7_contenthost)
rhel7_contenthost.add_rex_key(target_sat)
rhel7_contenthost.run(r'subscription-manager repos --enable \*')
yield rhel7_contenthost


Expand Down Expand Up @@ -139,7 +140,6 @@ def test_positive_end_to_end(session, default_location, module_repos_collection_
:CaseImportance: Critical
"""
vm.run(r'subscription-manager repos --enable \*')
result = vm.run(f'yum -y install {FAKE_1_CUSTOM_PACKAGE}')
assert result.status == 0
startdate = datetime.utcnow().strftime('%m/%d/%Y')
Expand Down Expand Up @@ -253,7 +253,6 @@ def test_positive_end_to_end_bulk_update(session, default_location, vm, target_s
"""
hc_name = gen_string('alpha')
description = gen_string('alpha')
vm.run(r'subscription-manager repos --enable \*')
result = vm.run(f'yum -y install {FAKE_1_CUSTOM_PACKAGE}')
assert result.status == 0
with session:
Expand Down

0 comments on commit a2a83c0

Please sign in to comment.