-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify existing scenario agama_auto_dolomite for selecting another in…
…stallation device
- Loading branch information
openQA web UI
committed
Sep 12, 2023
1 parent
c2b83ef
commit d181ec1
Showing
5 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"software": { | ||
"product": "ALP-Dolomite" | ||
}, | ||
"user": { | ||
"fullName": "Bernhard M. Wiedemann", | ||
"password": "nots3cr3t", | ||
"userName": "bernhard" | ||
}, | ||
"root": { | ||
"password": "nots3cr3t" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
local agama = import 'hw.libsonnet'; | ||
local findBiggestDisk(disks) = | ||
local sizedDisks = std.filter(function(d) std.objectHas(d, 'size'), disks); | ||
local sorted = std.sort(sizedDisks, function(x) -x.size); | ||
sorted[0].logicalname; | ||
|
||
{ | ||
software: { | ||
product: 'Tumbleweed', | ||
}, | ||
root: { | ||
password: 'nots3cr3t', | ||
}, | ||
user: { | ||
fullName: 'Bernhard M. Wiedemann', | ||
password: 'nots3cr3t', | ||
userName: 'bernhard', | ||
}, | ||
localization: { | ||
language: 'en_US', | ||
}, | ||
storage: { | ||
devices: [ | ||
{ | ||
name: findBiggestDisk(agama.disks), | ||
}, | ||
], | ||
}, | ||
} |
12 changes: 12 additions & 0 deletions
12
schedule/yam/agama_auto_tumbleweed_select_installation_device.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
name: agama_auto_tumbleweed_select_installation_device | ||
description: > | ||
Prepare url for agama.auto boot parameter, boot, perform auto-installation with agama. | ||
schedule: | ||
- installation/bootloader_start | ||
- yam/agama/auto | ||
#- yam/validate/validate_installed_disk | ||
- console/validate_first_disk_selection | ||
- yam/validate/validate_product | ||
- yam/validate/validate_user | ||
- yam/validate/validate_apparmor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
--- | ||
os_release_name: openSUSE Tumbleweed | ||
guided_partitioning: | ||
disks: | ||
- vda | ||
unused_disks: | ||
- vdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright 2023 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
|
||
# Summary: Validate that the product installed at expected disk | ||
# Maintainer: QE YaST and Migration (QE Yam) <qe-yam at suse de> | ||
|
||
use base "consoletest"; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
use scheduler 'get_test_suite_data'; | ||
|
||
sub run { | ||
select_console 'root-console'; | ||
|
||
script_run('lsblk -s'); | ||
my $installed_disk_expected = get_test_suite_data()->{installed_disk}; | ||
validate_script_output("df -h | grep /\$", sub { m/$installed_disk_expected/ }); | ||
} | ||
|
||
1; |