1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-02-25 16:44:31 +00:00

Compare commits

...

6 Commits

Author SHA1 Message Date
Adam Williamson
6ae2e05484 Be a bit more defensive when setting admin pw in zezere server
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-03-29 15:45:17 -07:00
Adam Williamson
9251ac21fa Disable audit messages on ostree rebase tests on aarch64
Otherwise they tend to get into the output of the status command
and mess up the test.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-03-29 14:29:52 -07:00
Adam Williamson
bbfc9d7c70 Handle anaconda 'protecting' the disk we're installing from
In install_repository_hd_variation , we have two disks attached,
so when we reach the INSTALLATION DESTINATION screen we expect
we have to select the correct target disk. However, as of the
most recent anaconda build in Rawhide, anaconda realizes we're
using a file from the other disk as our install repo, and
'protects' it - i.e. it does not show it on the INSTALLATION
DESTINATION screen, meaning only one disk is shown there, and
when only one disk is shown, it's pre-selected. So when we click,
we actually *un*select it, and the test fails.

Fixing this is a bit awkward; I wanted to add a new variable,
ANACONDA_PROTECTED_DISKS or something, and subtract that from
the NUMDISKS count; but we can't really do that as the enhanced
protection isn't in F38, and we can't easily set variables
differently on different releases (we'd have to set them in the
scheduler code, not just put them in the templates). So we just
code in a doofy condition for this instead. Maybe when F38 is
EOL we can change to the variable approach.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-03-29 12:59:39 -07:00
Adam Williamson
2c8067698f Update a bunch of Japanese needles for a CJK font change
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-03-29 12:33:13 -07:00
Adam Williamson
d29bb41c86 Update KDE spectacle runs needle
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-03-29 12:32:14 -07:00
Adam Williamson
c7f8e4bb8e Rename the last KDE printing needle, add another new one
Today's rendering is different from yesterday's for some reason.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-03-29 12:30:17 -07:00
31 changed files with 241 additions and 4 deletions

View File

