[CalendarServer-changes] [10149] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Mon Dec 10 14:17:10 PST 2012


Revision: 10149
          http://trac.calendarserver.org//changeset/10149
Author:   cdaboo at apple.com
Date:     2012-12-10 14:17:10 -0800 (Mon, 10 Dec 2012)
Log Message:
-----------
Tests for managed attachment and recurrences and quota.

Added Paths:
-----------
    CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/
    CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/1.xml
    CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/2.ics
    CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/3.txt
    CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/4.txt
    CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/
    CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/1.ics
    CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/2.txt
    CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/3.txt
    CalDAVTester/trunk/scripts/tests/CalDAV/managed-attachments-quota.xml
    CalDAVTester/trunk/scripts/tests/CalDAV/managed-attachments-recurrence.xml

Added: CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/1.xml
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/1.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/1.xml	2012-12-10 22:17:10 UTC (rev 10149)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:">
+<D:prop>
+<D:resourcetype/>
+<D:quota-available-bytes/>
+<D:quota-used-bytes/>
+</D:prop>
+</D:propfind>

Added: CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/2.ics
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/2.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/2.ics	2012-12-10 22:17:10 UTC (rev 10149)
@@ -0,0 +1,11 @@
+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//Example Inc.//Example Calendar//EN
+BEGIN:VEVENT
+UID:put-1 at example.com
+DTSTART:$now.year.1:0101T120000Z
+DURATION:P1DT
+DTSTAMP:20051222T205953Z
+SUMMARY:event 1
+END:VEVENT
+END:VCALENDAR

Added: CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/3.txt
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/3.txt	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/3.txt	2012-12-10 22:17:10 UTC (rev 10149)
@@ -0,0 +1,3 @@
+This is a text file being used
+as a test of managed attachment
+support in calendarserver.

Added: CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/4.txt
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/4.txt	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/managedattachments/quota/4.txt	2012-12-10 22:17:10 UTC (rev 10149)
@@ -0,0 +1,4 @@
+This is a text file being used
+as a test of managed attachment
+support in calendarserver.
+It has been updated.

Added: CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/1.ics
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/1.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/1.ics	2012-12-10 22:17:10 UTC (rev 10149)
@@ -0,0 +1,20 @@
+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//Example Inc.//Example Calendar//EN
+BEGIN:VEVENT
+UID:put-1 at example.com
+DTSTART:$now.year.1:0101T120000Z
+DURATION:P1DT
+DTSTAMP:20051222T205953Z
+RRULE:FREQ=DAILY
+SUMMARY:event 1
+END:VEVENT
+BEGIN:VEVENT
+UID:put-1 at example.com
+RECURRENCE-ID:$now.year.1:0102T120000Z
+DTSTART:$now.year.1:0102T130000Z
+DURATION:P1DT
+DTSTAMP:20051222T205953Z
+SUMMARY:event 1
+END:VEVENT
+END:VCALENDAR

Added: CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/2.txt
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/2.txt	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/2.txt	2012-12-10 22:17:10 UTC (rev 10149)
@@ -0,0 +1,3 @@
+This is a text file being used
+as a test of managed attachment
+support in calendarserver.

Added: CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/3.txt
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/3.txt	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/managedattachments/recurrence/3.txt	2012-12-10 22:17:10 UTC (rev 10149)
@@ -0,0 +1,4 @@
+This is a text file being used
+as a test of managed attachment
+support in calendarserver.
+It has been updated.

