Files
nxdns/tests/fixtures/fixtures.zig
T

15 lines
792 B
Zig

//! Test fixtures embedded as a separate module so `@embedFile` paths stay
//! inside this directory (a module root may not embed files above itself).
//! See tests/fixtures/README.md — the private key is not a secret.
pub const cert_pem: [:0]const u8 = @embedFile("self_signed_cert.pem");
pub const key_pem: [:0]const u8 = @embedFile("self_signed_key.pem");
/// A well-formed private key that does not belong to `cert_pem`.
pub const mismatched_key_pem: [:0]const u8 = @embedFile("mismatched_key.pem");
/// A second, distinct self-signed pair (same profile as the first) so
/// certificate-reload tests can swap between two valid identities.
pub const cert2_pem: [:0]const u8 = @embedFile("self_signed_cert2.pem");
pub const key2_pem: [:0]const u8 = @embedFile("self_signed_key2.pem");