Bug 442909

Summary: RFE: enhancements to mock plugin API
Product: [Fedora] Fedora Reporter: Carl Roth <roth>
Component: mockAssignee: David Cantrell <dcantrell>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: mebrown, yamato
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-16 04:13:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Carl Roth 2008-04-17 15:17:52 UTC
Description of problem:

Currently the mock plugin api isn't really a plugin api.  That is, the explicit
list of plugins is spelled out in the mock sources, meaning it's not easily
extendible with new plugins.  It would be better if mock trolled its plugin
directory and loaded all plugins that were available.

The current workaround I'm using (sort of a hack) is to manipulate the plugin
list and plugin configuration dictionaries from the site-defaults.cfg file. 
That's a short-term solution, since the newly-added plugins aren't visible from
the command-line enable/disable options.

Version-Release number of selected component (if applicable):

mock-0.9.8-1.fc9.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Michael E Brown 2008-04-17 20:22:09 UTC
Agreed. I originally started working on the plugin API, but my intent was to
ensure that I didnt over-engineer it and write a bunch of code that would not be
used.

If you have specific enhancements to the plugin API, go ahead and post them to
fedora-buildsys-list for discussion, and I would more than happy to add any
reasonable extensions to the plugin API to the codebase.


Comment 2 Masatake YAMATO 2010-09-16 04:13:32 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=634224

*** This bug has been marked as a duplicate of bug 634224 ***