See http://ci.opensuse.org/job/yast-yast-network-master/4/display/redirect?page=...
Changes:
[schubi] Removed AutoYaST dependencies in order to run the host module
[schubi] rubocop
------------------------------------------
[...truncated 131.97 KB...]
[ 16s] clears BONDING_SLAVEx which are not needed anymore
[ 16s] clears all BONDING_SLAVESx and sets BONDING_MASTER, BONDING_OPTIONS when no slaves provided
[ 16s] raises an exception in case of nil devmap
[ 16s]
[ 16s] VirtualEditDialog
[ 16s] passes smoke test
[ 16s]
[ 16s] #Yast::NetworkStorageClass:0x0000000003357e08
[ 16s] .getDevices
[ 16s] skips the rootfs entry when mount point is /
[ 16s] returns nfs when mount point is nfs or nfs4
[ 16s] returns the device when mount point is not nfs and not rootfs
[ 16s] returns an empty string when mount point does not exist
[ 16s]
[ 16s] InstallInfConvertor
[ 16s] in case of no network config in /etc/install.inf
[ 16s] #hostname
[ 16s] returns empty string
[ 16s] #write_hostname
[ 16s] returns false
[ 16s] #write_proxy
[ 16s] returns false
[ 16s] linuxrc provides static configuration
[ 16s] #write_global_netconfig
[ 16s] writes all expected configuration
[ 16s] #write_proxy
[ 16s] writes proxy configuration if defined in install.inf
[ 16s] writes proxy credentials separately
[ 16s] does not write proxy configuration if not defined in install.inf
[ 16s]
[ 16s] NetworkWidgetsInclude::ipoib_mode_widget
[ 16s] contains known IPoIB modes
[ 16s] contains an item allowing implicit mode setup
[ 16s]
[ 16s] NetworkLanUdevInclude#update_udev_rule_key
[ 16s] updates existing assignment key to new value
[ 16s] updates existing comparison key to new value
[ 16s] returns unchanged rule when key is not found
[ 16s]
[ 16s] #udev_rule_key
[ 16s] raises ArgumentError if given rule is empty
[ 16s] returns value of the first attribute which matches given key
[ 16s] returns an empty string if no rule matches
[ 16s]
[ 16s] NetworkLanUdevInclude#AddToUdevRule
[ 16s] adds new tripled into existing rule
[ 16s]
[ 16s] NetworkLanUdevInclude#RemoveKeyFromUdevRule
[ 16s] removes tripled from existing rule
[ 16s]
[ 16s] LanItems#ReplaceItemUdev
[ 16s] when the given Item hasn't got an udev rule
[ 16s] creates and assings a new rule for the given Item
[ 16s] when the given Item has got an udev rule
[ 16s] replaces triplet in the rule as requested
[ 16s] does not set modification flag in case of no change
[ 16s] contains NAME tuplet at last position
[ 16s]
[ 16s] #Yast::SuSEFirewall4NetworkClass:0x0000000003ee34e8
[ 16s] #SetSshdEnabled
[ 16s] sets whether sshd service should be started and caches the information in ServicesProposal
[ 16s] #prepare_proposal
[ 16s] when firewall package is selected for installation
[ 16s] proposes firewall and ssh port according to control file
[ 16s] when firewall package is not selected for installation
[ 16s] proposes disabled firewall and proposes ssh port according to control file
[ 16s] ProtectByFirewall
[ 16s] when interface is not in fw zone
[ 16s] doesn't cause modification flag to be set when protect status is true
[ 16s] doesn't cause modification flag to be set when protect status is false
[ 16s]
[ 16s] phy_connected?
[ 16s] returns true if PHY layer is available
[ 16s] returns false if PHY layer is not available
[ 16s]
[ 16s] LanItemsClass#BuildLanOverview
[ 16s] returns translated network device textual description for wlan device
[ 16s]
[ 16s] LanItemsClass#ip_overview
[ 16s] do not crash when devmap for staticaly configured device do not contain PREFIXLEN
[ 16s]
[ 16s] LanItemsClass
[ 16s] #Rollback
[ 16s] when the current item is committed
[ 16s] leaves Items untouched
[ 16s] when the current item is uncommitted; without hwinfo
[ 16s] deletes the whole item
[ 16s] when the current item is uncommitted; with hwinfo
[ 16s] when getNetworkInterfaces doesn't have it
[ 16s] deletes the ifcfg of the item
[ 16s] when getNetworkInterfaces has it
[ 16s] leaves Items untouched
[ 16s]
[ 16s] NetworkLanAddressInclude
[ 16s] #justify_dev_name
[ 16s] returns given device name justified by 0's at right
[ 16s] #getISlaveIndex
[ 16s] returns the index position of the given slave in the mbox_items table
[ 16s] returns -1 in case the slave is not in the msbox_items table
[ 16s] #validate_bond
[ 16s] when there is not more than one physical port id per interface
[ 16s] returns true
[ 16s] when there is more than one physical port id per interface
[ 16s] warns the user and request confirmation to continue
[ 16s] #update_hostname
[ 16s] drops old /etc/hosts record if hostname was changed
[ 16s]
[ 16s] Yast::Routing#Read
[ 16s] loades ifroute-* files
[ 16s] replace implicit device name using explicit one
[ 16s] removes duplicit routes
[ 16s]
[ 16s] Yast::Routing#write_routes
[ 16s] writes device assigned routes into correct ifroute file
[ 16s]
[ 16s] Yast::Routing#Write
[ 16s] does write route configuration files, #0
[ 17s] does write route configuration files, #1
[ 17s]
[ 17s] When querying netcard device name
[ 17s] returns empty list when querying device name with nil or empty input
[ 17s] can return list of device names available in the system
[ 17s]
[ 17s] NetworkComplexInclude#HardwareName
[ 17s] returns expected name when querying oldfashioned mac based id
[ 17s] returns expected name when querying oldfashioned bus based id
[ 17s] returns expected name when querying by device name
[ 17s] returns empty string when id is not given
[ 17s] returns empty string when no hwinfo is available
[ 17s] returns empty string when querying unknown id
[ 17s]
[ 17s] LanItemsClass#BuildLanOverview
[ 17s] returns description and uses custom name if present
[ 17s] returns description and uses type based name if hwinfo is not present
[ 17s]
[ 17s] LanItemsClass#DeleteItem
[ 17s] removes an existing item
[ 17s] removes only the configuration if the item has hwinfo
[ 17s]
[ 17s] LanItemsClass#GetItemName
[ 17s] returns name provided by hwinfo if not configured
[ 17s] returns name according configuration if available
[ 17s]
[ 17s] LanItemsClass#SetItemName
[ 17s] doesn't try to update udev rules when none exists for the item
[ 17s]
[ 17s] LanItemsClass#FindAndSelect
[ 17s] finds configured device
[ 17s] fails to find unconfigured device
[ 17s]
[ 17s] LanItemsClass#new_device_startmode
[ 17s] When product_startmode is auto and device can hotplug
[ 17s] results to auto
[ 17s] When product_startmode is ifplugd and device can hotplug
[ 17s] results to hotplug when not running on laptop
[ 17s] results to ifplugd when running on laptop
[ 17s] results to hotplug when running NetworkManager
[ 17s] results to hotplug when current device is virtual one
[ 17s] When product_startmode is not auto neither ifplugd
[ 17s] for hotplug it results to hotplug if device can hotplug
[ 17s] for manual it results to hotplug if device can hotplug
[ 17s] for off it results to hotplug if device can hotplug
[ 17s] for nfsroot it results to hotplug if device can hotplug
[ 17s] When product_startmode is auto and device cannot hotplug
[ 17s] results to auto
[ 17s] When product_startmode is ifplugd and device cannot hotplug
[ 17s] results to auto when not running on laptop
[ 17s] results to ifplugd when running on laptop
[ 17s] results to auto when running NetworkManager
[ 17s] results to auto when current device is virtual one
[ 17s] When product_startmode is not auto neither ifplugd
[ 17s] for hotplug it results to auto if device cannot hotplug
[ 17s] for manual it results to auto if device cannot hotplug
[ 17s] for off it results to auto if device cannot hotplug
[ 17s] for nfsroot it results to auto if device cannot hotplug
[ 17s]
[ 17s] NetworkLanS390Include::s390_DriverLoaded
[ 17s] succeeds when driver is already loaded
[ 17s] fails when driver is not loaded
[ 17s]
[ 17s] Yast::NetworkAutoconfiguration
[ 17s] it sets DHCLIENT_SET_DEFAULT_ROUTE properly
[ 17s] configures just one NIC to have a default route
[ 17s] #any_iface_active?
[ 17s] returns true if any of available interfaces has configuration and is up
[ 17s]
[ 17s] #Yast::DNSClass:0x0000000003198928
[ 17s] .default_dhcp_hostname
[ 17s] with dhcp_hostname=true in control file
[ 17s] in a laptop
[ 17s] returns the value from product features
[ 17s] in a workstation
[ 17s] returns the value from product features
[ 17s] with dhcp_hostname=false in control file
[ 17s] in a laptop
[ 17s] returns the value from product features
[ 17s] in a workstation
[ 17s] returns the value from product features
[ 17s] without dhcp_hostname in control file
[ 17s] in a laptop
[ 17s] returns false
[ 17s] in a workstation
[ 17s] returns true
[ 17s] .Import
[ 17s] with present dhcp_hostname and write_hostname
[ 17s] honors the provided values
[ 17s] with missing dhcp_hostname and write_hostname
[ 17s] relies on proper methods to get default values
[ 17s]
[ 17s] Failures:
[ 17s]
[ 17s] 1) LanClass#Modified returns false when no module was modified
[ 17s] Failure/Error: expect(Yast::Lan.Modified).to be false
[ 17s]
[ 17s] expected false
[ 17s] got true
[ 17s] # ./test/lan_test.rb:195:in `block (2 levels) in