@ -33,7 +33,14 @@ sub select_disks {
sleep 1; sleep 1;
assert_and_click "anaconda_main_hub_install_destination"; assert_and_click "anaconda_main_hub_install_destination";
if (get_var('NUMDISKS') > 1) { # this is awkward, but on the install_repository_hd_variation test,
# we have two disks but on F39+ anaconda knows we're using one of
# them as an install source and 'protects' it (doesn't show it on
# INSTALLATION DESTINATION), so we need to go down the single disk
# branch in that case. Once F38 is EOL we could potentially tweak
# this to use a dedicated var or something
my $relnum = get_release_number;
if (get_var('NUMDISKS') > 1 && !(get_var('TEST') eq 'install_repository_hd_variation' && $relnum > 38)) {
# Multi-disk case. Select however many disks the test needs. If # Multi-disk case. Select however many disks the test needs. If
# $disks is 0, this will do nothing, and 0 disks will be selected. # $disks is 0, this will do nothing, and 0 disks will be selected.
for my $n (1 .. $args{disks}) { for my $n (1 .. $args{disks}) {

View File

@ -0,0 +1,23 @@
{
"area": [
{
"type": "match",
"xpos": 154,
"height": 23,
"width": 65,
"ypos": 6
},
{
"height": 20,
"ypos": 128,
"width": 25,
"type": "match",
"xpos": 194
}
],
"properties": [],
"tags": [
"apps_run_terminal",
"LANGUAGE-japanese"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 KiB

View File

@ -0,0 +1,17 @@
{
"area": [
{
"height": 16,
"ypos": 9,
"width": 103,
"type": "match",
"xpos": 18
}
],
"properties": [],
"tags": [
"LANGUAGE-japanese",
"apps_menu_button",
"apps_menu_button_active"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 KiB

View File

@ -0,0 +1,17 @@
{
"area": [
{
"width": 103,
"ypos": 9,
"height": 17,
"type": "match",
"xpos": 19
}
],
"properties": [],
"tags": [
"LANGUAGE-japanese",
"apps_menu_button",
"apps_menu_button_inactive"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 784 KiB

View File

@ -0,0 +1,23 @@
{
"area": [
{
"type": "match",
"xpos": 488,
"click_point": "center",
"width": 49,
"ypos": 473,
"height": 22
},
{
"width": 78,
"ypos": 181,
"height": 17,
"type": "match",
"xpos": 449
}
],
"properties": [],
"tags": [
"desktop_input_source_japanese"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 333,
"type": "match",
"width": 97,
"ypos": 284,
"height": 21
}
],
"properties": [],
"tags": [
"desktop_input_source_japanese_anthy"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"xpos": 466,
"height": 122,
"width": 123,
"ypos": 247
}
],
"properties": [],
"tags": [
"getting_started"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"type": "match",
"xpos": 886,
"height": 16,
"width": 18,
"ypos": 8
}
],
"properties": [],
"tags": [
"gnome_layout_native",
"LANGUAGE-japanese"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"height": 49,
"ypos": 455,
"width": 73,
"type": "match",
"xpos": 385
}
],
"properties": [],
"tags": [
"LANGUAGE-japanese",
"graphical_login_input"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,17 @@
{
"area": [
{
"type": "match",
"xpos": 384,
"width": 33,
"ypos": 116,
"height": 21
}
],
"properties": [],
"tags": [
"DESKTOP-gnome",
"LANGUAGE-japanese",
"desktop_yama_chooser"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

View File

@ -0,0 +1,17 @@
{
"area": [
{
"ypos": 55,
"width": 28,
"height": 17,
"xpos": 369,
"type": "match"
}
],
"properties": [],
"tags": [
"DESKTOP-gnome",
"LANGUAGE-japanese",
"desktop_yama_hiragana"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 KiB

View File

@ -0,0 +1,17 @@
{
"area": [
{
"height": 16,
"ypos": 56,
"width": 12,
"type": "match",
"xpos": 371
}
],
"properties": [],
"tags": [
"DESKTOP-gnome",
"LANGUAGE-japanese",
"desktop_yama_kanji"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"xpos": 522,
"ypos": 92,
"width": 60,
"height": 17
}
],
"properties": [],
"tags": [
"spectacle_runs"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 19,
"ypos": 138,
"width": 315,
"xpos": 196,
"type": "match"
}
],
"properties": [],
"tags": [
"printing_check_sentence"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -24,11 +24,11 @@ sub run {
assert_script_run 'zezere-manage createsuperuser --username admin --email zezere@test.openqa.fedoraproject.org --no-input'; assert_script_run 'zezere-manage createsuperuser --username admin --email zezere@test.openqa.fedoraproject.org --no-input';
# set admin password (can't find a non-interactive way sadly) # set admin password (can't find a non-interactive way sadly)
type_string "zezere-manage changepassword admin\n"; type_string "zezere-manage changepassword admin\n";
sleep 2; wait_still_screen 5;
type_string "weakpassword\n"; type_string "weakpassword\n";
sleep 2; wait_still_screen 5;
type_string "weakpassword\n"; type_string "weakpassword\n";
sleep 2; wait_still_screen 5;
# check DB exists # check DB exists
assert_script_run "ls -l /var/local/zezere.sqlite3"; assert_script_run "ls -l /var/local/zezere.sqlite3";
# start server # start server

View File

@ -7,6 +7,13 @@ sub run {
my $self = shift; my $self = shift;
$self->root_console(tty => 3); $self->root_console(tty => 3);
if (get_var("ARCH") eq "aarch64") {
# this should stop audit messages screwing things up
assert_script_run "rpm-ostree kargs --append=audit=0";
script_run "systemctl reboot", 0;
boot_to_login_screen;
$self->root_console(tty => 3);
}
# list available branches # list available branches
my $subv = lc(get_var("SUBVARIANT")); my $subv = lc(get_var("SUBVARIANT"));