See https://ci.suse.de/job/yast-storage-ng-master/168/display/redirect?page=chan...
Changes:
[snwint] add tool to convert device graphs from/to xml/yaml
------------------------------------------
[...truncated 746.60 KB...]
[ 265s] includes all boot errors
[ 265s] when there is no boot error
[ 265s] returns an empty list
[ 265s] #product_warnings
[ 265s] returns a list of setup errors
[ 265s] does not include boot errors
[ 265s] does not include an error for optional product volumes
[ 265s] includes an error for each mandatory product volume not present in the system
[ 265s] when a mandatory product volume is present in the system
[ 265s] does not include an error for that volume
[ 265s] when all mandatory product volumes are present in the system
[ 265s] returns an empty list
[ 265s] when old settings format is used
[ 265s] returns an empty list
[ 265s]
[ 265s] Y2Storage::Callbacks::Activate
[ 265s] #luks
[ 265s] opens a dialog to request the password
[ 265s] returns an object of the expected type
[ 265s] when the dialog is accepted
[ 265s] returns the pair (true, password)
[ 265s] when the dialog is not accepted
[ 265s] returns the pair (false, "")
[ 265s] #multipath
[ 265s] asks the user whether to activate multipath
[ 265s] if the user accepts
[ 265s] returns true
[ 265s] if the user rejects
[ 265s] returns false
[ 265s]
[ 265s] Y2Storage::Callbacks::Commit
[ 265s] #error
[ 265s] displays the error to the user
[ 265s] asks the user whether to continue and returns the answer
[ 265s]
[ 265s] Y2Storage::Multipath
[ 265s] #preferred_ptable_type
[ 265s] returns gpt
[ 265s] #partition_table
[ 265s] for a device with a partition table
[ 265s] returns the corresponding PartitionTable object
[ 265s] for a completely empty multipath device
[ 265s] returns nil
[ 265s] #is?
[ 265s] returns true for values whose symbol is :multipath
[ 265s] returns false for a different string like "MultiPath"
[ 265s] returns false for different device names like :disk or :partition
[ 265s] returns true for a list of names containing :multipath
[ 265s] returns false for a list of names not containing :multipath
[ 265s] #parents
[ 265s] returns the disks grouped in the multipath device
[ 265s] #in_network?
[ 265s] if none of the disks in the device is a network device
[ 265s] returns false
[ 265s] if any of the disks in the device is a network device
[ 265s] returns true
[ 265s]
[ 265s] Y2Storage::PartitionTables::Dasd
[ 265s] #partition_id_for
[ 265s] uses the LVM partition id for LVM
[ 265s] uses the RAID partition id for RAID
[ 265s] uses the LINUX partition id for swap
[ 265s] maps other partition ids to LINUX
[ 265s] #partition_id_supported?
[ 265s] dasd can have a LINUX partition
[ 265s] dasd can NOT have a WINDOWS_BASIC_DATA partition
[ 265s] dasd can NOT have a DOS32 partition
[ 265s] dasd can have an UNKNOWN partition
[ 265s] dasd can NOT have partition id 0
[ 265s] #supported_partition_ids
[ 265s] list includes the LINUX id
[ 265s] list does not include the WINDOWS_BASIC_DATA id
[ 265s] list does not include the UNKNOWN id
[ 265s]
[ 265s] Y2Storage::PartitionTables::Gpt
[ 265s] #partition_id_for
[ 265s] uses the WINDOWS_BASIC_DATA partition id for WINDOWS_BASIC_DATA
[ 265s] uses the MICROSOFT_RESERVED partition id for MICROSOFT_RESERVED
[ 265s] uses the SWAP partition id for SWAP
[ 265s] uses the WINDOWS_BASIC_DATA partition id for NTFS
[ 265s] uses the WINDOWS_BASIC_DATA partition id for DOS32
[ 265s] #partition_id_supported?
[ 265s] gpt can have a LINUX partition
[ 265s] gpt can have a WINDOWS_BASIC_DATA partition
[ 265s] gpt can NOT have a DOS32 partition
[ 265s] gpt can have an UNKNOWN partition
[ 265s] gpt can NOT have partition id 0
[ 265s] #supported_partition_ids
[ 265s] list includes the LINUX id
[ 265s] list includes the WINDOWS_BASIC_DATA id
[ 265s] list does not include the UNKNOWN id
[ 265s]
[ 265s] Y2Storage::PartitionTables::Msdos
[ 265s] #partition_id_for
[ 265s] returns the same partition id
[ 265s] #partition_id_supported?
[ 265s] ms-dos can have a LINUX partition
[ 265s] ms-dos can NOT have a WINDOWS_BASIC_DATA partition
[ 265s] ms-dos can have a DOS32 partition
[ 265s] ms-dos can NOT have an UNKNOWN partition
[ 265s] ms-dos can NOT have partition id 0
[ 265s] #supported_partition_ids
[ 265s] list includes the LINUX id
[ 265s] list includes the DOS32 id
[ 265s] list does not include the UNKNOWN id
[ 265s]
[ 265s] Y2Storage::StorageClassWrapper
[ 265s] wrap_class
[ 265s] Y2Storage::Disk
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::Filesystems::BlkFilesystem
[ 265s] specifies its direct children [Y2Storage::Filesystems::Btrfs] as downcastable
[ 265s] Y2Storage::PartitionTables::PartitionSlot
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::Device
[ 265s] specifies its direct children [Y2Storage::LvmPv, Y2Storage::LvmVg, Y2Storage::BlkDevice, Y2Storage::Mountable, Y2Storage::MountPoint, Y2Storage::PartitionTables::Base] as downcastable
[ 265s] Y2Storage::LvmPv
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::Partition
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::Actiongraph
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::Md
[ 265s] specifies its direct children [Y2Storage::MdMember, Y2Storage::MdContainer] as downcastable
[ 265s] Y2Storage::MdMember
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::CompoundAction
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::LvmVg
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::LvmLv
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::Filesystems::Nfs
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::Filesystems::Base
[ 265s] specifies its direct children [Y2Storage::Filesystems::BlkFilesystem, Y2Storage::Filesystems::Nfs] as downcastable
[ 265s] Y2Storage::BlkDevice
[ 265s] specifies its direct children [Y2Storage::Partition, Y2Storage::LvmLv, Y2Storage::Partitionable, Y2Storage::Encryption] as downcastable
[ 265s] Y2Storage::Mountable
[ 265s] specifies its direct children [Y2Storage::Filesystems::Base, Y2Storage::BtrfsSubvolume] as downcastable
[ 265s] Y2Storage::MountPoint
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::PartitionTables::Msdos
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::PartitionTables::Base
[ 265s] specifies its direct children [Y2Storage::PartitionTables::Msdos, Y2Storage::PartitionTables::Dasd, Y2Storage::PartitionTables::Gpt] as downcastable
[ 265s] Y2Storage::Region
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::PartitionTables::Dasd
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::PartitionTables::Gpt
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::Partitionable
[ 265s] specifies its direct children [Y2Storage::Disk, Y2Storage::Md, Y2Storage::Dasd, Y2Storage::DmRaid, Y2Storage::Multipath] as downcastable
[ 265s] Y2Storage::Devicegraph
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::Dasd
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::ResizeInfo
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::MdContainer
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::DmRaid
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::Multipath
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::BtrfsSubvolume
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::Filesystems::Btrfs
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::Encryption
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s] Y2Storage::SpaceInfo
[ 265s] does not specify any downcastable class as it does not have a direct child
[ 265s]
[ 265s] Pending: (Failures listed here are expected and do not affect your suite's status)
[ 265s]
[ 265s] 1) Y2Storage::AutoinstProposal#propose removing partitions when only free space should be used raises an error if there is not enough space
[ 265s] # Not yet implemented
[ 265s] # ./test/y2storage/autoinst_proposal_test.rb:296
[ 265s]
[ 265s] 2) Y2Storage::AutoinstProfile::RaidOptionsSection.new_from_storage initializes device_order
[ 265s] # .new_from_storage is not fully implemented yet
[ 265s] # ./test/y2storage/autoinst_profile/raid_options_section_test.rb:128
[ 265s]
[ 265s] 3) Y2Storage::Proposal::SpaceMaker#delete_unwanted_partitions when deleting Linux partitions deletes partitions with id raid
[ 265s] # Let's wait until we have some meaningful RAID scenarios
[ 265s] # ./test/y2storage/proposal/space_maker_test.rb:113
[ 265s]
[ 265s] 4) Y2Storage::Proposal::AutoinstDrivesMap#each when no suitable drive is found error?
[ 265s] # Not yet implemented
[ 265s] # ./test/y2storage/proposal/autoinst_drives_map_test.rb:163
[ 265s]
[ 265s] 5) Y2Storage::Proposal::AutoinstSpaceMaker#cleaned_devicegraph when 'use' key is set to 'all' and a RAID device will be reused keeps the physical partition
[ 265s] # Not yet implemented
[ 265s] # ./test/y2storage/proposal/autoinst_space_maker_test.rb:98
[ 265s]
[ 265s] 6) Y2Storage::Region#inside? if both regions have a different block size raises Storage::DifferentBlockSizes
[ 265s] # Temporarily skipped with xit
[ 265s] # ./test/y2storage/region_test.rb:79
[ 265s]
[ 265s] 7) Y2Storage::YamlWriter produces yaml of a simple lvm setup
[ 265s] # Temporarily skipped with xit
[ 265s] # ./test/y2storage/yaml_writer_test.rb:133
[ 265s]
[ 265s] Failures:
[ 265s]
[ 265s] 1) Y2Storage::GuidedProposal#propose using the whole disk with LVM proposes PReP at the beginning of the disk
[ 265s] Failure/Error: expect(sda1.region.start).to eq 2048
[ 265s]
[ 265s] expected: 2048
[ 265s] got: 411648
[ 265s]
[ 265s] (compared using ==)
[ 265s] # ./test/y2storage/proposal_scenarios_ppc_test.rb:106:in `block (4 levels) in