| Commit message (Collapse) | Author | Age | ||
|---|---|---|---|---|
| ... | ||||
| | * | | Add trial runner/report class adapter for old unittests. | Isis Lovecruft | 2013-12-20 | |
| |/ / | | | | | | | | | | | | | | | | | | | | | This adds a new unittest file, `lib/bridgedb/test/test_Tests.py`, which runs the old unittests in `lib/bridgedb/Tests.py` with a unittest report adapter that is compatible with twisted.trial. It uses the underlying SynchronousTestCase wrapper for the stdlib `unittest.TestCase` (which the tests in `lib/bridgedb/Tests.py` use). * ADDS a trial runner for BridgeDB's old unittests. * FIXES #9873 | |||
| * | | Merge branch 'hotfix/9462B-netstatus-returns-None' into develop | Isis Lovecruft | 2013-12-20 | |
| |\ \ | ||||
| | * | | Fix field names in ParseNetworkStatusALineTests.test_missingPrefix(). | Isis Lovecruft | 2013-12-20 | |
| | | | | ||||
| * | | | Merge branch 'hotfix/9462B-netstatus-returns-None' into develop | Isis Lovecruft | 2013-12-20 | |
| |\ \ \ | |/ / | ||||
| | * | | Fix ParseNetworkStatusALineTests.test_missingPrefix unittest. | Isis Lovecruft | 2013-12-20 | |
| | | | | ||||
| * | | | Merge branch 'fix/10446-geoip-module' into develop | Isis Lovecruft | 2013-12-20 | |
| |\ \ \ | ||||
| | * | | | Update README to reflect pygeoip module changes. | Isis Lovecruft | 2013-12-20 | |
| | | | | | ||||
| | * | | | Use pygeoip instead of GeoIP in HTTPServer.py. | Isis Lovecruft | 2013-12-20 | |
| |/ / / | | | | | | | | | | * FIXES #10446 | |||
| * | | | Merge branch 'hotfix/9462B-netstatus-returns-None' into develop | Isis Lovecruft | 2013-12-20 | |
| |\ \ \ | |/ / | ||||
| | * | | Handle case when (ip, portlist) from parseALine() is (None, None). | Isis Lovecruft | 2013-12-20 | |
| | | | | | | | | | | | | | | | | | | | * FIXES a bug where bridgedb.Bridges.parseStatusFile() doesn't handle the (None, None) for (ip, portlist) which is returned whenever bridgedb.parse.networkstatus.parseALine() couldn't parse the line. | |||
| | * | | Change logged exception to error in parseALine(). | Isis Lovecruft | 2013-12-20 | |
| | | | | ||||
| | * | | Allow 'a'-lines which don't start with 'a' for backward compatibility. | Isis Lovecruft | 2013-12-20 | |
| |/ / | | | | | | | | | | | | | The removed bridgedb.Bridges.parseORAddressLine() function was able to take a networkstatus line which started with 'a' or didn't. It's a mess to change all the code, so for now just log a warning when we recieve a line in bridgedb.parse.networkstatus.parseALine() which doesn't start with 'a'. | |||
| * | | Merge branch 'fix/1606-based-on_bug1606_spec_update_rebased_r1' into develop | Isis Lovecruft | 2013-12-13 | |
| |\ \ | ||||
| | * | | Move specs and proposals into doc/ directory. | Isis Lovecruft | 2013-12-13 | |
| | | | | ||||
| | * | | Update spec: PT args are comma-separated. | Isis Lovecruft | 2013-12-13 | |
| | | | | ||||
| | * | | Update spec: We also parse the "published" line. | Isis Lovecruft | 2013-12-13 | |
| | | | | ||||
| | * | | Add description about how we display bridge addresses | Matthew Finkel | 2013-12-13 | |
| | | | | ||||
| | * | | Attempt to answer some old questions, ask a new one. | Matthew Finkel | 2013-12-13 | |
| | | | | ||||
| | * | | We can sign all outgoing emails now | Matthew Finkel | 2013-12-13 | |
| | | | | ||||
| | * | | Describe how we decide the number of bridges we will return | Matthew Finkel | 2013-12-13 | |
| | | | | ||||
| | * | | Improve description of IP-based distributor | Matthew Finkel | 2013-12-13 | |
| | | | | | | | | | | | | | | | | We now use a CAPTCHA to weed out (most) scrapers. Also, improve description of how bridges are selected based on filters and rings. | |||
| | * | | Reword and improve description of the distributor | Matthew Finkel | 2013-12-13 | |
| | | | | ||||
| | * | | Clarify how we parse bridge descriptors | Matthew Finkel | 2013-12-13 | |
| | | | | | | | | | | | | | | | | Bring the description inline with how the the implementation handles the descriptors and bridges. | |||
| | * | | We use the "a" line of a bridge from the NS for its OR Address | Matthew Finkel | 2013-12-13 | |
| | | | | | | | | | | | | | | | | | | | The "a" line in the network status is checked and signed by the bridge authority, so we prefer this over the "or-address" line in the bridge descriptor. | |||
| | * | | We now support extra-info documents and pluggable transports | Matthew Finkel | 2013-12-13 | |
| | | | | | | | | | | | | | | | | | | | BridgeDB supports parsing extra-info documents which allows it to retrieve information regarding the pluggable transports a bridge accepts. | |||
| | * | | Minor grammatical and clarifying corrections | Matthew Finkel | 2013-12-13 | |
| | | | | ||||
| | * | | Clarify which bridges are used and which ones are skipped | Matthew Finkel | 2013-12-13 | |
| |/ / | | | | | | | | | | | If we receive a descriptor for a bridge which was not listed in the network status, then we should not use it. We do not use it, but this is not obvious without some investigation. Make this obvious. | |||
| * | | Merge branch 'fix/9013_r1' into develop | Isis Lovecruft | 2013-12-13 | |
| |\ \ | ||||
| | * | | Tor expects the PT argument separator to be a comma | Matthew Finkel | 2013-12-13 | |
| |/ / | ||||
| * | | Merge branch 'fix/9462-refactor-netstatus-parsers_r9462C_r2' into develop | Isis Lovecruft | 2013-12-12 | |
| |\ \ | ||||
| | * | | Add three new unittests for parseRLine() base64 encoding issues. | Isis Lovecruft | 2013-12-11 | |
| | | | | ||||
| | * | | Change parse.networkstatus unittest values to be clearer when decoded. | Isis Lovecruft | 2013-12-11 | |
| | | | | | | | | | | | | | | | | | | | Store the pre-base64-encoded value so that the checks are clearer if they fail. Also, remove a str() around a couple `nick` values, they do not make a difference now that the proper __future__ imports are in place. | |||
| | * | | Move base64 re-padding logic into separate function. | Isis Lovecruft | 2013-12-11 | |
| | | | | | | | | | | | | | | | | | | | This logic is not specific to parsing networkstatus descriptors, so for now I've placed it in parse.parseUnpaddedBase64() ― though it could live somewhere else later. | |||
| | * | | Only return the re-padded base64 string if no errors were raised. | Isis Lovecruft | 2013-12-11 | |
| | | | | | | | | | | | | | | | | * CHANGE parse.padBase64() to only return a value if no exceptions were raised during parsing. | |||
| | * | | Raise ValueError rather than logging in parse.padBase64(). | Isis Lovecruft | 2013-12-11 | |
| | | | | ||||
| | * | | Merge branch 'fix/10333-index-by-0L_r2' into ↵ | Isis Lovecruft | 2013-12-11 | |
| | |\ \ | | | | | | | | | | | | | fix/9462-refactor-netstatus-parsers_r9462C_r2 | |||
| | | * | | Add two unittests for PortList.__getitem__ to debug #10333. | Isis Lovecruft | 2013-12-11 | |
| | | | | | ||||
| | | * | | Make PortList.__getitem__ unittest more explicit. | Isis Lovecruft | 2013-12-11 | |
| | | | | | ||||
| | | * | | Fix two unittests for PortList.__getitem__(). | Isis Lovecruft | 2013-12-11 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | * FIXES two unittests which erroneously passed before the previous commit which fixed #10333, and then erroneously failed after the fix. They should now correctly test indexing the portlist. | |||
| | * | | | Merge branch 'fix/10333-index-by-0L_r2' into ↵ | Isis Lovecruft | 2013-12-11 | |
| | |\ \ \ | | |/ / | | | | | | | | | fix/9462-refactor-netstatus-parsers_r9462C_r2 | |||
| | | * | | Fix an error where `PortList`s could not be indexed by strings. | Isis Lovecruft | 2013-12-11 | |
| | |/ / | | | | | | | | | | | | | | | | The `long` in #10333 should index the PortList as a string, not an integer. * FIXES #10333 | |||
| | * | | Fix lengths of base64 fields in unittests for parseRLine(). | Isis Lovecruft | 2013-12-11 | |
| | | | | | | | | | | | | | | | | In real `@type bridge-networkstatus` documents, the base64 fields are 27 characters in length, not 29 characters. | |||
| | * | | Update unittest parameter docstrings for parseRLine() tests. | Isis Lovecruft | 2013-12-11 | |
| | | | | ||||
| | * | | Remove trailing '='s from unittests for networkstatus.parseRLine(). | Isis Lovecruft | 2013-12-11 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because of the bug fixed in the last commit, two unittests in `test_parse_networkstatus.ParseNetworkStatusRLineTests` now FAIL. They are: ø test_invalidDescriptorDigest_missingBase64padding ø test_invalidIPAddress | |||
| | * | | Add base64 padding to networkstatus 'descDigest' field. | Isis Lovecruft | 2013-12-11 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The trailing '='s in the "descriptor digest" field of an `@type-bridge-networkstatus` descriptor are removed before placing them in the descriptor. Therefore, before un-base64-encoding this field, we must re-add the trailing '='s character padding back in, the same as we already to for the "identity digest" field on that same descriptor line. * FIXES a bug in function `bridgedb.parse.networkstatus.parseRLine()` which resulted in the "descriptor digest" field (and all fields after it on the 'r'-line) being set to `None`, due to a base64 decoding error from missing '=' character padding. | |||
| | * | | Fix typo in inline comment in bridgedb.parse.networkstatus.parseRLine(). | Isis Lovecruft | 2013-12-11 | |
| | | | | ||||
| | * | | Add more parser logging to Bridges.parseStatusFile(). | Isis Lovecruft | 2013-12-11 | |
| | | | | | | | | | | | | | * FIXES part of #9377 | |||
| | * | | Condense two log calls into one in Bridges.parseExtraInfo(). | Isis Lovecruft | 2013-12-11 | |
| | | | | ||||
| | * | | Move Bridges.getConfigLine() documentation into function docstring. | Isis Lovecruft | 2013-12-11 | |
| | | | | ||||
| | * | | Change `PortList` to `addr.PortList` in bridgedb.Bridges module. | Isis Lovecruft | 2013-12-11 | |
| | | | | ||||
