[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Network status document handling



commit ea356b738fff3bab4a9e468298ea7807aff37960
Merge: 5cd457b ec335d1
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Sat Oct 13 11:33:47 2012 -0700

    Network status document handling
    
    Parsing and lots 'o test for handling network status documents. This includes
    both v2 and v3 documents (votes, consensus, and microdescriptors).
    
    https://trac.torproject.org/6569

 run_tests.py                                       |   12 +
 stem/descriptor/__init__.py                        |  181 ++-
 stem/descriptor/extrainfo_descriptor.py            |   11 +-
 stem/descriptor/networkstatus.py                   | 1290 ++++++++++++++++++++
 stem/descriptor/reader.py                          |    6 +-
 stem/descriptor/router_status_entry.py             |  537 ++++++++
 stem/descriptor/server_descriptor.py               |   52 +-
 test/integ/descriptor/data/cached-consensus        |  130 ++
 test/integ/descriptor/data/cached-consensus-v2     |   28 +
 test/integ/descriptor/data/metrics_consensus       |  121 ++
 test/integ/descriptor/data/metrics_vote            |   85 ++
 test/integ/descriptor/data/new_metrics_type        |    3 +
 test/integ/descriptor/data/vote                    |  100 ++
 test/integ/descriptor/networkstatus.py             |  406 ++++++
 test/integ/descriptor/reader.py                    |   29 +-
 test/integ/descriptor/server_descriptor.py         |   18 +-
 test/mocking.py                                    |  465 +++++++-
 test/unit/descriptor/__init__.py                   |    9 +-
 test/unit/descriptor/export.py                     |   17 +-
 test/unit/descriptor/extrainfo_descriptor.py       |  139 +--
 test/unit/descriptor/networkstatus/__init__.py     |    6 +
 .../networkstatus/directory_authority.py           |  250 ++++
 test/unit/descriptor/networkstatus/document_v2.py  |   32 +
 test/unit/descriptor/networkstatus/document_v3.py  |  799 ++++++++++++
 .../descriptor/networkstatus/key_certificate.py    |  189 +++
 test/unit/descriptor/router_status_entry.py        |  466 +++++++
 test/unit/descriptor/server_descriptor.py          |   79 +-
 27 files changed, 5156 insertions(+), 304 deletions(-)

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits