[metrics-team] descriptor test data
Karsten Loesing
karsten at torproject.org
Thu Dec 24 11:31:26 UTC 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 21/12/15 16:23, tl wrote:
> Hi,
>
> does anyone by any chance know of or has access to some (probably
> fake) sample descriptors that implement all of the attributes
> defined by the spec?
>
> I’m developing a converter from CollecTor to JSON and testing is
> quite tedious with the often very sparsely populated genuine
> descriptors available through CollecTor.
>
> Im specifically looking for examples of
>
> server-descriptor bridge-server-descriptor extra-info
> bridge-extra-info network-status-vote-3 network-status-consensus-3
> bridge-network-status torperf tordnsel
No, but I have two ideas:
1. If you want samples, just take all the November tarballs available
on CollecTor. That reduces the total data to around 1/12. Of course,
if size doesn't matter, just take all the tarballs available on CollecTor.
2. Help us extend metrics-lib to not only parse descriptors but to
also generate and format descriptors. I could imagine adding a
DescriptorGenerator that produces Descriptor subtypes with freshly
generated crypto keys, possibly with an option to pass a random seed
for extra reproducibility. And we could add a DescriptorFormatter
that converts Descriptor subtype instances. That would be very useful
for writing unit tests in other applications that use metrics-lib,
including Onionoo. However, this is a major effort, with nobody being
available to spend that effort right now.
All the best,
Karsten
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iQEcBAEBAgAGBQJWe9eOAAoJEJD5dJfVqbCrHYUH/0+ypcyJE/tAmt2UL+fuYvbl
4yTa4vuJU/tXXF9crWwGi/KcMIKiSk/CKKzXM5UTSErfz+drBsduE+ys2MsENNX9
/S8RWsIBGjyw1ih/su/OhbgOLkx99egA402akYZj0+PEs9YfVSHesJq89Tx8a0ik
z7uzWzXA0eHLhXlHNnd4hwwdMYwRo4vJlhePP8NoEyuO3lWUw7hxRGVVUFf+YDdZ
26o7xmGbwnrkGfBsXVCByKDSoRQbbipzjfS1KR5Kc3EXcMnlnP6YjNsp4WVDU4BP
Iyya/YkLBQx9cWgOK3RygxvrL7pRpfcqaXZoGVIUIdHLgdBqFKOmEpXIVFM5GzQ=
=mlku
-----END PGP SIGNATURE-----
More information about the metrics-team
mailing list