Skip to content

Commit

Permalink
Checking out rhel10 hosts via broker --nick
Browse files Browse the repository at this point in the history
  • Loading branch information
damoore044 committed Nov 25, 2024
1 parent 6fa0e8e commit 82bae97
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/foreman/ui/test_errata.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,15 +865,15 @@ def test_positive_apply_for_all_hosts(
hosts.
"""
num_hosts = 4
distro = 'rhel9'
distro = 'rhel10'
# one custom repo on satellite, for all hosts to use
custom_repo = target_sat.api.Repository(url=CUSTOM_REPO_URL, product=module_product).create()
custom_repo.sync()
module_cv.repository = [custom_repo]
module_cv.update(['repository'])
with Broker(
nick=distro,
workflow='deploy-rhel',
workflow='deploy-template',
host_class=ContentHost,
_count=num_hosts,
deploy_network_type='ipv6' if settings.server.is_ipv6 else 'ipv4',
Expand Down Expand Up @@ -1034,7 +1034,9 @@ def test_positive_filter_by_environment(
module_cv.repository = [custom_repo]
module_cv.update(['repository'])

with Broker(nick='rhel9', workflow='deploy-rhel', host_class=ContentHost, _count=3) as clients:
with Broker(
nick='rhel10', workflow='deploy-template', host_class=ContentHost, _count=3
) as clients:
for client in clients:
# register all hosts to the same AK, CV:
setup = target_sat.api_factory.register_host_and_needed_setup(
Expand Down Expand Up @@ -1663,7 +1665,9 @@ def test_content_host_errata_search_commands(
cvs = [module_cv.read(), content_view.read()] # client0, client1
# walrus-0.71-1.noarch (RHSA), kangaroo-0.1-1.noarch (RHBA)
packages = [FAKE_1_CUSTOM_PACKAGE, FAKE_4_CUSTOM_PACKAGE]
with Broker(nick='rhel9', workflow='deploy-rhel', host_class=ContentHost, _count=2) as clients:
with Broker(
nick='rhel10', workflow='deploy-template', host_class=ContentHost, _count=2
) as clients:
for (
client,
cv,
Expand Down

0 comments on commit 82bae97

Please sign in to comment.