[CalendarServer-changes] [14807] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Tue May 19 20:15:34 PDT 2015
Revision: 14807
http://trac.calendarserver.org//changeset/14807
Author: sagen at apple.com
Date: 2015-05-19 20:15:33 -0700 (Tue, 19 May 2015)
Log Message:
-----------
Starting a new trash test-suite
Added Paths:
-----------
CalDAVTester/trunk/Resource/CalDAV/trash/
CalDAVTester/trunk/Resource/CalDAV/trash/1.txt
CalDAVTester/trunk/scripts/tests/CalDAV/trash.xml
Added: CalDAVTester/trunk/Resource/CalDAV/trash/1.txt
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/trash/1.txt (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/trash/1.txt 2015-05-20 03:15:33 UTC (rev 14807)
@@ -0,0 +1,32 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+BEGIN:VTIMEZONE
+LAST-MODIFIED:20040110T032845Z
+TZID:US/Eastern
+BEGIN:DAYLIGHT
+DTSTART:20000404T020000
+RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
+TZNAME:EDT
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0400
+END:DAYLIGHT
+BEGIN:STANDARD
+DTSTART:20001026T020000
+RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
+TZNAME:EST
+TZOFFSETFROM:-0400
+TZOFFSETTO:-0500
+END:STANDARD
+END:VTIMEZONE
+BEGIN:VEVENT
+DTSTAMP:20051222T205953Z
+CREATED:20060101T150000Z
+DTSTART;TZID=US/Eastern:$now.year.1:0101T100000
+DURATION:PT1H
+SUMMARY:event 1
+UID:54E181BC7CCC373042B28842 at ninevah.local
+CATEGORIES:cool
+END:VEVENT
+END:VCALENDAR
Added: CalDAVTester/trunk/scripts/tests/CalDAV/trash.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/trash.xml (rev 0)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/trash.xml 2015-05-20 03:15:33 UTC (rev 14807)
@@ -0,0 +1,89 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2015 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest ignore-all="no">
+ <description>Test trash-collection support on the server</description>
+
+ <require-feature>
+ <feature>caldav</feature>
+ <feature>trash-collection</feature>
+ </require-feature>
+
+ <start/>
+
+ <test-suite name='Trash recovery'>
+ <test name='1'>
+ <description>PUT an event</description>
+ <request>
+ <method>MKCALENDAR</method>
+ <ruri>$calendarhome1:/tobedeleted/</ruri>
+ </request>
+ <request>
+ <method>PUT</method>
+ <ruri>$calendarhome1:/tobedeleted/1.ics</ruri>
+ <data>
+ <content-type>text/calendar; charset=utf-8</content-type>
+ <filepath>Resource/CalDAV/trash/1.txt</filepath>
+ </data>
+ </request>
+ <request>
+ <method>DELETE</method>
+ <ruri>$calendarhome1:/tobedeleted/1.ics</ruri>
+ </request>
+ <request>
+ <method>GET</method>
+ <ruri>$calendarhome1:/tobedeleted/1.ics</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ <arg>
+ <name>status</name>
+ <value>404</value>
+ </arg>
+ </verify>
+ </request>
+ <request>
+ <method>POST</method>
+ <ruri>$calendarhome1:/?action=recovertrash&mode=event&id=all</ruri>
+ </request>
+ <request>
+ <method>GETNEW</method>
+ <ruri>$calendarhome1:/tobedeleted/</ruri>
+ <verify>
+ <callback>calendarDataMatch</callback>
+ <arg>
+ <name>filepath</name>
+ <value>Resource/CalDAV/trash/1.txt</value>
+ </arg>
+ </verify>
+ </request>
+ <request>
+ <method>DELETEALL</method>
+ <ruri>$calendarhome1:/tobedeleted/</ruri>
+ </request>
+ <request>
+ <method>DELETE</method>
+ <ruri>$calendarhome1:/tobedeleted/</ruri>
+ </request>
+ </test>
+ </test-suite>
+
+ <end/>
+
+</caldavtest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150519/e8b8b581/attachment-0001.html>
More information about the calendarserver-changes
mailing list