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

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Mon Sep 24 03:04:51 UTC 2012


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

Comment(by gsathya):

 Replying to [comment:1 karsten]:
 > 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.
 >  2. Run a couple of tests, each of which sends a (possibly invalid)
 request and validates the returned result.
 >  3. Shut down the Pyonionoo server if one was started in step 1.

 Sounds good.

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

 Yeah, it'd be great if we can do this. I'll try to see if this is
 possible.

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

 Awesome! I was thinking of finishing up with the features first and then
 start writing the tests, but I'd be ok with writing tests right now as
 well :)

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


More information about the tor-bugs mailing list