~launchpad-pqm/launchpad/devel

  • Committer: Bryce Harrington
  • Date: 2011-07-01 02:29:53 UTC
  • Revision ID: bryce@canonical.com-20110701022953-fbovrf1b5r5cq3pb
Add synthetic bugtracker scrapers

The update-bugzilla-remote-components.py cron job can fail when
getRemoteProductsAndComponents() hits various HTTPErrors.

This patch modifies getRemoteProductsAndComponents() so that instead of
creating a new scraper object per bugtracker, to instead allow the test
code to pass in its own scraper, which is used for all requests instead
of generating a scraper object for each URL.

The test code can then supply scrapers subclassed from
BugzillaRemoteComponentScraper with hardcoded behaviors:

StaticTextBugzillaRemoteComponentScraper replaces the static text
parameter.  Instead of hardcoding a check for this option, we allow the
test code to provide the static text via the subclasses' getPage().

FaultyBugzillaRemoteComponentScraper provides a way to simulate hitting
various error codes by raising whatever errors we pass to it.

A assertGetRemoteProductsAndComponentsDoesNotAssert() helper method is
added to allow us to run getRemoteProductsAndComponents() and check that
no assertions were thrown.
Filename Latest Rev Last Changed Committer Comment Size
..
buildout-templates 8234.1.4 15 years ago Gary Poster test works, nominally; and bin/py is a bit more fu Diff
bzrplugins 5520.1.3 17 years ago Aaron Bentley Quicksave Diff
configs 63.1.148 19 years ago Robert Collins Merge ddaa and my branch. Diff
cronscripts 63.1.148 19 years ago Robert Collins Merge ddaa and my branch. Diff
daemons 63.1.148 19 years ago Robert Collins Merge ddaa and my branch. Diff
database 63.1.148 19 years ago Robert Collins Merge ddaa and my branch. Diff
doc 63.1.148 19 years ago Robert Collins Merge ddaa and my branch. Diff
lib 63.1.148 19 years ago Robert Collins Merge ddaa and my branch. Diff
scripts 63.1.148 19 years ago Robert Collins Merge ddaa and my branch. Diff
sourcecode 63.1.148 19 years ago Robert Collins Merge ddaa and my branch. Diff
utilities 63.1.148 19 years ago Robert Collins Merge ddaa and my branch. Diff
zcml 12408.1.8 13 years ago Jonathan Lange Move much of the zcml into a subdirectory. Diff
.bzrignore 12915.3.4 13 years ago Brad Crittenden Ignore emacs desktop files in the tree. 1.6 KB Diff Download File
.ctags 11382.6.37 14 years ago Gavin Panella When generating tags, exclude *-min.js and *-debug 70 bytes Diff Download File
.testr.conf 11196.5.3 14 years ago Maris Fogels Tell testr to run xvfb by default. Adds to the ri 98 bytes Diff Download File
bootstrap.py 11411.1.1 14 years ago Gary Poster use the newest zc.buildout, zc.recipe.egg, z3c.rec 9.7 KB Diff Download File
buildmailman.py 7675.1022.7 14 years ago Curtis Hovey reverted hacks to makefile. 8 KB Diff Download File
buildout.cfg 13299.1.14 13 years ago Deryck Hodge Remove Windmill from buildout. 2.3 KB Diff Download File
bzr-trunk-buildout.cfg 7675.288.1 15 years ago Michael Hudson this seems to help testing against bzr.dev 273 bytes Diff Download File
COPYING 8687.15.36 15 years ago Karl Fogel Restore COPYING file, to avoid "Could not open: /v 48 bytes Diff Download File
ez_setup.py 10637.2.2 14 years ago Guilherme Salgado Update the default version of setuptools in ez_set 10.1 KB Diff Download File
LICENSE 8687.15.28 15 years ago Karl Fogel Finish LICENSE file, with Amanda and Andrew. 34.6 KB Diff Download File
Makefile 13299.1.14 13 years ago Deryck Hodge Remove Windmill from buildout. 14.6 KB Diff Download File
README 12408.1.19 13 years ago Jonathan Lange Rename optionalbzrplugins to bzrplugins/optional. 3.6 KB Diff Download File
setup.cfg 8827.2.5 15 years ago Gary Poster try to make ec2test happy again. 686 bytes Diff Download File
setup.py 13317.1.1 13 years ago Graham Binns lazr.amqp is now a build dependency for Launchpad. 4.5 KB Diff Download File
site.zcml 12408.1.9 13 years ago Jonathan Lange Move a lot more zcml into the zcml directory. Fix 1.5 KB Diff Download File
standard_template.py 12293.3.2 13 years ago Jeroen Vermeulen Merged devel with landed CommandSpawner. 214 bytes Diff Download File
Symlink standard_test_template.py 11149.1.1 14 years ago Jeroen Vermeulen Make standard test template part of the test suite .
File test_on_merge.py 9893.6.7 14 years ago Stuart Bishop Emit information about rouge database connections 9.1 KB Diff Download File
versions.cfg 13317.1.2 13 years ago Graham Binns Updated for latest dependencies. 5.9 KB Diff Download File