Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: refresh LE real world verification test case, more logging #71

Merged
merged 2 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rustls-platform-verifier/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ pub fn assert_cert_error_eq<E: StdError + PartialEq + 'static>(
/// we know the test certificates are valid. This must be updated if the mock certificates
/// are regenerated.
pub(crate) fn verification_time() -> pki_types::UnixTime {
// Wednesday, January 3, 2024 6:03:08 PM UTC
pki_types::UnixTime::since_unix_epoch(Duration::from_secs(1_704_304_988))
// Monday, March 11, 2024 8:30:25 PM UTC
pki_types::UnixTime::since_unix_epoch(Duration::from_secs(1_710_189_025))
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ macro_rules! no_error {
}

fn real_world_test<E: std::error::Error>(test_case: &TestCase<E>) {
log::info!("verifying {:?}", test_case.expected_result);
log::info!(
"verifying ref ID {:?} expected {:?}",
test_case.reference_id,
test_case.expected_result
);

// On BSD systems openssl-probe fails to find the system CA bundle,
// so we must provide extra roots from webpki-roots.
Expand Down
Loading