summaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/testdata
Commit message (Collapse)AuthorAgeFilesLines
* Add a little test coverage for pow-params parsing.Wesley Aptekar-Cassels2024-10-091-0/+18
| | | | | | | | Cover some of the novel edge cases we're introducing around object parameters and repetition. This still feels awfully ad-hoc, but it's better than nothing. Co-authored-by: Micah Elizabeth Scott <[email protected]>
* hs-pow: inner doc test using canned data from C tor.Wesley Aptekar-Cassels2024-10-091-0/+48
| | | | | | | | | | | This proliferates the canned hsdesc inner doc testing strategy, adding another file with data encoded with onion-pow-example running on C tor. Tests that it parses successfully, and asserts that the pow params line contents are correct. This is a positive test only. This strategy seems problematic, but it's better than nothing. Co-authored-by: Micah Elizabeth Scott <[email protected]>
* Make TAP keys optional when parsing documents.Nick Mathewson2024-06-272-0/+44
| | | | | This is the client-side part of phase 1 for proposal 350, which will eventually remove TAP completely from the Tor network.
* tor-netdoc: Test hsdescs inners with a variety of IPT countsIan Jackson2023-06-281-0/+47
|
* Add another test hsdesc to parse.Nick Mathewson2023-02-101-0/+223
| | | | | | | | | | | | | | | | | | | This one was generated (by dgoulet) using `ClientDescEncKey` encryption. Its information is: ``` Address: paozpdhgz2okvc6kgbxvh2bnfsmt4xergrtcl4obkhopyvwxkpjzvoad.onion Time period: 19397 Client: paozpdhgz2okvc6kgbxvh2bnfsmt4xergrtcl4obkhopyvwxkpjzvoad:descriptor:x25519:SDZNMD4RP4SCH4EYTTUZPFRZINNFWAOPPKZ6BINZAC7LREV24RBQ Service: descriptor:x25519:SACGOAEODFGCYY22NYZV45ZESFPFLDGLMBWFACKEO34XGHASSAMQ ```
* netdoc: Add an example onion service descriptor to test our parsing.Nick Mathewson2023-02-071-0/+223
| | | | | | | | | | I generated this using C tor (latest main) and a Chutney network about a week ago. The subcredential is: 78210A0D2C72BB7A0CAF606BCD938B9A3696894FDDDBC3B87D424753A7E3DF37 The HS_blind_id is: 43CC0D62FC6252F578705CA645A46109E265290343B1137E90189744B20B3F2D
* netdoc: Correct and test some tricky routerdesc errorsNick Mathewson2022-11-174-0/+216
| | | | These required hex-editing identity certificates :P
* Netdoc: use a different desc in tests.Nick Mathewson2022-11-171-30/+34
| | | | This is from Akka, which ahf runs.
* netdoc: test case for microdesc with no ed25519 id.Nick Mathewson2022-06-071-0/+8
| | | | | The "bad-id" microdescriptor is hand-edited based on one from a Chutney network.
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-2730-0/+1917
This will cause some pain for now, but now is really the best time to do this kind of thing.