From ac528d215646b1d82799fafc4211ade3558074ff Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sun, 26 May 2024 11:07:24 +0200 Subject: test fetching pending VTODOs --- aerogramme/tests/behavior.rs | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'aerogramme') diff --git a/aerogramme/tests/behavior.rs b/aerogramme/tests/behavior.rs index ef58182..7b93d51 100644 --- a/aerogramme/tests/behavior.rs +++ b/aerogramme/tests/behavior.rs @@ -917,7 +917,43 @@ fn rfc4791_webdav_caldav() { ); // 7.8.9. Example: Retrieval of All Pending To-Dos - // @TODO + let cal_query = r#" + + + + + + + + + + + + + CANCELLED + + + + + "#; + let resp = http + .request( + reqwest::Method::from_bytes(b"REPORT")?, + "http://localhost:8087/alice/calendar/Personal/", + ) + .body(cal_query) + .send()?; + assert_eq!(resp.status(), 207); + let multistatus = dav_deserialize::>(&resp.text()?); + assert_eq!(multistatus.responses.len(), 1); + check_cal( + &multistatus, + ( + "/alice/calendar/Personal/rfc6.ics", + Some(obj6_etag.to_str().expect("etag header convertible to str")), + Some(ICAL_RFC6), + ), + ); // --- REPORT calendar-query, with calendar-data tx --- //@FIXME add support for calendar-data... -- cgit v1.2.3