test include
This commit is contained in:
parent
0cadcbea98
commit
77e2f8abbb
1 changed files with 22 additions and 0 deletions
|
@ -959,4 +959,26 @@ mod tests {
|
||||||
|
|
||||||
assert_eq!(&got, expected, "\n---GOT---\n{got}\n---EXP---\n{expected}\n");
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue