#103 Add a test of the runroot hub plugin.
Merged by mikem. Opened by ralph.
ralph/koji runroot-tests  into  master

Download 103.patch

... and remove mktask in favor of make_task (and fix all references).

These were all the references to mktask I could find:

hub/kojihub.py:def mktask(__taskopts,__method,*args,**opts):
plugins/hub/runroot_hub.py:#XXX - have to import kojihub for mktask
plugins/hub/runroot_hub.py:from kojihub import mktask, get_tag, get_all_arches
plugins/hub/runroot_hub.py:    return mktask(taskopts,'runroot', tagInfo, arch, command, **opts)

I wrote the test first to verify that make_task was being called as I expected. I then remove mktask, replaced references, and verified that the test case still passed.

Commit 8a54526d fixes this pull-request

Pull-Request has been merged by mikem@redhat.com

Metadata