change to Proofs to rrset validation

This commit is contained in:
Benjamin Fry
2023-11-25 19:06:22 -08:00
parent 9fc8fa5bad
commit 1d2a1df0ee
4 changed files with 101 additions and 106 deletions

View File

@@ -640,16 +640,10 @@ pub mod testing {
assert!(response.is_err());
let error = response.unwrap_err();
use proto::error::{ProtoError, ProtoErrorKind};
let error_str = format!("{error}");
let name = Name::from_str("hickory-dns.org.").unwrap();
let expected_str = format!(
"{}",
ResolveError::from(ProtoError::from(ProtoErrorKind::RrsigsNotPresent {
name,
record_type: RecordType::A
}))
"proto error: failed to validate RRSIGs: Bogus: ds record should exist: {name}"
);
assert_eq!(error_str, expected_str);
if let ResolveErrorKind::Proto(_) = *error.kind() {