#!/usr/bin/python3## Copyright (C) 2026 Red Hat, Inc.# SPDX-License-Identifier: LGPL-2.1-or-laterfrom anacondalib import INSTALLER_VM_MEMORY_MB, VirtInstallMachineCasefrom installer import Installerfrom network import SYSROOT_PATH, Networkfrom progress import Progressfrom testlib import test_main, timeout # pylint: disable=import-errorclass TestNetwork_E2E(VirtInstallMachineCase):provision = {"machine1": {"memory_mb": INSTALLER_VM_MEMORY_MB}}@timeout(1200)def testConnectionsE2E(self):"""Description:Test network configuration modifies profiles correctly.Expected results:- Expected connection profiles in installer with expected values- Network configuration modifies correct profiles- Test that the booted system has expected network configuration"""b = self.browserm = self.machinei = Installer(b, m)n = Network(b, m)i.open()iface = n.get_the_iface()n.preinstall_connection_test(i, iface)con_name = ifacemtu_value = "1600"i.reach_on_sidebar(i.steps.NETWORK)n.set_mtu_on_iface_wizard(iface, mtu_value)n.check_con_settings([[con_name, "802-3-ethernet.mtu", mtu_value, None],])i.reach(i.steps.REVIEW)i.begin_installation(needs_confirmation=False)p = Progress(b)p.wait_done()# Check profiles in installed systemn.check_con_profile_files(con_name, 1, root=SYSROOT_PATH, file_name=con_name)# Check there is only single persistent profilen.check_con_profile_files("", 1, root=SYSROOT_PATH)n.check_con_settings([[con_name, "802-3-ethernet.mtu", mtu_value, None],])self.handleReboot()# Check profiles in installed systemn.check_con_profile_files(con_name, 1, file_name=con_name)# Check there is only single persistent profilen.check_con_profile_files("", 1)n.check_iface_state(iface, "GENERAL.CONNECTION", con_name)n.check_con_settings([[con_name, "802-3-ethernet.mtu", mtu_value, None],])if __name__ == '__main__':test_main()