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] Update tests for change in network configuration #16916

Merged
Merged
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
45 changes: 0 additions & 45 deletions tests/foreman/api/test_provisioningtemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,51 +241,6 @@ def test_positive_build_pxe_default(self, tftpboot, module_target_sat):
in rendered
)

@pytest.mark.rhel_ver_match('[^6]')
def test_positive_provision_template_check_net_interface(
self,
module_sync_kickstart_content,
module_target_sat,
module_sca_manifest_org,
module_location,
module_default_org_view,
module_lce_library,
default_architecture,
default_partitiontable,
):
"""Read the Provision template and verify correct network interface is created.

:id: 971c4dd0-548d-411a-9c5a-f351370bb860

:expectedresults: The rendered provision template has correct network interface.

:BZ: 2148433

:customerscenario: true

:parametrized: yes
"""
macaddress = gen_mac(multicast=False)
capsule = module_target_sat.nailgun_smart_proxy
host = module_target_sat.api.Host(
organization=module_sca_manifest_org,
location=module_location,
name=gen_string('alpha').lower(),
mac=macaddress,
operatingsystem=module_sync_kickstart_content.os,
architecture=default_architecture,
domain=module_sync_kickstart_content.domain,
root_pass=settings.provisioning.host_root_password,
ptable=default_partitiontable,
content_facet_attributes={
'content_source_id': capsule.id,
'content_view_id': module_default_org_view.id,
'lifecycle_environment_id': module_lce_library.id,
},
).create()
provision_template = host.read_template(data={'template_kind': 'provision'})['template']
assert 'ifcfg-$sanitized_real' in provision_template

@pytest.mark.e2e
@pytest.mark.rhel_ver_match('[^6]')
def test_positive_template_check_ipxe(
Expand Down