summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * | Return a database handle via generatorMatthew Finkel2014-03-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | Define a new idiom for retrieving an instance of bridgedb.Storage.Database Use: with bridgedb.Storage.getDB() as db: db.<do stuff with the database>
| * | Add unit tests for bridgedb.StorageMatthew Finkel2014-03-30
| | |
| * | Add tests for SIGHUP and SIGUSR1 signalsMatthew Finkel2014-03-30
| | |
| * | Reparse descriptors in background thread on signalMatthew Finkel2014-03-30
| |/ | | | | | | | | | | | | | | Create temporary distributors and fill them with bridges then overwrite the old distributors' rings with the rings from the temporary distributors. Factor out distributor creation code. Bug fix 5232
* | Add bridgedb.conf settings from bridgedb-admin repo.Isis Lovecruft2014-03-28
| |
* | Merge branch 'master' into developIsis Lovecruft2014-03-26
|\ \ | |/
| * Merge branch 'release-0.1.6'Isis Lovecruft2014-03-26
| |\ | |/ |/|
* | Update CHANGELOG with additional changes for 0.1.6.bridgedb-0.1.6Isis Lovecruft2014-03-26
| |
* | Update translations.Isis Lovecruft2014-03-26
| |
* | Add unittests for HTTPServer.WebResourceOptions.Isis Lovecruft2014-03-26
| |
* | Merge branch 'hotfix/11218-async-render' into developIsis Lovecruft2014-03-26
|\ \
| * | Change unittests for reCaptcha render_POST() to check NOT_DONE_YET.Isis Lovecruft2014-03-26
| | |
| * | Change checkSolution() unittest to check for tuple.Isis Lovecruft2014-03-26
| | |
| * | Add unittests for _renderDeferred().Isis Lovecruft2014-03-26
| | |
| * | Remove gimp captcha unittest code from recaptcha unittest setUp().Isis Lovecruft2014-03-26
| | |
| * | Add --rcfile option to additional coverage lines in Makefile.Isis Lovecruft2014-03-26
| | |
| * | Remove a superfluous error message about gettext files.Isis Lovecruft2014-03-26
| | |
| * | Add a docstring and comment to checkResponse() in ReCaptchaProtectedResource.Isis Lovecruft2014-03-26
| | |
| * | Add coverage pragma lines to blanket excepts in HTTPServer.Isis Lovecruft2014-03-26
| | | | | | | | | | | | | | | They are gross, but we have to have these general excepts everywhere, otherwise users could be shown a traceback.
| * | Change ReCaptchaProtectedResource.render_POST() to call _renderDeferred().Isis Lovecruft2014-03-26
| | | | | | | | | | | | * FIXES #11218 (again).
| * | Add ReCaptchaProtectedResource._renderDeferred() to render deferred resources.Isis Lovecruft2014-03-26
| | |
| * | Change ReCaptchaProtectedResource.checkResponse() to also return request.Isis Lovecruft2014-03-26
| | | | | | | | | | | | | | | | | | We need to return the original request, not just the boolean representing the validity of the CAPTCHA solution, if we want to be able to interact with the original request while rendering it.
| * | A couple PEP8 whitespace fixes in docstrings for HTTPServer.Isis Lovecruft2014-03-26
| | |
| * | More import cleanups for HTTPServer.Isis Lovecruft2014-03-26
| | | | | | | | | | | | | | | * CHANGE `from twisted.web.server import Site` to import the entire `server` module instead.
| * | Cleanup imports in bridgedb.HTTPServer.Isis Lovecruft2014-03-26
|/ / | | | | | | | | * CHANGE all objects named `resource` to something more specific, otherwise we cannot do `from twisted.web import resource`.
* | Remove `cat bridgedb.log` from after tests in .travis.yml.Isis Lovecruft2014-03-25
| |
* | Merge branch 'fix/11196-use-leekspin_r1' into developIsis Lovecruft2014-03-25
|\ \
| * | Remove old scripts/gen_bridge_descriptors; use leekspin.Isis Lovecruft2014-03-25
| | |
| * | Add leekspin dependency; modify test_bridgedb and bridgedb.runner apropos.Isis Lovecruft2014-03-25
| | |
| * | Remove superfluous descriptor generation.Isis Lovecruft2014-03-25
| | |
* | | Remove 'installed-files.txt' after `make uninstall` completes.Isis Lovecruft2014-03-25
|/ /
* | Merge branch 'fix/11231-additional-bug-fixes' into developIsis Lovecruft2014-03-21
|\ \
| * | Fix txrecaptcha.submit() to always return Deferreds.Isis Lovecruft2014-03-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All returned Deferreds callback with RecaptchaResponse objects. This way, we do not need additional code to check if the result was a Deferred (because, in that case, we would need to add a callback function to extract the RecaptchaResponse object from it and check it), or if it directly returned a RecaptchaResponse. This function now *always* returns Deferred.
| * | Add a steaming pile of XXXs and FIXMEs to problems in WebResourceBridges.Isis Lovecruft2014-03-19
| | |
* | | Merge branch 'fix/11231-blank-captcha-field' into developIsis Lovecruft2014-03-21
|\ \ \ | |/ /
| * | Add unittests for HTTPServer.WebResourceBridges.Isis Lovecruft2014-03-19
| | |
| * | Always expect a Deferred from ReCaptcha.checkSolution().Isis Lovecruft2014-03-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, we `checkSolution()` will return a RecaptchaResponse if the HTTP POST argument fields are blank. Otherwise, it returns a deferred. This is bad. It means we have to do all kinds of checks to see if we can add callbacks on the returned object. It should always return a deferred which callbacks with a RecaptchaResponse, and so we should test for that and fail if that is not what is happening.
| * | Fix X-Forwarded-For unittests in CaptchaProtectedResourceTests.Isis Lovecruft2014-03-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently, we can't do: request.setHeader('X-Forwarded-For', '1.1.1.1') because then BridgeDB never finds the header. Instead, we must do: request.headers.update({'X-Forwarded-For': '1.1.1.1'})
| * | Use the class wrapper DummyRequest in unittests in test_HTTPServer.py.Isis Lovecruft2014-03-19
| | |
| * | Add class wrapper for requesthelper.DummyRequest to support redirects.Isis Lovecruft2014-03-19
| | |
| * | Add a mocked DummyIPBasedDistributor class to test_HTTPServer.py.Isis Lovecruft2014-03-19
| | | | | | | | | | | | | | | | | | | | | A distributor is a required parameter to the `HTTPServer.WebResourceBridges` class. This one merely creates N random `DummyBridges`, where N is the number of bridges we're told to return to the client.
| * | Add a mocked DummyBridge class to test_HTTPServer.py.Isis Lovecruft2014-03-19
| | | | | | | | | | | | | | | | | | | | | | | | This is used to test that bridges are actually returned on 'bridges.html' results pages, and is missing all of the real class's methods except for `getConfigLine()`. The latter method needs to be mocked because is used in `HTTPServer.WebResourceBridges.render()` to get the bridge line to display to a client.
| * | Change the requested pagename in CaptchaProtectedResourceTests unittests.Isis Lovecruft2014-03-19
| | |
| * | Add optional debugging logs to test_HTTPServer.py.Isis Lovecruft2014-03-19
| | |
| * | Explicitly require CaptchaProtectedResource.checkSolution() to be True.Isis Lovecruft2014-03-18
| | | | | | | | | | | | * FIXES #11231.
| * | Update documentation for CaptchaProtectedResource.getCaptchaImage().Isis Lovecruft2014-03-18
| | |
| * | Fix CaptchaProtectedResourceTests.test_render_GET_noCaptcha unittest.Isis Lovecruft2014-03-18
| | | | | | | | | | | | | | | We shouldn't return ``(None, None)`` in a stub method when all the other methods and child classes expect ``(str, str)``.
| * | Start writing unittests for the bridgedb.HTTPServer module.Isis Lovecruft2014-03-18
| | | | | | | | | | | | | | | The ReCaptchaProtectedResourceTests.test_render_POST_* unittests expose the bug in #11231.
* | | Give the PluggableTransports class a real docstring.Isis Lovecruft2014-03-20
|/ /
* | Rearrange logging calls during pygeoip import in HTTPServer.py.Isis Lovecruft2014-03-17
| |