Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.15.z] Add network type option for Host checkout #16682

Open
wants to merge 1 commit into
base: 6.15.z
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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