[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
Mon Jul 28 23:08:04 UTC 2014


#9874: Research/design a way to automate testing of BridgeDB's HTTPS and email
distributors
-------------------------+-------------------------------------------------
     Reporter:  isis     |      Owner:  isis
         Type:           |     Status:  needs_information
  enhancement            |  Milestone:
     Priority:  normal   |    Version:
    Component:           |   Keywords:  bridgedb-unittests, automation, ci,
  BridgeDB               |  bridgedb-gsoc-application
   Resolution:           |  Parent ID:
Actual Points:           |
       Points:           |
-------------------------+-------------------------------------------------

Comment (by isis):

 Additionally, because BridgeDB's SMTP server (the Twisted one) sits behind
 a postfix instance, it is sometimes necessary to test it from behind a
 mailserver. Here's an excerpt from a `bridgedb.conf` file explaining how
 to configure BridgeDB, and also how to start an Exim listener, in order to
 send emails which are forwarded through a mailserver to a test BridgeDB
 instance:

 {{{
 # IP and port to listen on for email connections. Debugging only.
 EMAIL_BIND_IP = "127.0.0.1"
 EMAIL_PORT = 6725

 # To test the email server's responses with Exim, do:
 #
 # Set an /etc/hosts entry for the domain name of the client email address.
 For
 # example, if your test emails (sent from ./scripts/telnet-an-email) are
 # coming from 'alice at fubar', then set something like:
 #
 #     127.0.66.66 fubar
 #
 # in /etc/hosts. Next, start BridgeDB:
 #
 #     shellA $ bridgedb -r run-directory
 #
 # In another shell, start exim listening on the local IP you set in
 /etc/hosts:
 #
 #     shellB $ emim -bh 127.0.66.66:2525
 #
 # where 2525 is whatever random port (this should be neither EMAIL_PORT
 nor
 # EMAIL_SMTP_PORT!). Then send the test email:
 #
 #     shellB $ ./scripts/telnet-an-email
 }}}

 The [https://trac.torproject.org/projects/tor/attachment/ticket/5232
 /telnet-an-email telnet-an-email is a crappy pexpect script which can be
 found here].

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


More information about the tor-bugs mailing list