Remove bodhi network unit test
ClosedPublic

Authored by mkrizek on May 9 2016, 5:39 AM.

Details

Summary

The test caused failures with recent version of python-fedora and
so libtaskotron couldn't be built. The unit tests is not relevant
anymore.

Test Plan

Unit test passes now with the recent version of python-fedora.

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mkrizek retitled this revision from to Remove bodhi network unit tests.May 9 2016, 5:39 AM
mkrizek updated this object.
mkrizek edited the test plan for this revision. (Show Details)
mkrizek added a reviewer: kparal.
mkrizek retitled this revision from Remove bodhi network unit tests to Remove bodhi network unit test.May 9 2016, 5:40 AM
kparal accepted this revision.May 9 2016, 6:43 AM

The unit tests is not relevant anymore.

I'll add explanation: That unit test was to ensure that bodhi client doesn't make a network request during initialization to figure out whether it should return a Bodhi1 or Bodhi2 instance. That used to be the case and it made our unit tests very slow. Now the library doesn't seem to do that anymore and they even removed requests module (which we mocked in that unit test) from their code.

libtaskotron.spec
65

Please note this is not available in Fedora 22:

$ pkgwat releases python-fedora
+---------------+-----------------------+----------------------+
| release       | stable_version        | testing_version      |
+---------------+-----------------------+----------------------+
| Rawhide       | 0.8.0-1.fc25          | None                 |
| Fedora 24     | 0.8.0-1.fc24          | 0.8.0-1.fc24 3 karma |
| Fedora 23     | 0.8.0-1.fc23 (update) | None                 |
| Fedora 22     | 0.7.1-4.fc22 (update) | 0.8.0-1.fc22 0 karma |
| Fedora EPEL 7 | 0.7.1-2.el7           | None                 |
| Fedora EPEL 6 | 0.5.6-1.el6           | None                 |
| Fedora EPEL 5 | None                  | None                 |
+---------------+-----------------------+----------------------+

Just in case we want to support it, not sure.

This revision is now accepted and ready to land.May 9 2016, 6:43 AM
mkrizek added inline comments.May 9 2016, 6:59 AM
libtaskotron.spec
65

We already require pytest version which is not in Fedora 22 so I guess it doesn't matter much, also given that Fedora 22 will go EOL soon.

This revision was automatically updated to reflect the committed changes.