<!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>[13859] 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/13859">13859</a></dd>
<dt>Author</dt> <dd>gaya@apple.com</dd>
<dt>Date</dt> <dd>2014-08-08 15:28:01 -0700 (Fri, 08 Aug 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>add <test-suite name='Change (share calendar to) one group member read-write' ignore="no"> to ./scripts/tests/CalDAV/sharing-groups.xml</pre>
<h3>Modified Paths</h3>
<ul>
<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/calendars/read-only-group-read-write-member/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember1xml">CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/1.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember2xml">CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/2.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember3xml">CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/3.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember4xml">CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/4.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember5ics">CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/5.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember6ics">CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/6.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember8ics">CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/8.ics</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/1.xml (0 => 13859)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/1.xml        2014-08-08 22:28:01 UTC (rev 13859)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<CS:share xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
+ <CS:set>
+ <D:href>$cuaddr6:</D:href>
+ <CS:summary>My Shared Calendar</CS:summary>
+ <CS:read-write/>
+ </CS:set>
+</CS:share>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember2xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/2.xml (0 => 13859)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/2.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/2.xml        2014-08-08 22:28:01 UTC (rev 13859)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+<?xml version='1.0' encoding='UTF-8'?><notification xmlns='http://calendarserver.org/ns/'>
+ <dtstamp></dtstamp>
+ <invite-notification shared-type='calendar'>
+ <uid></uid>
+ <href xmlns='DAV:'>$cuaddrurn6:</href>
+ <invite-accepted/>
+ <access>
+ <read-write/>
+ </access>
+ <hosturl>
+ <href xmlns='DAV:'>$calendarhome1:/shared</href>
+ </hosturl>
+ <organizer>
+ <href xmlns='DAV:'>$principaluri1:</href>
+ <common-name>User 01</common-name>
+ </organizer>
+ <summary>My Shared Calendar</summary>
+ <supported-calendar-component-set xmlns='urn:ietf:params:xml:ns:caldav'>
+ <comp name="VEVENT" />
+ </supported-calendar-component-set>
+ </invite-notification>
+</notification>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember3xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/3.xml (0 => 13859)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/3.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/3.xml        2014-08-08 22:28:01 UTC (rev 13859)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+<?xml version='1.0' encoding='UTF-8'?>
+<invite-reply xmlns='http://calendarserver.org/ns/'>
+ <href xmlns='DAV:'>mailto:$email6:</href>
+ <invite-accepted/>
+ <hosturl>
+ <href xmlns='DAV:'>$calendarhome1:/shared</href>
+ </hosturl>
+ <in-reply-to>$inviteuida:</in-reply-to>
+ <summary>The Shared Calendar</summary>
+ <common-name>$username6:</common-name>
+ <first-name>$firstname6:</first-name>
+ <last-name>$lastname6:</last-name>
+</invite-reply>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember4xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/4.xml (0 => 13859)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/4.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/4.xml        2014-08-08 22:28:01 UTC (rev 13859)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:">
+<D:prop>
+<D:resourcetype/>
+<D:owner/>
+<D:current-user-privilege-set/>
+</D:prop>
+</D:propfind>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember5ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/5.ics (0 => 13859)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/5.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/5.ics        2014-08-08 22:28:01 UTC (rev 13859)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//PYVOBJECT//NONSGML Version 1//EN
+BEGIN:VTIMEZONE
+TZID:US/Eastern
+LAST-MODIFIED:20040110T032845Z
+BEGIN:STANDARD
+DTSTART:20001026T020000
+RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
+TZNAME:EST
+TZOFFSETFROM:-0400
+TZOFFSETTO:-0500
+END:STANDARD
+BEGIN:DAYLIGHT
+DTSTART:20000404T020000
+RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
+TZNAME:EDT
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0400
+END:DAYLIGHT
+END:VTIMEZONE
+BEGIN:VEVENT
+UID:$uid4:
+DTSTART;TZID=US/Eastern:$now.year.1:0101T100000
+DURATION:PT1H
+DTSTAMP:20051222T205953Z
+SUMMARY:event 1
+END:VEVENT
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember6ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/6.ics (0 => 13859)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/6.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/6.ics        2014-08-08 22:28:01 UTC (rev 13859)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//PYVOBJECT//NONSGML Version 1//EN
+BEGIN:VTIMEZONE
+TZID:US/Eastern
+LAST-MODIFIED:20040110T032845Z
+BEGIN:STANDARD
+DTSTART:20001026T020000
+RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
+TZNAME:EST
+TZOFFSETFROM:-0400
+TZOFFSETTO:-0500
+END:STANDARD
+BEGIN:DAYLIGHT
+DTSTART:20000404T020000
+RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
+TZNAME:EDT
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0400
+END:DAYLIGHT
+END:VTIMEZONE
+BEGIN:VEVENT
+UID:$uid5:
+DTSTART;TZID=US/Eastern:$now.year.1:0101T100000
+DURATION:PT1H
+DTSTAMP:20051222T205953Z
+SUMMARY:event 6
+END:VEVENT
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVsharingcalendarsreadonlygroupreadwritemember8ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/8.ics (0 => 13859)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/8.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/8.ics        2014-08-08 22:28:01 UTC (rev 13859)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//PYVOBJECT//NONSGML Version 1//EN
+BEGIN:VTIMEZONE
+TZID:US/Eastern
+LAST-MODIFIED:20040110T032845Z
+BEGIN:STANDARD
+DTSTART:20001026T020000
+RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
+TZNAME:EST
+TZOFFSETFROM:-0400
+TZOFFSETTO:-0500
+END:STANDARD
+BEGIN:DAYLIGHT
+DTSTART:20000404T020000
+RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
+TZNAME:EDT
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0400
+END:DAYLIGHT
+END:VTIMEZONE
+BEGIN:VEVENT
+UID:$uid2:
+DTSTART;TZID=US/Eastern:$now.year.1:0201T100000
+DURATION:PT7H
+DTSTAMP:20051222T205953Z
+SUMMARY:event 7-1
+END:VEVENT
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestsCalDAVsharinggroupsxml"></a>
<div class="modfile"><h4>Modified: CalDAVTester/trunk/scripts/tests/CalDAV/sharing-groups.xml (13858 => 13859)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests/CalDAV/sharing-groups.xml        2014-08-08 19:39:14 UTC (rev 13858)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/sharing-groups.xml        2014-08-08 22:28:01 UTC (rev 13859)
</span><span class="lines">@@ -54,10 +54,10 @@
</span><span class="cx">                 </request>
</span><span class="cx">         </start>
</span><span class="cx">         
</span><del>-        <test-suite name='Read-write calendar' ignore="no">
</del><ins>+        <test-suite name='Share calendar to group read-write' ignore="no">
</ins><span class="cx">                 <test name='1'>
</span><span class="cx">                         <description>POST invitation</description>
</span><del>-                        <request print-request="yes" print-response="yes">
</del><ins>+                        <request>
</ins><span class="cx">                                 <method>POST</method>
</span><span class="cx">                                 <ruri>$calendarhome1:/shared/</ruri>
</span><span class="cx">                                 <data>
</span><span class="lines">@@ -486,7 +486,7 @@
</span><span class="cx">                 </test>
</span><span class="cx">         </test-suite>
</span><span class="cx">
</span><del>-        <test-suite name='Change to read-only calendar' ignore="no">
</del><ins>+        <test-suite name='Change calendar group access to read-write' ignore="no">
</ins><span class="cx">                 <test name='1'>
</span><span class="cx">                         <description>POST invitation</description>
</span><span class="cx">                         <request>
</span><span class="lines">@@ -501,7 +501,7 @@
</span><span class="cx">                                 </verify>
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><del>-                <test name='2'>
</del><ins>+                <test name='2a'>
</ins><span class="cx">                         <description>Check Sharee notification collection</description>
</span><span class="cx">                         <request user="$userid6:" pswd="$pswd6:">
</span><span class="cx">                                 <method>WAITCOUNT 1</method>
</span><span class="lines">@@ -528,7 +528,7 @@
</span><span class="cx">                                 </grabelement>
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><del>-                <test name='2'>
</del><ins>+                <test name='2b'>
</ins><span class="cx">                         <description>Check Sharee notification collection</description>
</span><span class="cx">                         <request user="$userid7:" pswd="$pswd7:">
</span><span class="cx">                                 <method>WAITCOUNT 1</method>
</span><span class="lines">@@ -770,6 +770,269 @@
</span><span class="cx">                         </request>
</span><span class="cx">                 </test>
</span><span class="cx">         </test-suite>
</span><ins>+
+        <test-suite name='Change (share calendar to) one group member read-write' ignore="no">
+                <test name='1'>
+                        <description>POST invitation</description>
+                        <request>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request user="$userid6:" pswd="$pswd6:">
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$notificationpath6:/</ruri>
+                        </request>
+                        <request user="$userid6:" pswd="$pswd6:">
+                                <method>GETNEW</method>
+                                <ruri>$notificationpath6:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/2.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}dtstamp</value>
+                                                <value>{http://calendarserver.org/ns/}uid</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuida:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request user="$userid6:" pswd="$pswd6:">
+                                <method>POST</method>
+                                <ruri>$calendarhome6:/</ruri>
+                                <data>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/3.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendara:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4a' ignore="no">
+                        <description>Shared calendar exists</description>
+                        <request user="$userid6:" pswd="$pswd6:">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendara:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-only-group-read-write-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>Shared calendar exists read-only</description>
+                        <request user="$userid7:" pswd="$pswd7:">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendarb:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-only-group-read-write-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='5b'>
+                        <description>Create event fails</description>
+                        <request user="$userid7:" pswd="$pswd7:">
+                                <method>PUT</method>
+                                <ruri>$sharedcalendarb:/3.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/5.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5a'>
+                        <description>Create event allowed</description>
+                        <description>Sharee creates event</description>
+                        <request user="$userid6:" pswd="$pswd6:">
+                                <method>PUT</method>
+                                <ruri>$sharedcalendara:/3.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/5.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6a'>
+                        <description>Sharer sees event</description>
+                        <request>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/3.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/5.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6b'>
+                        <description>Sharee 2 sees changed event</description>
+                        <request user="$userid7:" pswd="$pswd7:">
+                                <method>GET</method>
+                                <ruri>$sharedcalendarb:/3.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/5.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7'>
+                        <description>Sharer creates event</description>
+                        <request>
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/4.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/6.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8a'>
+                        <description>Sharee sees new event</description>
+                        <request user="$userid6:" pswd="$pswd6:">
+                                <method>GET</method>
+                                <ruri>$sharedcalendara:/4.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/6.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8a'>
+                        <description>Sharee sees new event</description>
+                        <request user="$userid7:" pswd="$pswd7:">
+                                <method>GET</method>
+                                <ruri>$sharedcalendarb:/4.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/6.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='9a'>
+                        <description>Sharee changes event</description>
+                        <request user="$userid6:" pswd="$pswd6:">
+                                <method>PUT</method>
+                                <ruri>$sharedcalendara:/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/8.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='9b'>
+                        <description>Sharee cannot change event</description>
+                        <request user="$userid7:" pswd="$pswd7:">
+                                <method>PUT</method>
+                                <ruri>$sharedcalendarb:/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-only-group-read-write-member/8.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</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>