Skip to content

Commit

Permalink
add tests for http message components
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Jan 11, 2024
1 parent b2a95ce commit a6bc985
Show file tree
Hide file tree
Showing 6 changed files with 482 additions and 291 deletions.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
mod crypto;
mod message_component;
mod signature_base;
mod signature_params;
mod trace;
mod util;

use crate::{
crypto::{PublicKey, SecretKey, SigningKey, VerifyingKey},
Expand Down Expand Up @@ -29,7 +32,7 @@ MCowBQYDK2VwAyEAJrQLj5P/89iXES9+vFgrIy29clF9CC/oPPsw3c5D0bs=
"@signature-params": ("date" "@method" "@path" "@authority" "content-type" "content-length");created=1618884473;keyid="test-key-ed25519""##;
const SIGNATURE_VALUE: &str =
"wqcAqbmYJ2ji2glfAMaRy4gruYYnx2nEFN2HN6jrnDnQCK1u02Gb04v9EDgwUPiu4A0w6vuQv5lIp5WPpBKRCw==";
const SIGNATURE_RESULT: &str = r##"Signature-Input: sig-b26=("date" "@method" "@path" "@authority" \
const _SIGNATURE_RESULT: &str = r##"Signature-Input: sig-b26=("date" "@method" "@path" "@authority" \
"content-type" "content-length");created=1618884473\
;keyid="test-key-ed25519"
Signature: sig-b26=:wqcAqbmYJ2ji2glfAMaRy4gruYYnx2nEFN2HN6jrnDnQCK1\
Expand Down
Loading

0 comments on commit a6bc985

Please sign in to comment.