[tor-bugs] #22755 [Obfuscation/BridgeDB]: Use stem to create test descriptors
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Jun 29 23:02:20 UTC 2017
#22755: Use stem to create test descriptors
-------------------------------------------------+-------------------------
Reporter: atagar | Owner: isis
Type: enhancement | Status:
| needs_revision
Priority: Low | Milestone:
Component: Obfuscation/BridgeDB | Version:
Severity: Minor | Resolution:
Keywords: python, stem, bridgedb-parsers, | Actual Points:
bridgedb-ci |
Parent ID: | Points:
Reviewer: | Sponsor:
-------------------------------------------------+-------------------------
Changes (by isis):
* status: new => needs_revision
* keywords: => python, stem, bridgedb-parsers, bridgedb-ci
Comment:
This is great, thanks atagar! I've applied your patch in my `feature/22755
-stem-descgen`
[https://gitweb.torproject.org/user/isis/bridgedb.git/log/?h=feature/22755
-stem-descgen branch], and added a couple extra tiny patches to ensure
that we use your `scripts/create-descriptors` script to generate the
mocked descriptors in tests/CI instead of leekspin.
It's not ready to switch yet, though. One thing that leekspin does, which
this doesn't do yet, is it creates the `networkstatus-bridges`, `bridge-
descriptors`, `cached-extrainfo{.new}` files all at once. That is, a
mocked bridge whose networkstatus entry is included in `networkstatus-
bridges` will also have a bridge server descriptor in the `bridge-
descriptors` file (and a bridge extrainfo in either `cached-extrainfo` or
`cached-extrainfo.new`. I'd need a way to do this, since one of the things
that the mocked descriptors test for BridgeDB is that BridgeDB's logic on
whether or not a bridge should be distributed is functioning in a sane
manner.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22755#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list