<!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>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
+&lt;D:propfind xmlns:D=&quot;DAV:&quot;&gt;
+&lt;D:prop&gt;
+&lt;D:owner/&gt;
+&lt;/D:prop&gt;
+&lt;/D:propfind&gt;
</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"> &lt;caldavtest&gt;
</span><span class="cx">         &lt;description&gt;Test private events features&lt;/description&gt;
</span><span class="cx"> 
</span><del>-        &lt;start/&gt;
</del><ins>+        &lt;start&gt;
+                &lt;request end-delete=&quot;yes&quot;&gt;
+                        &lt;method&gt;PUT&lt;/method&gt;
+                        &lt;ruri&gt;1.ics&lt;/ruri&gt;
+                        &lt;data&gt;
+                                &lt;content-type&gt;text/calendar; charset=utf-8&lt;/content-type&gt;
+                                &lt;filepath&gt;Resource/delete/1.txt&lt;/filepath&gt;
+                        &lt;/data&gt;
+                &lt;/request&gt;
+        &lt;/start&gt;
</ins><span class="cx">         
</span><span class="cx">         &lt;test-suite name='OPTIONS header' ignore='no'&gt;
</span><span class="cx">                 &lt;test name='1'&gt;
</span><span class="lines">@@ -46,6 +55,163 @@
</span><span class="cx">                 &lt;/test&gt;
</span><span class="cx">         &lt;/test-suite&gt;
</span><span class="cx"> 
</span><ins>+        &lt;test-suite name='DAV:owner' ignore='no'&gt;
+                &lt;test name='1'&gt;
+                        &lt;description&gt;Check for no DAV:owner on root&lt;/description&gt;
+                        &lt;request print-response=&quot;no&quot;&gt;
+                                &lt;method&gt;PROPFIND&lt;/method&gt;
+                                &lt;header&gt;
+                                        &lt;name&gt;Depth&lt;/name&gt;
+                                        &lt;value&gt;0&lt;/value&gt;
+                                &lt;/header&gt;
+                                &lt;ruri&gt;/&lt;/ruri&gt;
+                                &lt;data&gt;
+                                        &lt;content-type&gt;text/xml; charset=utf-8&lt;/content-type&gt;
+                                        &lt;filepath&gt;Resource/privateevents/2.xml&lt;/filepath&gt;
+                                &lt;/data&gt;
+                                &lt;verify&gt;
+                                        &lt;callback&gt;propfindItems&lt;/callback&gt;
+                                        &lt;arg&gt;
+                                                &lt;name&gt;badprops&lt;/name&gt;
+                                                &lt;value&gt;DAV:owner&lt;/value&gt;
+                                        &lt;/arg&gt;
+                                &lt;/verify&gt;
+                        &lt;/request&gt;
+                &lt;/test&gt;
+                &lt;test name='2'&gt;
+                        &lt;description&gt;Check for no DAV:owner on user calendar&lt;/description&gt;
+                        &lt;request print-response=&quot;no&quot;&gt;
+                                &lt;method&gt;PROPFIND&lt;/method&gt;
+                                &lt;header&gt;
+                                        &lt;name&gt;Depth&lt;/name&gt;
+                                        &lt;value&gt;0&lt;/value&gt;
+                                &lt;/header&gt;
+                                &lt;ruri&gt;$usercalendars:&lt;/ruri&gt;
+                                &lt;data&gt;
+                                        &lt;content-type&gt;text/xml; charset=utf-8&lt;/content-type&gt;
+                                        &lt;filepath&gt;Resource/privateevents/2.xml&lt;/filepath&gt;
+                                &lt;/data&gt;
+                                &lt;verify&gt;
+                                        &lt;callback&gt;propfindItems&lt;/callback&gt;
+                                        &lt;arg&gt;
+                                                &lt;name&gt;badprops&lt;/name&gt;
+                                                &lt;value&gt;DAV:owner&lt;/value&gt;
+                                        &lt;/arg&gt;
+                                &lt;/verify&gt;
+                        &lt;/request&gt;
+                &lt;/test&gt;
+                &lt;test name='3'&gt;
+                        &lt;description&gt;Check for no DAV:owner on principal&lt;/description&gt;
+                        &lt;request print-response=&quot;no&quot;&gt;
+                                &lt;method&gt;PROPFIND&lt;/method&gt;
+                                &lt;header&gt;
+                                        &lt;name&gt;Depth&lt;/name&gt;
+                                        &lt;value&gt;0&lt;/value&gt;
+                                &lt;/header&gt;
+                                &lt;ruri&gt;$principal1:&lt;/ruri&gt;
+                                &lt;data&gt;
+                                        &lt;content-type&gt;text/xml; charset=utf-8&lt;/content-type&gt;
+                                        &lt;filepath&gt;Resource/privateevents/2.xml&lt;/filepath&gt;
+                                &lt;/data&gt;
+                                &lt;verify&gt;
+                                        &lt;callback&gt;propfindItems&lt;/callback&gt;
+                                        &lt;arg&gt;
+                                                &lt;name&gt;badprops&lt;/name&gt;
+                                                &lt;value&gt;DAV:owner&lt;/value&gt;
+                                        &lt;/arg&gt;
+                                &lt;/verify&gt;
+                        &lt;/request&gt;
+                &lt;/test&gt;
+                &lt;test name='4'&gt;
+                        &lt;description&gt;Check for DAV:owner on calendar home&lt;/description&gt;
+                        &lt;request print-response=&quot;no&quot;&gt;
+                                &lt;method&gt;PROPFIND&lt;/method&gt;
+                                &lt;header&gt;
+                                        &lt;name&gt;Depth&lt;/name&gt;
+                                        &lt;value&gt;0&lt;/value&gt;
+                                &lt;/header&gt;
+                                &lt;ruri&gt;$pathprefix:/&lt;/ruri&gt;
+                                &lt;data&gt;
+                                        &lt;content-type&gt;text/xml; charset=utf-8&lt;/content-type&gt;
+                                        &lt;filepath&gt;Resource/privateevents/2.xml&lt;/filepath&gt;
+                                &lt;/data&gt;
+                                &lt;verify&gt;
+                                        &lt;callback&gt;propfindItems&lt;/callback&gt;
+                                        &lt;arg&gt;
+                                                &lt;name&gt;okprops&lt;/name&gt;
+                                                &lt;value&gt;DAV:owner$&amp;lt;href&amp;gt;$principaluri1:&amp;lt;/href&amp;gt;&lt;/value&gt;
+                                        &lt;/arg&gt;
+                                &lt;/verify&gt;
+                        &lt;/request&gt;
+                &lt;/test&gt;
+                &lt;test name='5'&gt;
+                        &lt;description&gt;Check for DAV:owner on calendar&lt;/description&gt;
+                        &lt;request print-response=&quot;no&quot;&gt;
+                                &lt;method&gt;PROPFIND&lt;/method&gt;
+                                &lt;header&gt;
+                                        &lt;name&gt;Depth&lt;/name&gt;
+                                        &lt;value&gt;0&lt;/value&gt;
+                                &lt;/header&gt;
+                                &lt;ruri&gt;$calendarpath1:/&lt;/ruri&gt;
+                                &lt;data&gt;
+                                        &lt;content-type&gt;text/xml; charset=utf-8&lt;/content-type&gt;
+                                        &lt;filepath&gt;Resource/privateevents/2.xml&lt;/filepath&gt;
+                                &lt;/data&gt;
+                                &lt;verify&gt;
+                                        &lt;callback&gt;propfindItems&lt;/callback&gt;
+                                        &lt;arg&gt;
+                                                &lt;name&gt;okprops&lt;/name&gt;
+                                                &lt;value&gt;DAV:owner$&amp;lt;href&amp;gt;$principaluri1:&amp;lt;/href&amp;gt;&lt;/value&gt;
+                                        &lt;/arg&gt;
+                                &lt;/verify&gt;
+                        &lt;/request&gt;
+                &lt;/test&gt;
+                &lt;test name='6'&gt;
+                        &lt;description&gt;Check for DAV:owner on calendar resource&lt;/description&gt;
+                        &lt;request print-response=&quot;no&quot;&gt;
+                                &lt;method&gt;PROPFIND&lt;/method&gt;
+                                &lt;header&gt;
+                                        &lt;name&gt;Depth&lt;/name&gt;
+                                        &lt;value&gt;0&lt;/value&gt;
+                                &lt;/header&gt;
+                                &lt;ruri&gt;$calendarpath1:/1.ics&lt;/ruri&gt;
+                                &lt;data&gt;
+                                        &lt;content-type&gt;text/xml; charset=utf-8&lt;/content-type&gt;
+                                        &lt;filepath&gt;Resource/privateevents/2.xml&lt;/filepath&gt;
+                                &lt;/data&gt;
+                                &lt;verify&gt;
+                                        &lt;callback&gt;propfindItems&lt;/callback&gt;
+                                        &lt;arg&gt;
+                                                &lt;name&gt;okprops&lt;/name&gt;
+                                                &lt;value&gt;DAV:owner$&amp;lt;href&amp;gt;$principaluri1:&amp;lt;/href&amp;gt;&lt;/value&gt;
+                                        &lt;/arg&gt;
+                                &lt;/verify&gt;
+                        &lt;/request&gt;
+                &lt;/test&gt;
+                &lt;test name='7'&gt;
+                        &lt;description&gt;Check for DAV:owner on other user's calendar&lt;/description&gt;
+                        &lt;request print-response=&quot;no&quot;&gt;
+                                &lt;method&gt;PROPFIND&lt;/method&gt;
+                                &lt;header&gt;
+                                        &lt;name&gt;Depth&lt;/name&gt;
+                                        &lt;value&gt;0&lt;/value&gt;
+                                &lt;/header&gt;
+                                &lt;ruri&gt;$pathprefix2:/&lt;/ruri&gt;
+                                &lt;data&gt;
+                                        &lt;content-type&gt;text/xml; charset=utf-8&lt;/content-type&gt;
+                                        &lt;filepath&gt;Resource/privateevents/2.xml&lt;/filepath&gt;
+                                &lt;/data&gt;
+                                &lt;verify&gt;
+                                        &lt;callback&gt;propfindItems&lt;/callback&gt;
+                                        &lt;arg&gt;
+                                                &lt;name&gt;okprops&lt;/name&gt;
+                                                &lt;value&gt;DAV:owner$&amp;lt;href&amp;gt;$principaluri2:&amp;lt;/href&amp;gt;&lt;/value&gt;
+                                        &lt;/arg&gt;
+                                &lt;/verify&gt;
+                        &lt;/request&gt;
+                &lt;/test&gt;
+        &lt;/test-suite&gt;
+
</ins><span class="cx">         &lt;end/&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;/caldavtest&gt;
</span></span></pre>
</div>
</div>

</body>
</html>