[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #15554 [Tor]: Put some actual hsdescs in the unit tests for parsing
#15554: Put some actual hsdescs in the unit tests for parsing
--------------------------+------------------------------
Reporter: arma | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Tor: 0.2.???
Component: Tor | Version:
Keywords: tor-hs, easy | Actual Points:
Parent ID: | Points:
--------------------------+------------------------------
Right now our test_rend_fns() function in src/test/test.c builds a
"rend_service_descriptor_t *generated", and then it encodes it, and then
it parses it, to make sure it gets the expected descriptor back. That's a
great start.
But there are now several different versions of the descriptor format in
play, and our unit tests by definition only test the one that the current
Tor version generates.
Also, it would be easier to play around with "how Tor handles it if you
take that stanza out of the descriptor" experiments, if there are some
actual descriptors in the unit tests.
Good idea / bad idea?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15554>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs