aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dav/encoder.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/dav/encoder.rs b/src/dav/encoder.rs
index a16f498..9e907dc 100644
--- a/src/dav/encoder.rs
+++ b/src/dav/encoder.rs
@@ -959,4 +959,26 @@ mod tests {
assert_eq!(&got, expected, "\n---GOT---\n{got}\n---EXP---\n{expected}\n");
}
+
+
+ #[tokio::test]
+ async fn rfc_allprop_include() {
+ let got = serialize(
+ NoExtension { root: true },
+ &PropFind::AllProp(Some(Include(vec![
+ PropertyRequest::DisplayName,
+ PropertyRequest::ResourceType,
+ ]))),
+ ).await;
+
+ let expected = r#"<D:propfind xmlns:D="DAV:">
+ <D:allprop/>
+ <D:include>
+ <D:displayname/>
+ <D:resourcetype/>
+ </D:include>
+</D:propfind>"#;
+
+ assert_eq!(&got, expected, "\n---GOT---\n{got}\n---EXP---\n{expected}\n");
+ }
}