Skip to content

Commit

Permalink
Add network type option for Host checkout (#16639)
Browse files Browse the repository at this point in the history
Add network type option for Host checkout

(cherry picked from commit 6eb87cc)
  • Loading branch information
shweta83 committed Jan 3, 2025
1 parent 6a05bd6 commit 244e8f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pytest_fixtures/component/leapp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def custom_leapp_host(upgrade_path, module_target_sat, module_sca_manifest_org,
host_class=ContentHost,
deploy_rhel_version=upgrade_path['source_version'],
deploy_flavor=settings.flavors.default,
deploy_network_type='ipv6' if settings.server.is_ipv6 else 'ipv4',
) as chost:
result = chost.register(
module_sca_manifest_org, None, function_leapp_ak.name, module_target_sat
Expand Down
1 change: 1 addition & 0 deletions tests/foreman/ui/test_errata.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,7 @@ def test_positive_apply_for_all_hosts(
workflow='deploy-rhel',
host_class=ContentHost,
_count=num_hosts,
deploy_network_type='ipv6' if settings.server.is_ipv6 else 'ipv4',
) as hosts:
if not isinstance(hosts, list) or len(hosts) != num_hosts:
pytest.fail('Failed to provision the expected number of hosts.')
Expand Down

0 comments on commit 244e8f0

Please sign in to comment.