<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre, #msg p { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[2087] CalDAVTester/branches/users/cdaboo/private_events-2082</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.macosforge.org/projects/calendarserver/changeset/2087">2087</a></dd>
<dt>Author</dt> <dd>cdaboo@apple.com</dd>
<dt>Date</dt> <dd>2008-01-02 13:41:32 -0800 (Wed, 02 Jan 2008)</dd>
</dl>
<h3>Log Message</h3>
<pre>Test for DAV:owner property on calendar homes and resources within those.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#CalDAVTesterbranchesuserscdabooprivate_events2082scriptstestsprivateeventsxml">CalDAVTester/branches/users/cdaboo/private_events-2082/scripts/tests/privateevents.xml</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#CalDAVTesterbranchesuserscdabooprivate_events2082Resourceprivateevents2xml">CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/2.xml</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="CalDAVTesterbranchesuserscdabooprivate_events2082Resourceprivateevents2xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/2.xml (0 => 2087)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:">
+<D:prop>
+<D:owner/>
+</D:prop>
+</D:propfind>
</ins></span></pre></div>
<a id="CalDAVTesterbranchesuserscdabooprivate_events2082scriptstestsprivateeventsxml"></a>
<div class="modfile"><h4>Modified: CalDAVTester/branches/users/cdaboo/private_events-2082/scripts/tests/privateevents.xml (2086 => 2087)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -23,7 +23,16 @@
</span><span class="cx"> <caldavtest>
</span><span class="cx">         <description>Test private events features</description>
</span><span class="cx">
</span><del>-        <start/>
</del><ins>+        <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>
</ins><span class="cx">         
</span><span class="cx">         <test-suite name='OPTIONS header' ignore='no'>
</span><span class="cx">                 <test name='1'>
</span><span class="lines">@@ -46,6 +55,163 @@
</span><span class="cx">                 </test>
</span><span class="cx">         </test-suite>
</span><span class="cx">
</span><ins>+        <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$&lt;href&gt;$principaluri1:&lt;/href&gt;</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$&lt;href&gt;$principaluri1:&lt;/href&gt;</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$&lt;href&gt;$principaluri1:&lt;/href&gt;</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$&lt;href&gt;$principaluri2:&lt;/href&gt;</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
</ins><span class="cx">         <end/>
</span><span class="cx">
</span><span class="cx"> </caldavtest>
</span></span></pre>
</div>
</div>
</body>
</html>