-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add verify_consistency_self_update and verify_yast2_control_center tests
These tests will add the self update repository and update the system. After that, it will be checked that YaST control center can be opened with both the Qt and Ncurses interfaces.
- Loading branch information
1 parent
7d7ff65
commit 7efb68d
Showing
3 changed files
with
49 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
10 changes: 10 additions & 0 deletions
10
schedule/yam/test_cases/verify_consistency_self_update.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,10 @@ | ||
name: verify_consistency_self_update | ||
description: > | ||
Verify consistency of a given self update channel by adding just the self update repo to | ||
a GA system, using zypper dup to update the system and the opening YaST2 control center using | ||
both the Qt and ncurses interfaces. | ||
schedule: | ||
- installation/bootloader_start | ||
- boot/boot_to_desktop | ||
- console/consoletest_setup | ||
- yam/verify_consistency_self_update |
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,34 @@ | ||
# Copyright 2024 SUSE LLC | ||
# | ||
# Summary: Update the system using the specified repo and then | ||
# open and close YaST2 control center using both Qt and Ncurses interfaces. | ||
# | ||
# Maintainer: QE YaST and Migration (QE Yam) <qe-yam at suse de> | ||
|
||
use base "consoletest"; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
use utils; | ||
use y2_module_guitest; | ||
use y2_module_consoletest; | ||
|
||
sub run { | ||
select_console 'root-console'; | ||
|
||
zypper_call 'ar -f ' . get_var('SELF_UPDATE_REPO') . ' self-update-repo'; | ||
zypper_call 'dup'; | ||
zypper_call 'lr --uri'; | ||
|
||
y2_module_consoletest::yast2_console_exec(yast2_module => '', match_timeout => 180); | ||
assert_screen 'yast2-control-center-ncurses'; | ||
wait_screen_change { send_key 'alt-q'; }; | ||
|
||
select_console 'x11'; | ||
y2_module_guitest::launch_yast2_module_x11('', target_match => 'yast2-control-center-ui', match_timeout => 180); | ||
wait_screen_change { send_key 'alt-f4'; }; | ||
|
||
select_console 'root-console'; | ||
} | ||
|
||
1; |