[tor-bugs] #9874 [BridgeDB]: Research/design a way to automate testing of BridgeDB's HTTPS and email distributors
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Aug 6 22:54:35 UTC 2014
#9874: Research/design a way to automate testing of BridgeDB's HTTPS and email
distributors
-------------------------+-------------------------------------------------
Reporter: isis | Owner: isis
Type: | Status: needs_review
enhancement | Milestone:
Priority: normal | Version:
Component: | Keywords: bridgedb-unittests, automation, ci,
BridgeDB | bridgedb-gsoc-application
Resolution: | Parent ID:
Actual Points: |
Points: |
-------------------------+-------------------------------------------------
Comment (by trygve):
Attached 'test_https.py'. This is a test suite used to test the BridgeDB
HTTPS web page. All tests are written to use twisted.trial. The suite
currently has three tests:
'''test_get_obfs2_ipv4''': uses mechanize and Beautiful soup to
connect to the BridgeDB web page, follows some links, chooses the 'obfs2'
on the options page, enters the captcha and checks that at least one
bridge line is returned of type 'obfs2'
'''test_get_obfs3_ipv4''': as above, except gets 'obfs3' bridges
'''test_get_obfs3_ipv6''': as above, except gets 'obfs3' ipv6 bridges.
Note: currently fails on my system due to lack of ipv6 bridge descriptors
available.
To run the tests:
generate some bridge descriptors (should contain at least one obfs2
and obfs3 bridges)
run bridgedb
run 'trial test_https.py' from within the bridgedb virtualenv
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9874#comment:12>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list