Added: CalDAVTester/trunk/scripts/tests/CalDAV/managed-attachments-quota.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/managed-attachments-quota.xml	                        (rev 0)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/managed-attachments-quota.xml	2012-12-10 22:17:10 UTC (rev 10149)
@@ -0,0 +1,278 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2012 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>
+	<description>Test managed attachments and quota</description>
+
+	<require-feature>
+		<feature>caldav</feature>
+		<feature>managed-attachments</feature>
+		<feature>prefer-representation</feature>
+		<feature>quota</feature>
+	</require-feature>
+
+	<start/>
+	
+	<test-suite name='Simple non-recurring, non-scheduled add attachment no prefer'>
+		<test name='1' ignore='no'>
+			<description>Quota check</description>
+			<request print-response='no'>
+				<exclude-feature>
+					<feature>quota-on-resources</feature>
+				</exclude-feature>
+				<method>PROPFIND</method>
+				<ruri>$calendarhome1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/managedattachments/quota/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>{DAV:}resourcetype</value>
+						<value>{DAV:}quota-available-bytes</value>
+						<value>{DAV:}quota-used-bytes$0</value>
+					</arg>
+				</verify>
+				<grabelement>
+					<name>$verify-property-prefix:/{DAV:}quota-used-bytes</name>
+					<variable>$quota1:</variable>
+				</grabelement>
+			</request>
+		</test>
+		<test name='2' ignore='no'>
+			<description>PUT event</description>
+			<request end-delete='no'>
+				<method>PUT</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/managedattachments/quota/2.ics</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='3' ignore='no'>
+			<description>Quota check</description>
+			<request print-response='no'>
+				<exclude-feature>
+					<feature>quota-on-resources</feature>
+				</exclude-feature>
+				<method>PROPFIND</method>
+				<ruri>$calendarhome1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/managedattachments/quota/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>{DAV:}resourcetype</value>
+						<value>{DAV:}quota-available-bytes</value>
+						<value>{DAV:}quota-used-bytes$$quota1:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='4' ignore='no'>
+			<description>Add attachment</description>
+			<request>
+				<method>POST</method>
+				<ruri>$calendarpath1:/1.ics?action=attachment-add</ruri>
+				<header>
+					<name>Content-Disposition</name>
+					<value>attachment;filename=test.txt</value>
+				</header>
+				<header>
+					<name>Prefer</name>
+					<value>return-representation</value>
+				</header>
+				<data>
+					<content-type>text/plain</content-type>
+					<filepath>Resource/CalDAV/managedattachments/quota/3.txt</filepath>
+				</data>
+				<verify>
+					<callback>dataString</callback>
+					<arg>
+						<name>unwrap</name>
+						<value/>
+					</arg>
+					<arg>
+						<name>contains</name>
+						<value>ATTACH</value>
+					</arg>
+				</verify>
+				<grabheader>
+					<name>Cal-Managed-ID</name>
+					<variable>$managed-id:</variable>
+				</grabheader>
+			</request>
+		</test>
+		<test name='5' ignore='no'>
+			<description>Quota check</description>
+			<request print-response='no'>
+				<exclude-feature>
+					<feature>quota-on-resources</feature>
+				</exclude-feature>
+				<method>PROPFIND</method>
+				<ruri>$calendarhome1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/managedattachments/quota/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>{DAV:}resourcetype</value>
+						<value>{DAV:}quota-available-bytes</value>
+						<value>{DAV:}quota-used-bytes!$quota1:</value>
+					</arg>
+				</verify>
+				<grabelement>
+					<name>$verify-property-prefix:/{DAV:}quota-used-bytes</name>
+					<variable>$quota2:</variable>
+				</grabelement>
+			</request>
+		</test>
+		<test name='6' ignore='no'>
+			<description>Update attachment</description>
+			<request>
+				<method>POST</method>
+				<ruri>$calendarpath1:/1.ics?action=attachment-update&amp;managed-id=$managed-id:</ruri>
+				<header>
+					<name>Content-Disposition</name>
+					<value>attachment;filename=test2.txt</value>
+				</header>
+				<header>
+					<name>Prefer</name>
+					<value>return-representation</value>
+				</header>
+				<data>
+					<content-type>text/plain</content-type>
+					<filepath>Resource/CalDAV/managedattachments/quota/4.txt</filepath>
+				</data>
+				<verify>
+					<callback>dataString</callback>
+					<arg>
+						<name>unwrap</name>
+						<value/>
+					</arg>
+					<arg>
+						<name>contains</name>
+						<value>ATTACH</value>
+						<value>;FILENAME=test2.txt</value>
+						<value>;FMTTYPE=text/plain</value>
+						<value>;SIZE=</value>
+						<value>;MTAG=</value>
+						<value>;MANAGED-ID=$managed-id:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='7' ignore='no'>
+			<description>Quota check</description>
+			<request print-response='no'>
+				<exclude-feature>
+					<feature>quota-on-resources</feature>
+				</exclude-feature>
+				<method>PROPFIND</method>
+				<ruri>$calendarhome1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/managedattachments/quota/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>{DAV:}resourcetype</value>
+						<value>{DAV:}quota-available-bytes</value>
+						<value>{DAV:}quota-used-bytes!$quota2:</value>
+					</arg>
+				</verify>
+				<grabelement>
+					<name>$verify-property-prefix:/{DAV:}quota-used-bytes</name>
+					<variable>$quota3:</variable>
+				</grabelement>
+			</request>
+		</test>
+		<test name='8' ignore='no'>
+			<description>Delete calendar data</description>
+			<request>
+				<method>DELETE</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='9' ignore='no'>
+			<description>Quota check</description>
+			<request print-response='no'>
+				<exclude-feature>
+					<feature>quota-on-resources</feature>
+				</exclude-feature>
+				<method>PROPFIND</method>
+				<ruri>$calendarhome1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/managedattachments/quota/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>{DAV:}resourcetype</value>
+						<value>{DAV:}quota-available-bytes</value>
+						<value>{DAV:}quota-used-bytes!$quota3:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+
+	<end/>
+
+</caldavtest>

