[tor-bugs] #6950 [Onionoo]: write tests for pyonionoo

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Sep 23 16:40:34 UTC 2012


#6950: write tests for pyonionoo
---------------------+------------------------------------------------------
 Reporter:  gsathya  |          Owner:     
     Type:  task     |         Status:  new
 Priority:  normal   |      Milestone:     
Component:  Onionoo  |        Version:     
 Keywords:           |         Parent:     
   Points:           |   Actualpoints:     
---------------------+------------------------------------------------------
Changes (by karsten):

 * cc: karsten (added)


Comment:

 I have been thinking the same.  Having a set of tests for Pyonionoo might
 help us figure out if it provides the same functionality as Onionoo.

 How about we add integration tests to Pyonionoo that do the following:
  1. Optionally, start a Pyonionoo front-end with a given summary file (and
 later details, bandwidth, and weights files).  This step is optional,
 because we could also start a Java Onionoo for the tests.  After this
 step, we assume there is a Pyonionoo or Onionoo server listening on a
 local port.
  1. Run a couple of tests, each of which sends a (possibly invalid)
 request and validates the returned result.
  1. Shut down the Pyonionoo server if one was started in step 1.

 Maybe Pyonionoo could reuse some of stem's testing harness?

 I'd want to help out with finding good test data and test cases.

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


More information about the tor-bugs mailing list