Merge lp://staging/~allenap/launchpad/syncable-gnome-test-failure-bug-498602 into lp://staging/launchpad
Proposed by
Gavin Panella
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp://staging/~allenap/launchpad/syncable-gnome-test-failure-bug-498602 |
Merge into: | lp://staging/launchpad |
Diff against target: |
131 lines (+32/-34) 4 files modified
lib/lp/bugs/doc/externalbugtracker-bugzilla-api.txt (+11/-0) lib/lp/bugs/doc/externalbugtracker-bugzilla-lp-plugin.txt (+11/-0) lib/lp/bugs/externalbugtracker/bugzilla.py (+8/-0) lib/lp/bugs/scripts/tests/test_checkwatches.py (+2/-34) |
To merge this branch: | bzr merge lp://staging/~allenap/launchpad/syncable-gnome-test-failure-bug-498602 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Deryck Hodge (community) | code | Approve | |
Review via email: mp+16429@code.staging.launchpad.net |
To post a comment you must log in.
Bugzilla. getExternalBugT rackerToUse( ) makes network calls to sniff out the support offered by the remote Bugzilla.
TestCheckwatche sWithSyncableGn omeProducts. setUp() (in lib/lp/ bugs/scripts/ tests/test_ checkwatches. py) patches in get_external_ bugtracker( ) to always return a BugzillaAPI instance, in the assumption (I think) that BugzillaAPI. getExternalBugT rackerToUse( ) would return self, as the default implementation does.
However, BugzillaAPI inherits from Bugzilla, so sniffs anyway. This fails in PQM when landing to production-devel.
I've changed BugzillaAPI (and BugzillaLPPlugin for good measure) to just return self.
I would like to refactor this code to have a BugzillaSniffer class, which getExternalBugT rackerToUse( ) method can return one of Bugzilla, BugzillaAPI or BugzillaLPPlugin, none of which inherit from BugzillaSniffer. However, this branch is a simpler solution to get the test working again while I/we work on a better fix.