1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-10-31 21:44:23 +00:00
Commit Graph

850 Commits

Author SHA1 Message Date
Lukáš Růžička
621f6c13b5 Add wait time to let the application start properly. 2022-07-19 14:49:26 +02:00
Adam Williamson
2ee0377ece nautilus/move_file_into: fix whitespace errors
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-15 11:28:58 -07:00
Adam Williamson
f84792f819 nautilus/move_file_into: be more defensive
This is to try and fix some issues on aarch64.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-15 11:28:15 -07:00
Adam Williamson
ef76c76024 help.pm: wait longer for main screen to appear
Looks like it can take longer than 45s on aarch64.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-15 11:20:36 -07:00
Adam Williamson
f407ceaf0e help.pm: fix whitespace errors
Lots of use of tabs instead of spaces, spaces at ends of lines,
spaces on blank lines...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-15 11:20:09 -07:00
Adam Williamson
f67bcef9f7 g-t-e: extend sleep in one test, add in another
aarch64 looks like it often needs more time to settle after
restoring from snapshot before trying a key combo.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-15 11:15:52 -07:00
Lukáš Růžička
48ec73e814 Create a test suite for Nautilus. 2022-07-12 16:01:36 -07:00
Adam Williamson
14942f86e7 Some safety around Discover maximize in desktop_update_graphical
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-08 15:58:11 -07:00
Adam Williamson
788b7167b1 clocks: add missing needle, improve tag name
That last commit to 'fix' the Clocks tests when Silverblue needs
location access to be granted wasn't complete, I left the needle
out. D'oh. Take the chance to give it a better name too.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-07 14:28:59 -07:00
Adam Williamson
cf969061ce Wait for Discover to run before maximizing it
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-04 10:07:13 -07:00
Adam Williamson
be39c0e3a1 desktop_update_graphical: maximize Discover on launch
If there are too many categories, we don't see the Updates entry
on the left, and this has been breaking Rawhide and F36 tests.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-04 09:47:56 -07:00
Lukáš Růžička
1f8b56e068 Change the way to download test data.
This PR changes the way to download the test data into the VM.
Although it does not use a disk image as suggested in one
of the review, it does not clone the entire repository, but
a simple tar.gz file that holds the data which will be
distributed into the directory structure.

This way, the amount of data needed to be downloaded dropped
from approximately 50MB to below 2MB.

Also, the existing test suites were adapted to this situation.
2022-07-04 09:34:04 +02:00
Adam Williamson
f81dab6739 Clocks: handle auth, check we actually launched the app
Clocks' aaa_setup did not ever actually check the app launched
properly. It also doesn't handle granting permissions if
necessary, which the apps_startstop test for Clocks does do.

