successful multistatus decoding test

This commit is contained in:
Quentin 2024-03-07 09:49:09 +01:00
parent 5e71a7d848
commit db115ca247
Signed by: quentin
GPG key ID: E9602264D639FF68

View file

@ -811,16 +811,52 @@ mod tests {
let mut rdr = Reader::new(NsReader::from_reader(src.as_bytes())).await.unwrap(); let mut rdr = Reader::new(NsReader::from_reader(src.as_bytes())).await.unwrap();
let got = rdr.find::<Multistatus::<Core, PropName<Core>>>().await.unwrap(); let got = rdr.find::<Multistatus::<Core, PropName<Core>>>().await.unwrap();
/*assert_eq!(got, Multistatus { assert_eq!(got, Multistatus {
responses: vec![ responses: vec![
Response { Response {
status_or_propstat: status_or_propstat: StatusOrPropstat::PropStat(
Href("http://www.example.com/container/".into()),
vec![PropStat {
prop: PropName(vec![
PropertyRequest::CreationDate,
PropertyRequest::DisplayName,
PropertyRequest::ResourceType,
PropertyRequest::SupportedLock,
]),
status: Status(http::status::StatusCode::OK),
error: None,
responsedescription: None,
}],
),
error: None,
responsedescription: None,
location: None,
},
Response {
status_or_propstat: StatusOrPropstat::PropStat(
Href("http://www.example.com/container/front.html".into()),
vec![PropStat {
prop: PropName(vec![
PropertyRequest::CreationDate,
PropertyRequest::DisplayName,
PropertyRequest::GetContentLength,
PropertyRequest::GetContentType,
PropertyRequest::GetEtag,
PropertyRequest::GetLastModified,
PropertyRequest::ResourceType,
PropertyRequest::SupportedLock,
]),
status: Status(http::status::StatusCode::OK),
error: None,
responsedescription: None,
}],
),
error: None,
responsedescription: None,
location: None,
}, },
Response {},
], ],
responsedescription: None, responsedescription: None,
});*/ });
} }
} }