Skip to content

Commit

Permalink
Adapt yaml/tests for changes in formatting/mounting options with libyui
Browse files Browse the repository at this point in the history
  • Loading branch information
jknphy committed Jan 28, 2021
1 parent 6fa2d0b commit 364516f
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 27 deletions.
10 changes: 5 additions & 5 deletions schedule/yast/yast2_gui/yast2_gui_sle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ conditional_schedule:
- yast2_gui/yast2_hostnames
test_data:
net_device: eth0
errors_in_ifcfg_file: # Each command is followed by ifcfg file name.
# - "sed -i 's/dhcp/dgcp/'" # Typo in value. To be enabled once bsc#1181296 is fixed.
- "echo ETHERDEVICE='eth0' >>" # Wrong device for VLAN (should be same as current).
- "echo BOOTPROTO='dhcp' >>" # Duplicate entry, same data.
- "echo BOOTPROTO='none' >>" # Duplicate entry, different data.
errors_in_ifcfg_file: # Each command is followed by ifcfg file name.
# - "sed -i 's/dhcp/dgcp/'" # Typo in value. To be enabled once bsc#1181296 is fixed.
- "echo ETHERDEVICE='eth0' >>" # Wrong device for VLAN (should be same as current).
- "echo BOOTPROTO='dhcp' >>" # Duplicate entry, same data.
- "echo BOOTPROTO='none' >>" # Duplicate entry, different data.
disks:
- name: vdb
partitions:
Expand Down
12 changes: 4 additions & 8 deletions test_data/yast/btrfs/btrfs+warnings_aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ disks:
partitions:
<<: !include test_data/yast/btrfs/common/btrfs+warnings_partitions.yaml
rootfs_small:
- role: efi
size: 128mb
formatting_options:
should_format: 1
mounting_options:
should_mount: 1
mount_point: /boot/efi
- role: raw-volume
size: 2mb
id: bios-boot
- role: operating-system
size: 2GiB
formatting_options:
Expand All @@ -22,4 +18,4 @@ errors:
<<: !include test_data/yast/btrfs/common/btrfs+warnings_errors.yaml
warnings:
<<: !include test_data/yast/btrfs/common/btrfs+warnings_warnings.yaml
missing_boot: Missing device for /boot/efi with size equal or bigger than 128 MiB and filesystem vfat
missing_boot: A partition of type BIOS Boot Partition is needed to install the bootloader
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ lvm:
- /dev/vda3
logical_volumes:
- name: lv-thin-pool
type: thin_pool
type: thin-pool
- name: lv-home
type: thin_volume
type: thin-volume
role: data
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ lvm:
- /dev/vda3
logical_volumes:
- name: lv-thin-pool
type: thin_pool
type: thin-pool
- name: lv-home
type: thin_volume
type: thin-volume
role: data
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ lvm:
- name: lv-thin-pool
type: thin_pool
- name: lv-home
type: thin_volume
type: thin-volume
role: data
5 changes: 4 additions & 1 deletion tests/installation/partitioning/edit_proposal_encrypt.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ sub run {
foreach my $partition (@{$disk->{partitions}}) {
if ($partition->{encrypt_device}) {
record_info("Encrypt $partition->{name}", "Encrypting $partition->{name} from disk $disk->{name}");
$partitioner->edit_partition_encrypt({disk => $disk->{name}, partition => $partition->{name}});
$partitioner->edit_partition_gpt({
disk => $disk->{name},
partition => $partition
});
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub run {
$partitioner->resize_partition({disk => $disk, partition => $root_part});
for my $part (@partitions) {
record_info("Edit $part->{name}", "$part");
$partitioner->edit_partition_on_gpt_disk({disk => $disk, partition => $part});
$partitioner->edit_partition_gpt({disk => $disk, partition => $part});
}
$partitioner->accept_changes_and_press_next();
}
Expand Down
6 changes: 3 additions & 3 deletions tests/installation/partitioning/msdos_partition_table.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ sub run {
table_type => $disk->{table_type}, accept_deleting_current_devices_warning => 0});
foreach my $partition (@{$disk->{partitions}}) {
$partitioner->add_partition_msdos({
disk => $disk->{name},
partition => $partition,
partition_type => $partition->{partition_type}});
disk => $disk->{name},
partition => $partition
});
}
}
$partitioner->accept_changes_and_press_next;
Expand Down
8 changes: 4 additions & 4 deletions tests/installation/partitioning/resize_existing_lv.pm
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# SUSE's openQA tests
#
# Copyright © 2020 SUSE LLC
# Copyright © 2020-2021 SUSE LLC
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.

# Summary: modify and resize existing logical volume on a pre-configured disk.
# Summary: Modify and resize existing logical volume on a pre-configured disk.
# Maintainer: QE YaST <qa-sle-yast@suse.com>

use strict;
Expand All @@ -25,8 +25,8 @@ sub run {
foreach my $lv (@{$vg->{logical_volumes}}) {
$partitioner->resize_logical_volume({
volume_group => $vg->{name},
logical_volume => $lv->{name},
size => $lv->{size}
logical_volume => $lv,

});
}
}
Expand Down

0 comments on commit 364516f

Please sign in to comment.