This makes the permission check in the apps_startstop test more
efficient, and adds it to the Clocks app aaa_setup test too.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-30 13:56:29 -07:00
Lukáš Růžička
7c1e686d14 Create tests for Help. 2022-06-29 23:06:37 +00:00
Adam Williamson
d5757b054c Fix assert_and_click call in realmd_join_cockpit
This was just doing something silly before, but with recent
os-autoinst having function signatures, it actually causes the
test to fail because '5' isn't a sane value for the argument
this was setting before. Fix it to set the timeout, as it was
trying to do all along.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-27 09:21:48 -07:00
Lukáš Růžička
6f00e3fe8a Create tests for Clocks. 2022-06-23 21:41:56 +00:00
Adam Williamson
b203f41f55 Give systemctl stop ipa.service longer due to RHBZ #2100282
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-22 17:51:04 -07:00
Lukáš Růžička
d09d9d8fe6 Fix the Rhythmbox crash when launched for the first time. 2022-06-15 15:53:20 +02:00
Adam Williamson
4971de39e9 Tweak quit_firefox to handle hang on exit on ppc64le (#2094137)
It seems when we quit Firefox back to a VT on ppc64le, the system
hangs. Not sure why, but we can deal with it by rebooting the
system and logging back in as root if it happens. Also take the
opportunity to clean up the flow of quit_firefox so we always
check that we get back to a console then wait 5 seconds for the
console to settle, so all the tests that call it can stop doing
that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-06 18:35:52 -07:00
Adam Williamson
e1ed9960f3 Let _console_avc_crash wait a bit longer for console login
On Rawhide update tests we often don't seem to get to the login
prompt in 10 seconds, so tweak the code a bit to let us specify
a timeout in root_console, and use 30 seconds here.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-06 18:34:44 -07:00
Adam Williamson
e047a88ffc check_default_fonts: move reference files, use diff -u
Let's not have the reference files in one person's fedorapeople
space, in case that person leaves. Let's upload the text.txt
for checking (it's easier to be able to just read what's in it
than try and figure it out from the diff output), and let's use
diff -u because non-unified diff output is awful.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-02 14:36:33 -07:00
Adam Williamson
aa5a248237 Bump timeouts in _setup_browser a bit more
Slow on Rawhide updates.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-01 09:00:39 -07:00
Adam Williamson
e9a7e0eb6c Give dracut -f longer to run in _advisory_update
It seems slow on Rawhide updates ATM.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-01 08:56:27 -07:00
Adam Williamson
815c6b28e5 check_default_fonts: wait_still_screen after launching terminal
As we do in desktop_terminal. It's not always ready for input
when the window is visible.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-27 11:01:27 -07:00
Lukáš Růžička
1acef21fa5 Automate the i18n_default_fonts testcase for Japanese.
This is the automation of the optional testcase https://fedoraproject.org/wiki/QA:Testcase_i18n_default_fonts.
The test implementation runs the same commands as the mentioned test
case and checks the expected output. It is designed to run in the scope
of postinstall tests when the language is set to "japanese".
2022-05-26 09:54:38 +02:00
Adam Williamson
66bc59de1d Have desktop_browser run disable_firefox_studies
I'd prefer not to do this, but I don't see a better way to deal
with the stupid 'welcome' screens. I'm not maintaining needles
to click them away forever.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-24 23:51:59 -07:00
Adam Williamson
bd9e17dc85 Update FIXME note on #1765685 workaround
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-17 16:04:28 -07:00
Adam Williamson
b24802d4e0 Update a FIXME note in VNC client test
Connections is now default, we just have to update the test to
use it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-16 16:33:40 -07:00
Adam Williamson
4d049f8f7d browser: drop download save screen handling
Firefox 97 is now stable on all releases, so we can forget about
handling browser_download_save and just assume download will
happen automatically.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-16 16:27:35 -07:00
Adam Williamson
428b022255 Drop new user g-i-s handling in _graphical_wait_login
New user g-i-s is gone since F34, and F33 is dead.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-16 16:15:52 -07:00
Adam Williamson
5beb87cc16 Drop another unnecessary release number condition
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-16 16:14:02 -07:00
Adam Williamson
a2df6d976b desktop_login: drop obsolete check for 'login failed' message
Up to F33 we could check that an error message was shown when we
tried to log in with the wrong password on GNOME, but since F34
it's transient and disappears too quick to reliably catch, so
we don't check it any more. Now F33 is EOL, drop the conditional.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-16 16:11:52 -07:00
Adam Williamson
77cadae5d4 Drop g-i-s disablement in desktop_login
The g-i-s new user mode was removed in F34, so we don't need to
do this any more (as the now-removed comment said).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-16 16:09:28 -07:00
Adam Williamson
375c7409af Drop another unnecessary release number condition
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-16 16:07:59 -07:00
Adam Williamson
381e3e3561 Drop a now-unnecessary release number conditional in a check
We're never testing a release lower than 34 again.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-16 16:05:15 -07:00
Adam Williamson
a22d3b28b6 Drop a pre-F34 path for launching update tool on KDE
Before F34 we had to launch the update tool from the systray.
This isn't the case any more, so we can throw all this code and
these needles away.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-16 16:04:33 -07:00
Adam Williamson
8c298851a4 Drop handling of 'transient' update notification in KDE
We seem to be solidly back to always getting a permanent update
notification in current F36/Rawhide, so we don't need this more
complex path any more. We also don't need these needles any more,
they haven't matched for months.
2022-05-16 15:53:22 -07:00
Adam Williamson
a57a3ec403 _check_install_source: handle change to addrepo logging in F37
Logging of additional repo setup changed recently in F37, we
need to handle the new message format here.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-09 16:34:44 -07:00
Adam Williamson
8ff6e3b78a desktop_printing: wait longer for terminal
2 seconds isn't enough to be sure it opened, which is causing
some weird failures in KDE Rawhide update tests.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-09 16:33:35 -07:00
Adam Williamson
bb3221a46c btrfs_preserve_home: a bit more time for partition delete confirm
aarch64 tests are failing here because anaconda's still thinking
about the delete confirmation, it seems.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-06 14:19:31 -07:00
Adam Williamson
a441a9d7a6 _live_build: give mock tool installation longer to run
It timed out in a Rawhide update test.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-06 14:08:04 -07:00
Adam Williamson
0ca13cc949 _installer_build: give lorax a bit longer to run
It timed out on some Rawhide update tests.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-06 14:05:41 -07:00
Adam Williamson
3df5d1fac8 Give _live_build a little longer to run
Seems it can take a bit longer on Rawhide sometimes.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-05-02 10:37:00 -07:00
Adam Williamson
12f423f5a8 Skip desktop background check for Rawhide update tests
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-04-26 16:12:55 -07:00
Adam Williamson
c41c55cefe Handle Rawhide updates in upgrade postinstall version check
When testing Rawhide updates we set VERSION to the Rawhide
release number, not "Rawhide". This post-upgrade version check
needs adjusting to handle that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-04-26 16:08:57 -07:00
Adam Williamson
0ed87c1b66 Adjust live and installer build for Rawhide support
We need to tweak various things when building live and installer
images for Rawhide.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-04-26 16:08:42 -07:00
Adam Williamson
f86cbd93fb desktop_printing: be a bit more defensive when launching editor
Seeing a failure quite often lately where when we try and hit
ctrl-p to print, we just type a p. There's no wait between
maximizing and trying to print, and only a short wait on
launch, so let's try being a bit more defensive there.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-04-21 08:18:56 -07:00
Adam Williamson
45a1a3a36b Wait *longer* to reach hub after setting root password
This can actually take a bit of time, it seems, especially with
debug kernels. Let's give it a minute.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-03-24 09:01:22 -07:00
Adam Williamson
e9261b8f29 Wait till we reach hub after setting root password
Lately anaconda can take up to 10 seconds to exit the root pw
spoke, which can defeat the subsequent `wait_still_screen` that's
meant to wait out the 'slide-in-from-the-top' animation of the
hub. So let's assert the hub after we click Done, then the still
screen wait will only happen *once the hub is visible* and should
really do its job.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-03-22 08:27:56 -07:00
Adam Williamson
06c66dcd30 desktop_update_graphical: explicitly check refresh on GNOME
OK, this is annoying. GNOME Software intentionally does *not*
clear the 'download' or 'reboot and update' button when you hit
the refresh button, it just leaves them sitting there while the
refresh happens. So let's specifically require the 'refreshing'
text to appear and go away before we try and click on download
or apply.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-03-18 13:51:33 -07:00