[CalendarServer-changes] [2789] CalDAVTester/branches/users/cdaboo/implicit-2661
source_changes at macosforge.org
source_changes at macosforge.org
Fri Aug 8 12:15:16 PDT 2008
Revision: 2789
http://trac.macosforge.org/projects/calendarserver/changeset/2789
Author: cdaboo at apple.com
Date: 2008-08-08 12:15:16 -0700 (Fri, 08 Aug 2008)
Log Message:
-----------
Test for new CALDAV:schedule-calendar-transp property whilst being backwards compatible with the
free-busy-set property.
Added Paths:
-----------
CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/
CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/1.xml
CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/2.xml
CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/3.xml
CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/4.xml
CalDAVTester/branches/users/cdaboo/implicit-2661/scripts/tests/implicitcalendartransp.xml
Added: CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/1.xml
===================================================================
--- CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/1.xml (rev 0)
+++ CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/1.xml 2008-08-08 19:15:16 UTC (rev 2789)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<C:schedule-calendar-transp/>
+</D:prop>
+</D:propfind>
Added: CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/2.xml
===================================================================
--- CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/2.xml (rev 0)
+++ CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/2.xml 2008-08-08 19:15:16 UTC (rev 2789)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propertyupdate xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:set>
+<D:prop>
+<C:schedule-calendar-transp><C:opaque/></C:schedule-calendar-transp>
+</D:prop>
+</D:set>
+</D:propertyupdate>
Added: CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/3.xml
===================================================================
--- CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/3.xml (rev 0)
+++ CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/3.xml 2008-08-08 19:15:16 UTC (rev 2789)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<C:calendar-free-busy-set/>
+</D:prop>
+</D:propfind>
Added: CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/4.xml
===================================================================
--- CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/4.xml (rev 0)
+++ CalDAVTester/branches/users/cdaboo/implicit-2661/Resource/implicit/calendartransp/4.xml 2008-08-08 19:15:16 UTC (rev 2789)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propertyupdate xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:set>
+<D:prop>
+<C:schedule-calendar-transp><C:transparent/></C:schedule-calendar-transp>
+</D:prop>
+</D:set>
+</D:propertyupdate>
Added: CalDAVTester/branches/users/cdaboo/implicit-2661/scripts/tests/implicitcalendartransp.xml
===================================================================
--- CalDAVTester/branches/users/cdaboo/implicit-2661/scripts/tests/implicitcalendartransp.xml (rev 0)
+++ CalDAVTester/branches/users/cdaboo/implicit-2661/scripts/tests/implicitcalendartransp.xml 2008-08-08 19:15:16 UTC (rev 2789)
@@ -0,0 +1,403 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2007 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.
+
+ DRI: Cyrus Daboo, cdaboo at apple.com
+ -->
+
+<caldavtest>
+ <description>Test default calendar behavior in CalDAV</description>
+
+ <start/>
+
+ <test-suite name='New Calendar' ignore='no'>
+ <test name='1'>
+ <description>Create new calendar</description>
+ <request print-response="no" end-delete="yes">
+ <method>MKCALENDAR</method>
+ <ruri>$pathprefix:/testcalendar/</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ </request>
+ </test>
+ <test name='2'>
+ <description>Look for property on new calendar</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix:/testcalendar/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>urn:ietf:params:xml:ns:caldavschedule-calendar-transp$<transparent/></value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='3'>
+ <description>Set property on new calendar</description>
+ <request print-response='no'>
+ <method>PROPPATCH</method>
+ <ruri>$pathprefix:/testcalendar/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>urn:ietf:params:xml:ns:caldavschedule-calendar-transp</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='4'>
+ <description>Look for property on new calendar</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix:/testcalendar/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>urn:ietf:params:xml:ns:caldavschedule-calendar-transp$<opaque/></value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
+
+ <test-suite name='New Calendar - free-busy-set compatibility' ignore='no'>
+ <test name='1'>
+ <description>Create new calendar</description>
+ <request print-response="no" end-delete="yes">
+ <method>MKCALENDAR</method>
+ <ruri>$pathprefix:/testcalendar2/</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ </request>
+ </test>
+ <test name='2'>
+ <description>Look for property on new calendar</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix:/testcalendar2/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>urn:ietf:params:xml:ns:caldavschedule-calendar-transp$<transparent/></value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='3'>
+ <description>Look for free-busy-set</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix:/$inbox:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/3.xml</filepath>
+ </data>
+ <verify>
+ <callback>dataString</callback>
+ <arg>
+ <name>notcontains</name>
+ <value>$pathprefix:/testcalendar2/</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='4'>
+ <description>Set property on new calendar</description>
+ <request print-response='no'>
+ <method>PROPPATCH</method>
+ <ruri>$pathprefix:/testcalendar2/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>urn:ietf:params:xml:ns:caldavschedule-calendar-transp</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='5'>
+ <description>Look for property on new calendar</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix:/testcalendar2/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>urn:ietf:params:xml:ns:caldavschedule-calendar-transp$<opaque/></value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='6'>
+ <description>Look for free-busy-set</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix:/$inbox:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/3.xml</filepath>
+ </data>
+ <verify>
+ <callback>dataString</callback>
+ <arg>
+ <name>contains</name>
+ <value>$pathprefix:/testcalendar2/</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='7'>
+ <description>Set property on new calendar</description>
+ <request print-response='no'>
+ <method>PROPPATCH</method>
+ <ruri>$pathprefix:/testcalendar2/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/4.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>urn:ietf:params:xml:ns:caldavschedule-calendar-transp</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='8'>
+ <description>Look for property on new calendar</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix:/testcalendar2/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>urn:ietf:params:xml:ns:caldavschedule-calendar-transp$<transparent/></value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='9'>
+ <description>Look for free-busy-set</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix:/$inbox:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/3.xml</filepath>
+ </data>
+ <verify>
+ <callback>dataString</callback>
+ <arg>
+ <name>notcontains</name>
+ <value>$pathprefix:/testcalendar2/</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='10'>
+ <description>Set property on new calendar</description>
+ <request print-response='no'>
+ <method>PROPPATCH</method>
+ <ruri>$pathprefix:/testcalendar2/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>urn:ietf:params:xml:ns:caldavschedule-calendar-transp</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='11'>
+ <description>Look for property on new calendar</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix:/testcalendar2/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>urn:ietf:params:xml:ns:caldavschedule-calendar-transp$<opaque/></value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='12'>
+ <description>Move new calendar</description>
+ <request print-response="no">
+ <method>MOVE</method>
+ <header>
+ <name>Destination</name>
+ <value>$pathprefix:/testcalendar3/</value>
+ </header>
+ <ruri>$pathprefix:/testcalendar2/</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ </request>
+ </test>
+ <test name='13'>
+ <description>Look for free-busy-set</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix:/$inbox:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/3.xml</filepath>
+ </data>
+ <verify>
+ <callback>dataString</callback>
+ <arg>
+ <name>notcontains</name>
+ <value>$pathprefix:/testcalendar2/</value>
+ </arg>
+ <arg>
+ <name>contains</name>
+ <value>$pathprefix:/testcalendar3/</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='14'>
+ <description>Delete new calendar</description>
+ <request print-response="no">
+ <method>DELETE</method>
+ <ruri>$pathprefix:/testcalendar3/</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ <arg>
+ <name>status</name>
+ <value>204</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='15'>
+ <description>Look for free-busy-set</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix:/$inbox:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/implicit/calendartransp/3.xml</filepath>
+ </data>
+ <verify>
+ <callback>dataString</callback>
+ <arg>
+ <name>notcontains</name>
+ <value>$pathprefix:/testcalendar2/</value>
+ <value>$pathprefix:/testcalendar3/</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/20080808/68ea11d3/attachment-0001.html
More information about the calendarserver-changes
mailing list