[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
Tue Aug 5 23:42:47 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:           |
-------------------------+-------------------------------------------------
Changes (by trygve):

 * status:  needs_information => needs_review


Comment:

 Added 'test_smtp.py'. This is a test suite used to test the BridgeDB SMTP
 autoresponder. All tests are written to use twister.trial. The suite
 currently has three tests:
 1) test_getBridges: sends an email to BridgeDB and checks that a response
 is received containing bridge details
 2) test_getBridges_rateLimitExceeded: sends 3 emails to BridgeDB from the
 same email address and checks that the correct rate-limited response is
 received in each case
 3) test_getBridges_stressTest: sends 100 emails from random email
 addresses on the same domain, and checks that a response is received in
 each case

 To run the tests:
  set EMAIL_SMTP_PORT in bridgedb.conf to 2525
  add "127.0.0.1" to EMAIL_DOMAINS in bridgedb.conf
  generate some bridge descriptors
  run bridgedb
  run 'trial test_smtp.py' from within the bridgedb virtualenv

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9874#comment:11>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list