Skip to main content

tor_netdoc/testdata2/
generated_consts.rs

1#![doc = include_str!("README.md")]
2//!
3//! Constants are the file contents from CI, with names converted to SHOUTING_SNAKE_CASE.
4//! TODO it would be nice if this data were more structured, like `testdata-live` is.
5
6/// `testdata2/cached-certs`
7pub const CACHED_CERTS: &str = include_str!("cached-certs");
8/// `testdata2/cached-certs--1`
9pub const CACHED_CERTS__1: &str = include_str!("cached-certs--1");
10/// `testdata2/cached-certs--2`
11pub const CACHED_CERTS__2: &str = include_str!("cached-certs--2");
12/// `testdata2/cached-certs--3`
13pub const CACHED_CERTS__3: &str = include_str!("cached-certs--3");
14/// `testdata2/cached-certs--4`
15pub const CACHED_CERTS__4: &str = include_str!("cached-certs--4");
16/// `testdata2/cached-consensus`
17pub const CACHED_CONSENSUS: &str = include_str!("cached-consensus");
18/// `testdata2/cached-descriptors.new`
19pub const CACHED_DESCRIPTORS_NEW: &str = include_str!("cached-descriptors.new");
20/// `testdata2/cached-extrainfo.new`
21pub const CACHED_EXTRAINFO_NEW: &str = include_str!("cached-extrainfo.new");
22/// `testdata2/cached-microdesc-consensus`
23pub const CACHED_MICRODESC_CONSENSUS: &str = include_str!("cached-microdesc-consensus");
24/// `testdata2/cached-microdescs.new`
25pub const CACHED_MICRODESCS_NEW: &str = include_str!("cached-microdescs.new");
26/// `testdata2/consensus-transparency-microdesc`
27pub const CONSENSUS_TRANSPARENCY_MICRODESC: &str = include_str!("consensus-transparency-microdesc");
28/// `testdata2/consensus-transparency-ns`
29pub const CONSENSUS_TRANSPARENCY_NS: &str = include_str!("consensus-transparency-ns");
30/// `testdata2/fingerprint`
31pub const FINGERPRINT: &str = include_str!("fingerprint");
32/// `testdata2/fingerprint-ed25519`
33pub const FINGERPRINT_ED25519: &str = include_str!("fingerprint-ed25519");
34/// `testdata2/key-pinning-journal`
35pub const KEY_PINNING_JOURNAL: &str = include_str!("key-pinning-journal");
36/// `testdata2/keys`
37pub mod keys {
38/// `testdata2/keys/authority_certificate`
39pub const AUTHORITY_CERTIFICATE: &str = include_str!("keys/authority_certificate");
40/// `testdata2/keys/authority_identity_key`
41pub const AUTHORITY_IDENTITY_KEY: &str = include_str!("keys/authority_identity_key");
42/// `testdata2/keys/authority_signing_key`
43pub const AUTHORITY_SIGNING_KEY: &str = include_str!("keys/authority_signing_key");
44/// `testdata2/keys/ed25519_master_id_public_key`
45pub const ED25519_MASTER_ID_PUBLIC_KEY: &[u8] = include_bytes!("keys/ed25519_master_id_public_key");
46/// `testdata2/keys/ed25519_master_id_secret_key`
47pub const ED25519_MASTER_ID_SECRET_KEY: &[u8] = include_bytes!("keys/ed25519_master_id_secret_key");
48/// `testdata2/keys/ed25519_signing_cert`
49pub const ED25519_SIGNING_CERT: &[u8] = include_bytes!("keys/ed25519_signing_cert");
50/// `testdata2/keys/ed25519_signing_secret_key`
51pub const ED25519_SIGNING_SECRET_KEY: &[u8] = include_bytes!("keys/ed25519_signing_secret_key");
52/// `testdata2/keys/secret_id_key`
53pub const SECRET_ID_KEY: &str = include_str!("keys/secret_id_key");
54/// `testdata2/keys/secret_onion_key`
55pub const SECRET_ONION_KEY: &str = include_str!("keys/secret_onion_key");
56/// `testdata2/keys/secret_onion_key_ntor`
57pub const SECRET_ONION_KEY_NTOR: &[u8] = include_bytes!("keys/secret_onion_key_ntor");
58}
59/// `testdata2/router-stability`
60pub const ROUTER_STABILITY: &str = include_str!("router-stability");
61/// `testdata2/sr-state`
62pub const SR_STATE: &str = include_str!("sr-state");
63/// `testdata2/state`
64pub const STATE: &str = include_str!("state");
65/// `testdata2/torrc`
66pub const TORRC: &str = include_str!("torrc");
67/// `testdata2/v3-status-votes`
68pub const V3_STATUS_VOTES: &str = include_str!("v3-status-votes");
69/// `testdata2/v3-status-votes--1`
70pub const V3_STATUS_VOTES__1: &str = include_str!("v3-status-votes--1");
71/// `testdata2/v3-status-votes--2`
72pub const V3_STATUS_VOTES__2: &str = include_str!("v3-status-votes--2");
73/// `testdata2/v3-status-votes--3`
74pub const V3_STATUS_VOTES__3: &str = include_str!("v3-status-votes--3");
75/// `testdata2/v3-status-votes--4`
76pub const V3_STATUS_VOTES__4: &str = include_str!("v3-status-votes--4");