[tor-bugs] #7163 [Stem]: test_get_network_status fails
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Nov 17 19:01:27 UTC 2012
#7163: test_get_network_status fails
---------------------+------------------------------------------------------
Reporter: neena | Owner: neena
Type: defect | Status: assigned
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: testing | Parent:
Points: | Actualpoints:
---------------------+------------------------------------------------------
Comment(by atagar):
I just ran into this with test_get_server_descriptor...
{{{
======================================================================
test.integ.control.controller
======================================================================
test_authenticate [SUCCESS]
test_enable_feature [SUCCESS]
test_extendcircuit (requires online target) [SKIPPED]
test_from_port [SUCCESS]
test_from_socket_file [SUCCESS]
test_get_network_status [SUCCESS]
test_get_network_statuses [SUCCESS]
test_get_server_descriptor [FAILURE]
test_get_server_descriptors [SUCCESS]
test_get_version [SUCCESS]
test_getconf [SUCCESS]
test_getinfo [SUCCESS]
test_loadconf [SUCCESS]
test_mapaddress (requires online target) [SKIPPED]
test_protocolinfo [SUCCESS]
test_repurpose_circuit (requires online target) [SKIPPED]
test_saveconf [SUCCESS]
test_set_conf [SUCCESS]
test_signal [SUCCESS]
======================================================================
ERROR: test_get_server_descriptor
----------------------------------------------------------------------
Traceback:
File "/home/atagar/Desktop/stem/test/integ/control/controller.py", line
462, in test_get_server_descriptor
self.assertEqual(first_descriptor,
controller.get_server_descriptor(first_descriptor.nickname))
File "/home/atagar/Desktop/stem/stem/control.py", line 694, in
get_server_descriptor
desc_content = self.get_info(query)
File "/home/atagar/Desktop/stem/stem/control.py", line 647, in get_info
if default == UNDEFINED: raise exc
InvalidArguments: GETINFO request contained unrecognized keywords:
desc/name/FastTmpRelay
----------------------------------------------------------------------
Ran 19 tests in 5.712s
FAILED
}}}
This is a bit puzzling. The relay can be fetched by its fingerprint but
not nickname. It's in most of my cached files...
{{{
atagar at morrigan:~/Desktop/stem$ grep FastTmpRelay test/data/cached-*
test/data/cached-consensus:r FastTmpRelay Ku0Bh15lr17BH3VdmLqWGnS0wTE
/v7SAW6PPEo2rA9X0fPJhj93JIc 2012-11-16 20:15:49 178.216.201.51 443 0
test/data/cached-descriptors:router FastTmpRelay 178.216.201.51 443 0 0
test/data/cached-extrainfo:extra-info FastTmpRelay
2AED01875E65AF5EC11F755D98BA961A74B4C131
test/data/cached-microdesc-consensus:r FastTmpRelay
2/dW/EuJxkK3je+EFGq97M7+34M 2012-11-04 18:26:34 178.216.201.51 443 0
}}}
This doesn't include cached-microdescs so maybe we need to only use relays
in that. However, we don't have microdescriptor parsing yet and that still
feels like a hack so we should get a better understanding of this first.
For now I'm disabling that part of both tests since they're clearly
buggy...
https://gitweb.torproject.org/stem.git/commitdiff/e73c4f353612ad26b47ca2c66d8c6f4ac78f165b
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7163#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list