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 c34a555 commit 94329fa
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 34 deletions.
3 changes: 2 additions & 1 deletion schedule/yast/separate_usr_partition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ test_data:
partitions:
- name: vda2
size: 18GiB
- role: raw-volume
- name: vda2
role: raw-volume
formatting_options:
should_format: 1
filesystem: xfs
Expand Down
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
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 @@ -31,7 +31,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
3 changes: 1 addition & 2 deletions test_data/yast/msdos/msdos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ disks:
mounting_options:
should_mount: 1
mount_point: /home
- size: max
role: swap
- role: swap
partition_type: primary
validation_flag: 0
formatting_options:
Expand Down
3 changes: 1 addition & 2 deletions test_data/yast/msdos/msdos_hmc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ disks:
mounting_options:
should_mount: 1
mount_point: /home
- size: max
role: swap
- role: swap
partition_type: primary
validation_flag: 0
formatting_options:
Expand Down
3 changes: 1 addition & 2 deletions test_data/yast/msdos/msdos_hvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ disks:
mounting_options:
should_mount: 1
mount_point: /home
- size: max
role: swap
- role: swap
partition_type: primary
validation_flag: 0
formatting_options:
Expand Down
3 changes: 1 addition & 2 deletions test_data/yast/msdos/msdos_ppc64le.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ disks:
mounting_options:
should_mount: 1
mount_point: /home
- size: max
role: swap
- role: swap
partition_type: primary
validation_flag: 0
formatting_options:
Expand Down
3 changes: 1 addition & 2 deletions test_data/yast/msdos/msdos_pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ disks:
mounting_options:
should_mount: 1
mount_point: /home
- size: max
role: swap
- role: swap
partition_type: primary
validation_flag: 0
formatting_options:
Expand Down
3 changes: 1 addition & 2 deletions test_data/yast/msdos/msdos_s390x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ disks:
mounting_options:
should_mount: 1
mount_point: /home
- size: max
role: swap
- role: swap
partition_type: primary
validation_flag: 0
formatting_options:
Expand Down
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
2 changes: 1 addition & 1 deletion tests/installation/partitioning/separate_usr_partition.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sub run {
my $partitioner = $testapi::distri->get_expert_partitioner();
$partitioner->run_expert_partitioner('current');
$partitioner->resize_partition({disk => $disk, partition => $root_part});
$partitioner->add_partition_on_gpt_disk({partition => $usr_part});
$partitioner->add_partition_on_gpt_disk({disk => $disk, partition => $usr_part});
$partitioner->accept_changes_and_press_next();
}

Expand Down

0 comments on commit 94329fa

Please sign in to comment.