mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Real regression testing, using parts of the framework developed earlier.
This commit is contained in:
1 parent
a4196cedd0
commit
99719ddbfc
29 files changed
+502
-17
No files matched your search
@@ -2,6 +2,8 @@
|
||||
# After creating a calendar in Mulberry, we should be able
|
||||
# to do a PROPFIND and discover it.
|
||||
TYPE=PROPFIND
|
||||
URL=http://mycaldav/caldav.php/andrew/
|
||||
URL=http://mycaldav/caldav.php/
|
||||
HEADER=Depth: 1
|
||||
HEADER=Content-Type: text/xml; charset=utf-8
|
||||
HEADER=Content-Type: text/xml; charset=utf-8
|
||||
HEAD
|
||||
VERBOSE
|
||||
@@ -0,0 +1,2 @@
|
||||
diffs
|
||||
results
|
||||
@@ -0,0 +1,8 @@
|
||||
HTTP/1.1 200 OK
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Server: Apache/2.2.3 (Debian) DAV/2
|
||||
Content-length: 0
|
||||
Allow: OPTIONS, GET, PUT, DELETE, PROPFIND, REPORT, MKCALENDAR, MKCOL
|
||||
DAV: 1, 2, access-control, calendar-access
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# Do an initial OPTIONS request
|
||||
TYPE=OPTIONS
|
||||
URL=http://mycaldav/caldav.php/
|
||||
HEAD
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<D:propfind xmlns:D="DAV:">
|
||||
<D:prop>
|
||||
<D:getcontentlength/>
|
||||
<D:getcontenttype/>
|
||||
<D:resourcetype/>
|
||||
</D:prop>
|
||||
</D:propfind>
|
||||
@@ -0,0 +1,153 @@
|
||||
HTTP/1.1 207 Multi-Status
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Server: Apache/2.2.3 (Debian) DAV/2
|
||||
ETag: "1e91289a2ef6640fadb7d5c9e6c5ebbb"
|
||||
Content-Length: 3214
|
||||
Content-Type: text/xml;charset=UTF-8
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<multistatus xmlns="DAV:">
|
||||
<response>
|
||||
<href>/caldav.php/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/admin/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/andrew/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user2/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/manager1/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/assistant1/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/resource1/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/resource2/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/resmgr1/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/teamclient1/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
</multistatus>
|
||||
@@ -0,0 +1,8 @@
|
||||
#
|
||||
# After creating a calendar in Mulberry, we should be able
|
||||
# to do a PROPFIND and discover it.
|
||||
TYPE=PROPFIND
|
||||
URL=http://mycaldav/caldav.php/
|
||||
HEADER=Depth: 1
|
||||
HEADER=Content-Type: text/xml; charset=utf-8
|
||||
HEAD
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<D:propfind xmlns:D="DAV:">
|
||||
<D:prop>
|
||||
<D:getcontentlength/>
|
||||
<D:getcontenttype/>
|
||||
<D:resourcetype/>
|
||||
</D:prop>
|
||||
</D:propfind>
|
||||
@@ -0,0 +1,23 @@
|
||||
HTTP/1.1 207 Multi-Status
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Server: Apache/2.2.3 (Debian) DAV/2
|
||||
ETag: "137b55c4b6461331a0d3e7b89d5b71b0"
|
||||
Content-Length: 365
|
||||
Content-Type: text/xml;charset=UTF-8
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<multistatus xmlns="DAV:">
|
||||
<response>
|
||||
<href>/caldav.php/user1/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
</multistatus>
|
||||
@@ -0,0 +1,8 @@
|
||||
#
|
||||
# Before creating a calendar in Mulberry, we should be able
|
||||
# to do a PROPFIND and it should not be there.
|
||||
TYPE=PROPFIND
|
||||
URL=http://mycaldav/caldav.php/user1/
|
||||
HEADER=Depth: 1
|
||||
HEADER=Content-Type: text/xml; charset=utf-8
|
||||
HEAD
|
||||
@@ -0,0 +1,6 @@
|
||||
HTTP/1.1 200 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Server: Apache/2.2.3 (Debian) DAV/2
|
||||
Content-Length: 0
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
#
|
||||
# So we should now make a calendar that we will use for some
|
||||
# testing.
|
||||
TYPE=MKCALENDAR
|
||||
URL=http://mycaldav/caldav.php/user1/home/
|
||||
HEAD
|
||||
@@ -0,0 +1,37 @@
|
||||
HTTP/1.1 207 Multi-Status
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Server: Apache/2.2.3 (Debian) DAV/2
|
||||
ETag: "e898d6c4a9951794a9f7147f432570d0"
|
||||
Content-Length: 708
|
||||
Content-Type: text/xml;charset=UTF-8
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<multistatus xmlns="DAV:">
|
||||
<response>
|
||||
<href>/caldav.php/user1/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user1/home/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
|
||||
</resourcetype>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
</multistatus>
|
||||
@@ -0,0 +1,10 @@
|
||||
#
|
||||
# Before creating a calendar in Mulberry, we should be able
|
||||
# to do a PROPFIND and it should not be there.
|
||||
TYPE=PROPFIND
|
||||
URL=http://mycaldav/caldav.php/user1/
|
||||
HEADER=Depth: 1
|
||||
HEADER=Content-Type: text/xml; charset=utf-8
|
||||
HEAD
|
||||
# We re-use the data from the PROPFIND request before we made the calendar
|
||||
DATA=003-Mulberry-1
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<D:propfind xmlns:D="DAV:">
|
||||
<D:prop>
|
||||
<D:getcontentlength/>
|
||||
<D:getcontenttype/>
|
||||
<D:resourcetype/>
|
||||
<D:getetag/>
|
||||
</D:prop>
|
||||
</D:propfind>
|
||||
@@ -0,0 +1,25 @@
|
||||
HTTP/1.1 207 Multi-Status
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Server: Apache/2.2.3 (Debian) DAV/2
|
||||
ETag: "37e795bc0198358d27e006b91dc75aa7"
|
||||
Content-Length: 483
|
||||
Content-Type: text/xml;charset=UTF-8
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<multistatus xmlns="DAV:">
|
||||
<response>
|
||||
<href>/caldav.php/user1/home/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getcontentlength/>
|
||||
<getcontenttype>httpd/unix-directory</getcontenttype>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
|
||||
</resourcetype>
|
||||
<getetag>"faf25336de0e470a54075c14cbcf5272"</getetag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
</multistatus>
|
||||
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# After creating the calendar we should be able to get any URLs
|
||||
TYPE=PROPFIND
|
||||
URL=http://mycaldav/caldav.php/user1/home/
|
||||
HEADER=Depth: 1
|
||||
HEADER=Content-Type: text/xml; charset=utf-8
|
||||
HEAD
|
||||
@@ -0,0 +1,6 @@
|
||||
HTTP/1.1 412 Calendar Already Exists
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Server: Apache/2.2.3 (Debian) DAV/2
|
||||
Content-Length: 0
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
#
|
||||
# So we should now make a calendar that we will use for some
|
||||
# testing.
|
||||
TYPE=MKCALENDAR
|
||||
URL=http://mycaldav/caldav.php/user1/home/
|
||||
HEAD
|
||||
@@ -0,0 +1,7 @@
|
||||
HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Server: Apache/2.2.3 (Debian) DAV/2
|
||||
ETag: "b000d7defa19ccb7cd21e546b54155ee"
|
||||
Content-length: 0
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# We now have a calendar so we can PUT an event into it...
|
||||
TYPE=PUT
|
||||
URL=http://mycaldav/caldav.php/user1/home/F56B49B10FC923D20FE2DC92D6580340-0.ics
|
||||
HEADER=Content-Type: text/calendar; charset=utf-8
|
||||
HEAD
|
||||
DATA=F56B49B10FC923D20FE2DC92D6580340-0.ics
|
||||
@@ -0,0 +1,7 @@
|
||||
HTTP/1.1 201 Replaced
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Server: Apache/2.2.3 (Debian) DAV/2
|
||||
ETag: "b000d7defa19ccb7cd21e546b54155ee"
|
||||
Content-length: 0
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# We now have a calendar so we can PUT an event into it...
|
||||
TYPE=PUT
|
||||
URL=http://mycaldav/caldav.php/user1/home/F56B49B10FC923D20FE2DC92D6580340-0.ics
|
||||
HEADER=Content-Type: text/calendar; charset=utf-8
|
||||
HEAD
|
||||
DATA=F56B49B10FC923D20FE2DC92D6580340-0.ics
|
||||
@@ -0,0 +1,32 @@
|
||||
BEGIN:VCALENDAR
|
||||
CALSCALE:GREGORIAN
|
||||
PRODID:-//mulberrymail.com//Mulberry v4.0//EN
|
||||
VERSION:2.0
|
||||
X-WR-CALNAME:home
|
||||
BEGIN:VTIMEZONE
|
||||
LAST-MODIFIED:20040110T032845Z
|
||||
TZID:New Zealand Standard Time
|
||||
X-LIC-LOCATION:Pacific/Auckland
|
||||
BEGIN:DAYLIGHT
|
||||
DTSTART:20000404T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
|
||||
TZNAME:NZDT
|
||||
TZOFFSETFROM:+1200
|
||||
TZOFFSETTO:+1300
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
DTSTART:20001026T020000
|
||||
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=10
|
||||
TZNAME:NZST
|
||||
TZOFFSETFROM:+1300
|
||||
TZOFFSETTO:+1200
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
DTSTAMP:20061025T101327Z
|
||||
DTSTART;TZID=New Zealand Standard Time:20061025T091500
|
||||
DURATION:PT1H
|
||||
SUMMARY:A first event
|
||||
UID:B18CBB57295D01D7661A6DD4@D76FAF7B10D9E8D2D41F779C
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
Reference in new issue
Block a user