aboutsummaryrefslogtreecommitdiff
path: root/tests/rfc4791/7.8.10
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-04-18 02:15:04 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-04-18 02:15:04 +0200
commitf957a04f68bd87451ff36322ef6888e3ccb83799 (patch)
tree24251414a9fb5a6655273fbdaf9185a88c5d777f /tests/rfc4791/7.8.10
parentAllow compilation without sqlite3 module. (diff)
downloadcalp-f957a04f68bd87451ff36322ef6888e3ccb83799.tar.gz
calp-f957a04f68bd87451ff36322ef6888e3ccb83799.tar.xz
Import test cases from RFC 4791 (CalDAV).
Diffstat (limited to 'tests/rfc4791/7.8.10')
-rw-r--r--tests/rfc4791/7.8.10/request22
-rw-r--r--tests/rfc4791/7.8.10/response11
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/rfc4791/7.8.10/request b/tests/rfc4791/7.8.10/request
new file mode 100644
index 00000000..3fcea12d
--- /dev/null
+++ b/tests/rfc4791/7.8.10/request
@@ -0,0 +1,22 @@
+REPORT /bernard/work/ HTTP/1.1
+Host: cal.example.com
+Depth: 1
+Content-Type: application/xml; charset="utf-8"
+Content-Length: xxxx
+
+<?xml version="1.0" encoding="utf-8" ?>
+<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
+ <D:prop xmlns:D="DAV:">
+ <D:getetag/>
+ <C:calendar-data/>
+ </D:prop>
+ <C:filter>
+ <C:comp-filter name="VCALENDAR">
+ <C:comp-filter name="VEVENT">
+ <C:prop-filter name="X-ABC-GUID">
+ <C:text-match>ABC</C:text-match>
+ </C:prop-filter>
+ </C:comp-filter>
+ </C:comp-filter>
+ </C:filter>
+</C:calendar-query> \ No newline at end of file
diff --git a/tests/rfc4791/7.8.10/response b/tests/rfc4791/7.8.10/response
new file mode 100644
index 00000000..1ca4f47b
--- /dev/null
+++ b/tests/rfc4791/7.8.10/response
@@ -0,0 +1,11 @@
+HTTP/1.1 403 Forbidden
+Date: Sat, 11 Nov 2005 09:32:12 GMT
+Content-Type: application/xml; charset="utf-8"
+Content-Length: xxxx
+
+<?xml version="1.0" encoding="utf-8" ?>
+<D:error>
+ <C:supported-filter>
+ <C:prop-filter name="X-ABC-GUID"/>
+ </C:supported-filter>
+</D:error>