[CalendarServer-changes] [2087]
CalDAVTester/branches/users/cdaboo/private_events-2082
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jan 2 13:41:34 PST 2008
Revision: 2087
http://trac.macosforge.org/projects/calendarserver/changeset/2087
Author: cdaboo at apple.com
Date: 2008-01-02 13:41:32 -0800 (Wed, 02 Jan 2008)
Log Message:
-----------
Test for DAV:owner property on calendar homes and resources within those.
Modified Paths:
--------------
CalDAVTester/branches/users/cdaboo/private_events-2082/scripts/tests/privateevents.xml
Added Paths:
-----------
CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/2.xml
Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/2.xml
===================================================================
--- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/2.xml (rev 0)
+++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/2.xml 2008-01-02 21:41:32 UTC (rev 2087)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:">
+<D:prop>
+<D:owner/>
+</D:prop>
+</D:propfind>
Modified: CalDAVTester/branches/users/cdaboo/private_events-2082/scripts/tests/privateevents.xml
===================================================================
--- CalDAVTester/branches/users/cdaboo/private_events-2082/scripts/tests/privateevents.xml 2008-01-02 21:40:42 UTC (rev 2086)
+++ CalDAVTester/branches/users/cdaboo/private_events-2082/scripts/tests/privateevents.xml 2008-01-02 21:41:32 UTC (rev 2087)
@@ -23,7 +23,16 @@
<caldavtest>
<description>Test private events features</description>
- <start/>
+ <start>
+ <request end-delete="yes">
+ <method>PUT</method>
+ <ruri>1.ics</ruri>
+ <data>
+ <content-type>text/calendar; charset=utf-8</content-type>
+ <filepath>Resource/delete/1.txt</filepath>
+ </data>
+ </request>
+ </start>
<test-suite name='OPTIONS header' ignore='no'>
<test name='1'>
@@ -46,6 +55,163 @@
</test>
</test-suite>
+ <test-suite name='DAV:owner' ignore='no'>
+ <test name='1'>
+ <description>Check for no DAV:owner on root</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/privateevents/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>badprops</name>
+ <value>DAV:owner</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='2'>
+ <description>Check for no DAV:owner on user calendar</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$usercalendars:</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/privateevents/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>badprops</name>
+ <value>DAV:owner</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='3'>
+ <description>Check for no DAV:owner on principal</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$principal1:</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/privateevents/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>badprops</name>
+ <value>DAV:owner</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='4'>
+ <description>Check for DAV:owner on calendar home</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/privateevents/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:owner$<href>$principaluri1:</href></value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='5'>
+ <description>Check for DAV:owner on calendar</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$calendarpath1:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/privateevents/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:owner$<href>$principaluri1:</href></value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='6'>
+ <description>Check for DAV:owner on calendar resource</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$calendarpath1:/1.ics</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/privateevents/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:owner$<href>$principaluri1:</href></value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='7'>
+ <description>Check for DAV:owner on other user's calendar</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix2:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/privateevents/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:owner$<href>$principaluri2:</href></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/20080102/def54020/attachment.html
More information about the calendarserver-changes
mailing list