Added: CalDAVTester/trunk/scripts/tests/CalDAV/managed-attachments-recurrence.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/managed-attachments-recurrence.xml	                        (rev 0)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/managed-attachments-recurrence.xml	2012-12-10 22:17:10 UTC (rev 10149)
@@ -0,0 +1,322 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2012 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>
+	<description>Test managed attachments with recurrences - instance attachments disabled right now</description>
+
+	<require-feature>
+		<feature>caldav</feature>
+		<feature>managed-attachments</feature>
+		<feature>prefer-representation</feature>
+	</require-feature>
+
+	<start/>
+	
+	<test-suite name='Cannot add attachment to instance'>
+		<test name='1' ignore='no'>
+			<description>PUT event</description>
+			<request end-delete='no'>
+				<method>PUT</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/managedattachments/recurrence/1.ics</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+			<request>
+				<method>GET</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<verify>
+					<callback>calendarDataMatch</callback>
+					<arg>
+						<name>filepath</name>
+						<value>Resource/CalDAV/managedattachments/recurrence/1.ics</value>
+					</arg>
+				</verify>
+				<grabheader>
+					<name>ETag</name>
+					<variable>$etag:</variable>
+				</grabheader>
+			</request>
+		</test>
+		<test name='2' ignore='no'>
+			<description>Add attachment (no prefer)</description>
+			<request>
+				<method>POST</method>
+				<ruri>$calendarpath1:/1.ics?action=attachment-add&amp;rid=$now.year.1:0102T120000Z</ruri>
+				<header>
+					<name>Content-Disposition</name>
+					<value>attachment;filename=test.txt</value>
+				</header>
+				<data>
+					<content-type>text/plain</content-type>
+					<filepath>Resource/CalDAV/managedattachments/recurrence/2.txt</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>403</value>
+					</arg>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>!Cal-Managed-ID</value>
+						<value>!Location</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='3' ignore='no'>
+			<description>Check for no ATTACH property</description>
+			<request>
+				<method>GET</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<verify>
+					<callback>calendarDataMatch</callback>
+					<arg>
+						<name>filepath</name>
+						<value>Resource/CalDAV/managedattachments/recurrence/1.ics</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='4' ignore='no'>
+			<description>Delete calendar data</description>
+			<request>
+				<method>DELETE</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+
+	<test-suite name='Recurring with override, update attachment'>
+		<test name='1' ignore='no'>
+			<description>PUT event</description>
+			<request end-delete='no'>
+				<method>PUT</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/managedattachments/recurrence/1.ics</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+			<request>
+				<method>GET</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<verify>
+					<callback>calendarDataMatch</callback>
+					<arg>
+						<name>filepath</name>
+						<value>Resource/CalDAV/managedattachments/recurrence/1.ics</value>
+					</arg>
+				</verify>
+				<grabheader>
+					<name>ETag</name>
+					<variable>$etag:</variable>
+				</grabheader>
+			</request>
+		</test>
+		<test name='2' ignore='no'>
+			<description>Add attachment</description>
+			<request>
+				<method>POST</method>
+				<ruri>$calendarpath1:/1.ics?action=attachment-add</ruri>
+				<header>
+					<name>Content-Disposition</name>
+					<value>attachment;filename=test.txt</value>
+				</header>
+				<header>
+					<name>Prefer</name>
+					<value>return-representation</value>
+				</header>
+				<data>
+					<content-type>text/plain</content-type>
+					<filepath>Resource/CalDAV/managedattachments/recurrence/2.txt</filepath>
+				</data>
+				<verify>
+					<callback>calendarDataMatch</callback>
+					<arg>
+						<name>filepath</name>
+						<value>Resource/CalDAV/managedattachments/recurrence/1.ics</value>
+					</arg>
+					<arg>
+						<name>filter</name>
+						<value>ATTACH</value>
+					</arg>
+				</verify>
+				<verify>
+					<callback>dataString</callback>
+					<arg>
+						<name>unwrap</name>
+						<value/>
+					</arg>
+					<arg>
+						<name>contains</name>
+						<value>ATTACH</value>
+						<value>;FILENAME=test.txt</value>
+						<value>;FMTTYPE=text/plain</value>
+						<value>;SIZE=</value>
+						<value>;MTAG=</value>
+						<value>;MANAGED-ID=</value>
+					</arg>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Cal-Managed-ID</value>
+					</arg>
+				</verify>
+				<grabheader>
+					<name>Location</name>
+					<variable>$location:</variable>
+				</grabheader>
+				<grabheader>
+					<name>Cal-Managed-ID</name>
+					<variable>$managed-id:</variable>
+				</grabheader>
+			</request>
+		</test>
+		<test name='3' ignore='no'>
+			<description>Check for attachment</description>
+			<request>
+				<method>GET</method>
+				<ruri>$location:</ruri>
+				<verify>
+					<callback>dataMatch</callback>
+					<arg>
+						<name>filepath</name>
+						<value>Resource/CalDAV/managedattachments/recurrence/2.txt</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='4' ignore='no'>
+			<description>Update attachment</description>
+			<request>
+				<method>POST</method>
+				<ruri>$calendarpath1:/1.ics?action=attachment-update&amp;managed-id=$managed-id:</ruri>
+				<header>
+					<name>Content-Disposition</name>
+					<value>attachment;filename=test2.txt</value>
+				</header>
+				<header>
+					<name>Prefer</name>
+					<value>return-representation</value>
+				</header>
+				<data>
+					<content-type>text/plain</content-type>
+					<filepath>Resource/CalDAV/managedattachments/recurrence/3.txt</filepath>
+				</data>
+				<verify>
+					<callback>calendarDataMatch</callback>
+					<arg>
+						<name>filepath</name>
+						<value>Resource/CalDAV/managedattachments/recurrence/1.ics</value>
+					</arg>
+					<arg>
+						<name>filter</name>
+						<value>ATTACH</value>
+					</arg>
+				</verify>
+				<verify>
+					<callback>dataString</callback>
+					<arg>
+						<name>unwrap</name>
+						<value/>
+					</arg>
+					<arg>
+						<name>contains</name>
+						<value>ATTACH</value>
+						<value>;FILENAME=test2.txt</value>
+						<value>;FMTTYPE=text/plain</value>
+						<value>;SIZE=</value>
+						<value>;MTAG=</value>
+						<value>;MANAGED-ID=$managed-id:</value>
+					</arg>
+					<arg>
+						<name>notcontains</name>
+						<value>;FILENAME=test.txt</value>
+					</arg>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Cal-Managed-ID$$managed-id:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='5' ignore='no'>
+			<description>Check for attachment</description>
+			<request>
+				<method>GET</method>
+				<ruri>$location:</ruri>
+				<verify>
+					<callback>dataMatch</callback>
+					<arg>
+						<name>filepath</name>
+						<value>Resource/CalDAV/managedattachments/recurrence/3.txt</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='6' ignore='no'>
+			<description>Delete calendar data</description>
+			<request>
+				<method>DELETE</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='7' ignore='no'>
+			<description>Check for attachment</description>
+			<request>
+				<method>GET</method>
+				<ruri>$location:</ruri>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>404</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+
+	<end/>
+
+</caldavtest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20121210/861c7317/attachment-0001.html>


More information about the calendarserver-changes mailing list