change yumrepoinfo's `supported` to `release_status`
ClosedPublic

Authored by garretraziel on Jul 24 2014, 10:42 AM.

Details

Summary

Change supported with boolean value to more fitting
release_status that can be one of rawhide, stable, branched
or EOL in yumrepoinfo repos configuration.

Test Plan

Run testsuite, upgradepath - had to change /etc/taskotron/yumrepoinfo.conf

Diff Detail

Repository
rLTRN libtaskotron
Lint
Lint Skipped
Unit
Unit Tests Skipped
garretraziel retitled this revision from to change yumrepoinfo's `supported` to `release_status`.Jul 24 2014, 10:42 AM
garretraziel updated this object.
garretraziel edited the test plan for this revision. (Show Details)
garretraziel added a reviewer: kparal.
  • rebase to master
kparal requested changes to this revision.Jul 25 2014, 11:06 AM

Can you please add a new test to verify that only stable releases are returned using releases(), and that branched() also returns correct values?

Please use case-insensitive comparisons (e.g. EOL should work the same as eol). Put that into a test case.

Thanks.

conf/yumrepoinfo.conf.example
25

I think it would be cleaner if the default section didn't create any release_status default value and required all sections to define it. So, I would leave the documentation (line 25) in place, but move line 26 to the [rawhide] section.

libtaskotron/yumrepoinfo.py
93–94

Can you please add:

:rtype: list of str

to releases() and repos(), and:

:rtype: str or None

to branched()? Thanks.

testing/test_yumrepoinfo.py
25

Don't forget to change these occurrences as well.

This revision now requires changes to proceed.Jul 25 2014, 11:06 AM
garretraziel updated this revision to Diff 564.Jul 29 2014, 8:09 AM
  • changed tests, comments, conf example
kparal accepted this revision.Jul 29 2014, 12:36 PM

Once you fix the documentation it can be pushed.

conf/yumrepoinfo.conf.example
25–27

For non-top-parent repos this is an empty string. Let's document it here.

This revision is now accepted and ready to land.Jul 29 2014, 12:36 PM
garretraziel closed this revision.Jul 29 2014, 2:22 PM
garretraziel updated this revision to Diff 569.

Closed by commit rLTRNcd9dd55b4668 (authored by Garret Raziel <boloomka@gmail.com>).