add a base_update_cli test
ClosedPublic

Authored by adamwill on Sep 20 2016, 8:10 PM.

Details

Summary

this uses a couple of test repos with fake packages to test the
basic dnf mechanisms are working, then messes around with the
python3-kickstart package a bit to try and test the default repo
configuration is working, keys are in place and so on. We use
python3-kickstart because we should be able to rely on the copy
of that package in the 'stable' repo being installable (or else
the compose would have failed), but it shouldn't be vital to
the operation of the system.

Test Plan

Run the test, see if it works.

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 add a base_update_cli test.Sep 20 2016, 8:10 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 2575.Sep 21 2016, 12:31 AM

split some bits into a new helper function module

we're gonna re-use these in graphical update testing, so let's
make a new 'packagetest' module which exports them and use it.

adamwill updated this revision to Diff 2579.Sep 21 2016, 4:47 PM

longer timeout for the update from real repos

https://openqa.stg.fedoraproject.org/tests/43922#step/base_update_cli/32
damnit, dnf, why must you.

garretraziel accepted this revision.Sep 22 2016, 9:22 AM

Aside from inline comment, this looks good to me.

I don't think that having openqa-test-x package is necessary, I think that we can only use python3-kickstart update test.

lib/main_common.pm
9 ↗(On Diff #2575)

I guess that this shouldn't be here.

This revision is now accepted and ready to land.Sep 22 2016, 9:22 AM

OK, sounds good to me - as I said on IRC I was kinda uncertain whether it's worth keeping them or not, so I'm happy to go with your opinion and take them out. I'll fix the other thing too, thanks.

lib/main_common.pm
9 ↗(On Diff #2579)

good catch, indeed. I moved it around a bit. :)

This revision was automatically updated to reflect the committed changes.