<!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" />
<title>[13870] CalDAVTester/trunk</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.calendarserver.org//changeset/13870">13870</a></dd>
<dt>Author</dt> <dd>gaya@apple.com</dd>
<dt>Date</dt> <dd>2014-08-12 16:38:12 -0700 (Tue, 12 Aug 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add direct share test to sharing-groups.xml</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#CalDAVTestertrunkResourceCalDAVcalendaruserproxy3xml">CalDAVTester/trunk/Resource/CalDAV/calendaruserproxy/3.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestsCalDAVsharinggroupsxml">CalDAVTester/trunk/scripts/tests/CalDAV/sharing-groups.xml</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li>CalDAVTester/trunk/Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member-ro-direct-member/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVsharinggroupsrosupergrouprwsubgrouprwmemberrodirectmember1xml">CalDAVTester/trunk/Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member-ro-direct-member/1.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVsharinggroupsrosupergrouprwsubgrouprwmemberrodirectmember4xml">CalDAVTester/trunk/Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member-ro-direct-member/4.xml</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="CalDAVTestertrunkResourceCalDAVcalendaruserproxy3xml"></a>
<div class="modfile"><h4>Modified: CalDAVTester/trunk/Resource/CalDAV/calendaruserproxy/3.xml (13869 => 13870)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV/calendaruserproxy/3.xml        2014-08-12 22:59:44 UTC (rev 13869)
+++ CalDAVTester/trunk/Resource/CalDAV/calendaruserproxy/3.xml        2014-08-12 23:38:12 UTC (rev 13870)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> <D:propertyupdate xmlns:D="DAV:">
</span><span class="cx"> <D:set>
</span><span class="cx"> <D:prop>
</span><del>-<D:group-member-set><D:href>$principaluri2:</D:href></D:group-member-set>
</del><ins>+<D:group-member-set><D:href>$principaluri8:</D:href></D:group-member-set>
</ins><span class="cx"> </D:prop>
</span><span class="cx"> </D:set>
</span><span class="cx"> </D:propertyupdate>
</span></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVsharinggroupsrosupergrouprwsubgrouprwmemberrodirectmember1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member-ro-direct-member/1.xml (0 => 13870)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member-ro-direct-member/1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member-ro-direct-member/1.xml        2014-08-12 23:38:12 UTC (rev 13870)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<D:propertyupdate xmlns:D="DAV:">
+<D:set>
+<D:prop>
+<D:group-member-set><D:href>$principaluri8:</D:href></D:group-member-set>
+</D:prop>
+</D:set>
+</D:propertyupdate>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVsharinggroupsrosupergrouprwsubgrouprwmemberrodirectmember4xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member-ro-direct-member/4.xml (0 => 13870)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member-ro-direct-member/4.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member-ro-direct-member/4.xml        2014-08-12 23:38:12 UTC (rev 13870)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<D:resourcetype/>
+<D:owner/>
+<D:current-user-privilege-set/>
+<C:schedule-calendar-transp/>
+</D:prop>
+</D:propfind>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestsCalDAVsharinggroupsxml"></a>
<div class="modfile"><h4>Modified: CalDAVTester/trunk/scripts/tests/CalDAV/sharing-groups.xml (13869 => 13870)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests/CalDAV/sharing-groups.xml        2014-08-12 22:59:44 UTC (rev 13869)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/sharing-groups.xml        2014-08-12 23:38:12 UTC (rev 13870)
</span><span class="lines">@@ -161,7 +161,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4a'>
</span><del>-                        <description>Shared calendar exists</description>
</del><ins>+                        <description>user06 shared calendar exists read-write</description>
</ins><span class="cx">                         <request user="$userid6:" pswd="$pswd6:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar6:/</ruri>
</span><span class="lines">@@ -196,7 +196,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4aa'>
</span><del>-                        <description>Shared calendar exists Depth:1</description>
</del><ins>+                        <description>user06 shared calendar exists read-write Depth:1</description>
</ins><span class="cx">                         <request user="$userid6:" pswd="$pswd6:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$calendarhome6:/</ruri>
</span><span class="lines">@@ -235,7 +235,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4b'>
</span><del>-                        <description>Shared calendar exists</description>
</del><ins>+                        <description>user07 shared calendar exists read-write</description>
</ins><span class="cx">                         <request user="$userid7:" pswd="$pswd7:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar7:/</ruri>
</span><span class="lines">@@ -270,7 +270,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4ab'>
</span><del>-                        <description>Shared calendar exists Depth:1</description>
</del><ins>+                        <description>user07 shared calendar exists read-write Depth:1</description>
</ins><span class="cx">                         <request user="$userid7:" pswd="$pswd7:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$calendarhome7:/</ruri>
</span><span class="lines">@@ -593,7 +593,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4a'>
</span><del>-                        <description>Shared calendar exists</description>
</del><ins>+                        <description>user06 shared calendar exists read-only</description>
</ins><span class="cx">                         <request user="$userid6:" pswd="$pswd6:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar6:/</ruri>
</span><span class="lines">@@ -625,7 +625,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4b'>
</span><del>-                        <description>Shared calendar exists</description>
</del><ins>+                        <description>user07 shared calendar exists read-only</description>
</ins><span class="cx">                         <request user="$userid7:" pswd="$pswd7:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar7:/</ruri>
</span><span class="lines">@@ -833,7 +833,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4a' ignore="no">
</span><del>-                        <description>Shared calendar exists</description>
</del><ins>+                        <description>user06 shared calendar exists read-write</description>
</ins><span class="cx">                         <request user="$userid6:" pswd="$pswd6:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar6:/</ruri>
</span><span class="lines">@@ -867,7 +867,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4b'>
</span><del>-                        <description>Shared calendar exists read-only</description>
</del><ins>+                        <description>user07 shared calendar exists read-only</description>
</ins><span class="cx">                         <request user="$userid7:" pswd="$pswd7:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar7:/</ruri>
</span><span class="lines">@@ -1185,7 +1185,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4a' ignore="no">
</span><del>-                        <description>Shared calendar exists</description>
</del><ins>+                        <description>user06 shared calendar exists read-write</description>
</ins><span class="cx">                         <request user="$userid6:" pswd="$pswd6:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar6:/</ruri>
</span><span class="lines">@@ -1219,7 +1219,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4b'>
</span><del>-                        <description>Shared calendar exists read-only</description>
</del><ins>+                        <description>user07 shared calendar exists read-only</description>
</ins><span class="cx">                         <request user="$userid7:" pswd="$pswd7:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar7:/</ruri>
</span><span class="lines">@@ -1251,7 +1251,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4c'>
</span><del>-                        <description>Shared calendar exists read-only</description>
</del><ins>+                        <description>user08 shared calendar exists read-write read-only</description>
</ins><span class="cx">                         <request user="$userid8:" pswd="$pswd8:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar8:/</ruri>
</span><span class="lines">@@ -1283,7 +1283,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4d'>
</span><del>-                        <description>Shared calendar exists read-only</description>
</del><ins>+                        <description>user09 shared calendar exists read-write read-only</description>
</ins><span class="cx">                         <request user="$userid9:" pswd="$pswd9:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar9:/</ruri>
</span><span class="lines">@@ -1315,7 +1315,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4e'>
</span><del>-                        <description>Shared calendar exists read-only</description>
</del><ins>+                        <description>user10 shared calendar exists read-only</description>
</ins><span class="cx">                         <request user="$userid10:" pswd="$pswd10:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar10:/</ruri>
</span><span class="lines">@@ -1454,7 +1454,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4a' ignore="no">
</span><del>-                        <description>Shared calendar exists read-write</description>
</del><ins>+                        <description>user06 shared calendar exists read-write</description>
</ins><span class="cx">                         <request user="$userid6:" pswd="$pswd6:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar6:/</ruri>
</span><span class="lines">@@ -1488,7 +1488,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4b'>
</span><del>-                        <description>Shared calendar exists read-only</description>
</del><ins>+                        <description>user07 shared calendar exists read-only</description>
</ins><span class="cx">                         <request user="$userid7:" pswd="$pswd7:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar7:/</ruri>
</span><span class="lines">@@ -1520,7 +1520,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4c'>
</span><del>-                        <description>Shared calendar exists read-only</description>
</del><ins>+                        <description>user08 shared calendar exists read-only</description>
</ins><span class="cx">                         <request user="$userid8:" pswd="$pswd8:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar8:/</ruri>
</span><span class="lines">@@ -1554,7 +1554,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4d'>
</span><del>-                        <description>Shared calendar exists read-write</description>
</del><ins>+                        <description>user09 shared calendar exists read-write</description>
</ins><span class="cx">                         <request user="$userid9:" pswd="$pswd9:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar9:/</ruri>
</span><span class="lines">@@ -1588,7 +1588,7 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">                 <test name='4e'>
</span><del>-                        <description>Shared calendar exists read-only</description>
</del><ins>+                        <description>user10 shared calendar exists read-only</description>
</ins><span class="cx">                         <request user="$userid10:" pswd="$pswd10:">
</span><span class="cx">                                 <method>PROPFIND</method>
</span><span class="cx">                                 <ruri>$sharedcalendar10:/</ruri>
</span><span class="lines">@@ -1621,6 +1621,205 @@
</span><span class="cx">                 </test>
</span><span class="cx">         </test-suite>
</span><span class="cx">
</span><ins>+        <test-suite name='Add direct share to subgroup' ignore="no">
+                <test name='1'>
+                        <description>Add user08 as read for user01</description>
+                        <request>
+                                <method>PROPPATCH</method>
+                                <ruri>$principal1:calendar-proxy-read/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member-ro-direct-member/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}group-member-set</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>user08 does direct share</description>
+                        <request user="$userid8:" pswd="$pswd8:">
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/?action=share</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar8:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4a' ignore="no">
+                        <description>user06 shared calendar exists read-write</description>
+                        <request user="$userid6:" pswd="$pswd6:">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar6:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member/4.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>$verify-property-prefix:/{DAV:}owner/{DAV:}href[=$principaluri1:]</value>
+                                                <value>$verify-property-prefix:/{DAV:}resourcetype/{DAV:}collection</value>
+                                                <value>$verify-property-prefix:/{DAV:}resourcetype/{urn:ietf:params:xml:ns:caldav}calendar</value>
+                                                <value>$verify-property-prefix:/{DAV:}resourcetype/{http://calendarserver.org/ns/}shared</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}read</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}write</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}bind</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}unbind</value>
+                                        </arg>
+                                        <arg>
+                                                <name>notexists</name>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}admin</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}all</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4b'>
+                        <description>user07 shared calendar exists read-only</description>
+                        <request user="$userid7:" pswd="$pswd7:">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar7:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member/4.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>$verify-property-prefix:/{DAV:}owner/{DAV:}href[=$principaluri1:]</value>
+                                                <value>$verify-property-prefix:/{DAV:}resourcetype/{http://calendarserver.org/ns/}shared</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}read</value>
+                                        </arg>
+                                        <arg>
+                                                <name>notexists</name>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}write</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}bind</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}unbind</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}admin</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}all</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4c'>
+                        <description>user08 shared calendar exists read-only</description>
+                        <request user="$userid8:" pswd="$pswd8:">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar8:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member/4.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>$verify-property-prefix:/{DAV:}owner/{DAV:}href[=$principaluri1:]</value>
+                                                <value>$verify-property-prefix:/{DAV:}resourcetype/{http://calendarserver.org/ns/}shared</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}read</value>
+                                        </arg>
+                                        <arg>
+                                                <name>notexists</name>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}write</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}bind</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}unbind</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}admin</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}all</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4d'>
+                        <description>user09 shared calendar exists read-write</description>
+                        <request user="$userid9:" pswd="$pswd9:">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar9:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member/4.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>$verify-property-prefix:/{DAV:}owner/{DAV:}href[=$principaluri1:]</value>
+                                                <value>$verify-property-prefix:/{DAV:}resourcetype/{DAV:}collection</value>
+                                                <value>$verify-property-prefix:/{DAV:}resourcetype/{urn:ietf:params:xml:ns:caldav}calendar</value>
+                                                <value>$verify-property-prefix:/{DAV:}resourcetype/{http://calendarserver.org/ns/}shared</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}read</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}write</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}bind</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}unbind</value>
+                                        </arg>
+                                        <arg>
+                                                <name>notexists</name>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}admin</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}all</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4e'>
+                        <description>user10 shared calendar exists read-only</description>
+                        <request user="$userid10:" pswd="$pswd10:">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar10:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/groups/ro-supergroup-rw-subgroup-rw-member/4.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>$verify-property-prefix:/{DAV:}owner/{DAV:}href[=$principaluri1:]</value>
+                                                <value>$verify-property-prefix:/{DAV:}resourcetype/{http://calendarserver.org/ns/}shared</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}read</value>
+                                        </arg>
+                                        <arg>
+                                                <name>notexists</name>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}write</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}bind</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}unbind</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}admin</value>
+                                                <value>$verify-property-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}all</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
</ins><span class="cx">                 
</span><span class="cx">         <end>
</span><span class="cx">                 <request user="$useradmin:" pswd="$pswdadmin:">
</span></span></pre>
</div>
</div>
</body>
</html>