Handle unbranded Cockpit login screen, record soft failure

There's a bug in current Modular Server which results in Cockpit
having an unbranded login screen, let's handle this but record
it as a soft failure.
This commit is contained in:
Adam Williamson 2017-11-07 16:01:07 -08:00
parent 442c143144
commit da7eed3be6
3 changed files with 18 additions and 0 deletions

View File

@ -302,6 +302,8 @@ sub start_cockpit {
# run firefox directly in X as root. never do this, kids!
type_string "startx /usr/bin/firefox -width 1024 -height 768 http://localhost:9090\n";
assert_screen "cockpit_login";
# this happened on early Modular Server composes...
record_soft_failure "Unbranded Cockpit" if (match_has_tag "cockpit_login_unbranded");
wait_still_screen 5;
if ($login) {
type_safely "root";

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 893,
"type": "match",
"ypos": 131,
"height": 61,
"width": 60
}
],
"properties": [],
"tags": [
"cockpit_login",
"cockpit_login_unbranded"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB