revise updates.img test to work with new anaconda (T759)
ClosedPublic

Authored by adamwill on Mar 31 2016, 9:23 PM.

Details

Summary

per details in T759, the 'unipony' updates image we use to test
the updates image features doesn't work with latest anaconda (f24
and Rawhide). I've built a new updates image which uses a neat
anaconda feature that allows you to override CSS with a file in
a special location; it sets the background for disk capacity
texts on the INSTALLATION DESTINATION spoke to be pink. This
lets us use a simple needle that just looks for a pink blob on
that spoke, on the basis that it's unlikely there'll ever be a
pink blob there for any other reason, so if there is one, the
updates image worked. There will be an accompanying tools diff
to change the updates disk image to use the new updates image.

Test Plan

Do a test run and check the updates image tests pass
and no other tests are broken. You'll need to pull in the tools
diff and re-generate the updates disk image to check that test,
the scsi_updates_img test should work with just this diff.

Diff Detail

Repository
rOPENQATESTS os-autoinst-distri-fedora
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
adamwill retitled this revision from to revise updates.img test to work with new anaconda (T759).Mar 31 2016, 9:23 PM
adamwill updated this object.
adamwill edited the test plan for this revision. (Show Details)
adamwill added reviewers: jskladan, garretraziel.
adamwill updated this revision to Diff 2042.Mar 31 2016, 10:11 PM

adjust updates hard disk image file name

we use the createhdds 'imgver' mechanism to ensure the updates
hard disk image gets rebuilt with the new updates image, so its
file name changes, and we need to update that here.

adamwill updated this revision to Diff 2044.Apr 1 2016, 12:05 AM

tweak the needle a bit

it was a '94% match' when the updates image isn't applied at all,
so let's strengthen it a bit: add a second area and require a 100%
match, because there's really no fuzz to 'block of pink'.

garretraziel accepted this revision.Apr 1 2016, 12:27 PM

Looks good to me.

This revision is now accepted and ready to land.Apr 1 2016, 12:27 PM