mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-14 08:10:13 +00:00
Make the tests more interesting by using ctag
This commit is contained in:
parent
deb743fdcf
commit
12565cb6bd
@ -1,406 +1,282 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<multistatus xmlns="DAV:">
|
||||
<multistatus xmlns="DAV:" xmlns:C="http://calendarserver.org/ns/">
|
||||
<response>
|
||||
<href>/caldav.php/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag/>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"e2844dd8af3d725bf3bc60f5ffb271de"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/home/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"7e1c9a5e005cb3192ef305837033e271"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/addresses/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"24c9e15e52afc47c225b757e7bee1f9d"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/created/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"bac273dae96780a3c8ed0c032266322c"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/.in/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"a8dfd49637017ded49d3a8dbb315c51f"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/.out/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"1"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/6E20BB7C-EFD9-4F0F-9BDC-5335E04D47E0/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"ac192d10783fff90598af2facc8259df"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/VTODO-EFD9-4F0F-9BDC-5335E04D47E0/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"9ea60de39e80e2cff4216448984a5ee7"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/SOHO%20collection/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"ef070277779ceec24677ad0a7e54e0af"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/collection/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"e0fcc6a901645df3e00a290dc8a02387"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/anotherone/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"d28a7507a92f6f6b368c87a65808155e"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user4/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"b3be0ab4edeb183646203b994f8d6869"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user4/user2/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"b644b2983f30cb7ae5ab28db464b601e"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user4/user1/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"7e1c9a5e005cb3192ef305837033e271"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user4/home/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"bef9dce8ea6e7a3f286f644b9680db9e"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user4/addresses/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"3f02ebe3d7929b091e3d8ccfde2f3bc6"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user4/nz_holidays/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"ebeec1c6ec8a3b619af611adbced5ca9"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user4/us_holidays/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"5a8c44444986c4726b7ea9af4e654cc2"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user4/.out/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"1"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user4/base/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"ae93907cb03bc025b8e733eb61f3a09e"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user4/calendar-proxy-read/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"ce203d86180ffe895ef680221aa4050c"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user4/calendar-proxy-write/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"31965770b06ebd0def7b1afe08ba2a39"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/resource1/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"c8ebc60237eb353a52e7278c96e50a74"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/resource1/home/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"38acb5a3ae5617edc98ddce6f5ffaa38"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/resource1/addresses/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"0f01ceea381503f677cedeea5758c902"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/resource1/mozilla/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"3d7629c721375907f4cf757fedc2293d"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/resource2/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"22a1e83f9f1b185fee3c792c15015af0"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/resource2/home/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"699c4f2bdb1bc22c2175ea779fd97479"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/resource2/addresses/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"dc821452bd61ee969b231eab2f4aa761"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/resource2/mulberry/</href>
|
||||
<propstat>
|
||||
<prop/>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag/>
|
||||
<C:getctag>"dd73d59d29f256fa22836cde6d629ffd"</C:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
</multistatus>
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
#
|
||||
# PROPFIND to find the collections user4 has access to
|
||||
# - no etag returned
|
||||
# - 404 for resources user4 doesn't have access to
|
||||
# - ctag returned
|
||||
#
|
||||
TYPE=PROPFIND
|
||||
URL=http://regression.host/caldav.php
|
||||
@ -14,9 +13,9 @@ HEADER=Depth: 2
|
||||
|
||||
BEGINDATA
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<D:propfind xmlns:D="DAV:">
|
||||
<D:propfind xmlns:D="DAV:" xmlns:cs="http://calendarserver.org/ns/">
|
||||
<D:prop>
|
||||
<D:getetag/>
|
||||
<cs:getctag/>
|
||||
</D:prop>
|
||||
</D:propfind>
|
||||
ENDDATA
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
#
|
||||
# PROPFIND to find the collections user4 has access to, anchored to user4
|
||||
# - etag returned
|
||||
# - ctag returned
|
||||
#
|
||||
TYPE=PROPFIND
|
||||
URL=http://regression.host/caldav.php/user4
|
||||
@ -13,9 +13,9 @@ HEADER=Depth: 2
|
||||
|
||||
BEGINDATA
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<D:propfind xmlns:D="DAV:">
|
||||
<D:propfind xmlns:D="DAV:" xmlns:cs="http://calendarserver.org/ns/">
|
||||
<D:prop>
|
||||
<D:getetag/>
|
||||
<cs:getctag/>
|
||||
</D:prop>
|
||||
</D:propfind>
|
||||
ENDDATA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user