<!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>[12120] 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/12120">12120</a></dd>
<dt>Author</dt> <dd>cdaboo@apple.com</dd>
<dt>Date</dt> <dd>2013-12-17 11:23:03 -0800 (Tue, 17 Dec 2013)</dd>
</dl>
<h3>Log Message</h3>
<pre>Checkpoint: CDT cross-pod tests - more to come.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#CalDAVTestertrunkscriptstestsCalDAVsharingcreatexml">CalDAVTester/trunk/scripts/tests/CalDAV/sharing-create.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestsCalDAVsharinginvitesxml">CalDAVTester/trunk/scripts/tests/CalDAV/sharing-invites.xml</a></li>
<li><a href="#CalDAVTestertrunkverifiersmultistatusItemspy">CalDAVTester/trunk/verifiers/multistatusItems.py</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/</li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/</li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/cache/</li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/</li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/defaultcalendar/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcalendarsdefaultcalendar1xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/defaultcalendar/1.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcalendarsdefaultcalendar2xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/defaultcalendar/2.xml</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadonly1xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/1.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadonly2ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/2.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadonly3ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/3.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadonly4ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/4.ics</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadwrite1xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/1.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadwrite2ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/2.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadwrite3ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/3.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadwrite4ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/4.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadwrite5ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/5.ics</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcommoninvited2xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/invited2.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcommonnotificationdecline2xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationdecline2.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcommonnotificationinvite22xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2-2.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcommonnotificationinvite23xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2-3.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcommonnotificationinvite2roxml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2-ro.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcommonnotificationinvite2xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcommonnotificationreply2xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationreply2.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingcommonsharedasxml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/sharedas.xml</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/direct/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingdirect1xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/direct/1.xml</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingfreebusy1ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/1.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingfreebusy2ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/2.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingfreebusy3ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/3.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingfreebusy4ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/4.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingfreebusy5ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/5.ics</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharinginvites1xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/1.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharinginvites2xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/2.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharinginvites3xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/3.xml</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingmultiget1xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/1.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingmultiget1bxml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/1b.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingmultiget2xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/2.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingmultiget3xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/3.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingmultiget4xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/4.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingmultiget4bxml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/4b.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingmultiget5xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/5.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingmultiget5bxml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/5b.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingmultiget6xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/6.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingmultiget7xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/7.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingmultiget8xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/8.xml</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingnotificationsync1ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/1.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingnotificationsync2ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/2.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingnotificationsync3ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/3.ics</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/</li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingperuserdatasimplefreebusy1ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/1.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingperuserdatasimplefreebusy2ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/2.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingperuserdatasimplefreebusy3ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/3.ics</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/</li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingproxiessetupproxies1xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/1.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingproxiessetupproxies2xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/2.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingproxiessetupproxies3xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/3.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingproxiessetupproxies4xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/4.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingproxiessetupproxies5ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/5.ics</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/</li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/accept/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingrepliesaccept1xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/accept/1.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingrepliesaccept2xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/accept/2.xml</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/decline/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingrepliesdecline1xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/decline/1.xml</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/sync/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingsync1ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/sync/1.ics</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingsync2ics">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/sync/2.ics</a></li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/</li>
<li>CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/</li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite1xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/1.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite2xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/2.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite3xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/3.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite4xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/4.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite5xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/5.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite6xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/6.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite7xml">CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/7.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonMKCALENDARveventxml">CalDAVTester/trunk/Resource/Common/MKCALENDAR/vevent.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonMKCALENDARvtodoxml">CalDAVTester/trunk/Resource/Common/MKCALENDAR/vtodo.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonPOSTsharedasxml">CalDAVTester/trunk/Resource/Common/POST/sharedas.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonPOSTsharingdecline2podxml">CalDAVTester/trunk/Resource/Common/POST/sharingdecline2-pod.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonPOSTsharinginvite1xml">CalDAVTester/trunk/Resource/Common/POST/sharinginvite1.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonPOSTsharinginvite2podxml">CalDAVTester/trunk/Resource/Common/POST/sharinginvite2-pod.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonPOSTsharinginvite2ropodxml">CalDAVTester/trunk/Resource/Common/POST/sharinginvite2-ro-pod.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonPOSTsharinginvite23podxml">CalDAVTester/trunk/Resource/Common/POST/sharinginvite23-pod.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonPOSTsharingremove2podxml">CalDAVTester/trunk/Resource/Common/POST/sharingremove2-pod.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonPOSTsharingreply2podxml">CalDAVTester/trunk/Resource/Common/POST/sharingreply2-pod.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonPOSTsharingreply3podxml">CalDAVTester/trunk/Resource/Common/POST/sharingreply3-pod.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonPROPFINDinvitexml">CalDAVTester/trunk/Resource/Common/PROPFIND/invite.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonPROPFINDnotificationtypexml">CalDAVTester/trunk/Resource/Common/PROPFIND/notificationtype.xml</a></li>
<li><a href="#CalDAVTestertrunkResourceCommonPROPFINDpropsxml">CalDAVTester/trunk/Resource/Common/PROPFIND/props.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingcachexml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-cache.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingcalendarsxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-calendars.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingcreatexml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-create.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingdirectxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-direct.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingdropboxxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-dropbox.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingfreebusyxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-freebusy.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharinginvitesxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-invites.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingmovesxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-moves.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingmultiplexml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-multiple.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingnotificationsyncxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-notification-sync.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingperuserdataxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-peruser-data.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingperuserpropertiesxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-peruser-properties.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingpropfindxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-propfind.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingproxiesxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-proxies.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingrepliesxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-replies.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingreportsmultigetxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-reports-multiget.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingsyncxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-sync.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingunsharexml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-unshare.xml</a></li>
<li><a href="#CalDAVTestertrunkscriptstestspodCalDAVsharingwebcalxml">CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-webcal.xml</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingcalendarsdefaultcalendar1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/defaultcalendar/1.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/defaultcalendar/1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/defaultcalendar/1.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<D:propertyupdate xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:set>
+<D:prop>
+<C:schedule-default-calendar-URL><D:href>$sharedcalendar:/</D:href></C:schedule-default-calendar-URL>
+</D:prop>
+</D:set>
+</D:propertyupdate>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingcalendarsdefaultcalendar2xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/defaultcalendar/2.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/defaultcalendar/2.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/defaultcalendar/2.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<C:schedule-default-calendar-URL/>
+</D:prop>
+</D:propfind>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadonly1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/1.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/1.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:'>$pcuaddrurn2:</href>
+ <invite-accepted/>
+ <access>
+ <read/>
+ </access>
+ <hosturl>
+ <href xmlns='DAV:'>$host:$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="CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadonly2ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/2.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/2.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/2.ics        2013-12-17 19:23:03 UTC (rev 12120)
</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:54E181BC7CCC373042B28842-ro-5@ninevah.local
+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="CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadonly3ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/3.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/3.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/3.ics        2013-12-17 19:23:03 UTC (rev 12120)
</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:54E181BC7CCC373042B28842-ro-6@ninevah.local
+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="CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadonly4ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/4.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/4.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-only/4.ics        2013-12-17 19:23:03 UTC (rev 12120)
</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:54E181BC7CCC373042B28842-ro-6@ninevah.local
+DTSTART;TZID=US/Eastern:$now.year.1:0102T100000
+DURATION:PT1H
+DTSTAMP:20051222T205953Z
+SUMMARY:event 6
+END:VEVENT
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadwrite1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/1.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/1.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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="CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadwrite2ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/2.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/2.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/2.ics        2013-12-17 19:23:03 UTC (rev 12120)
</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:54E181BC7CCC373042B28842-2@ninevah.local
+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="CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadwrite3ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/3.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/3.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/3.ics        2013-12-17 19:23:03 UTC (rev 12120)
</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:54E181BC7CCC373042B28842-2@ninevah.local
+DTSTART;TZID=US/Eastern:$now.year.1:0101T100000
+DURATION:PT4H
+DTSTAMP:20051222T205953Z
+SUMMARY:event 4
+END:VEVENT
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadwrite4ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/4.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/4.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/4.ics        2013-12-17 19:23:03 UTC (rev 12120)
</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:54E181BC7CCC373042B28842-7@ninevah.local
+DTSTART;TZID=US/Eastern:$now.year.1:0201T100000
+DURATION:PT1H
+DTSTAMP:20051222T205953Z
+SUMMARY:event 7
+END:VEVENT
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingcalendarsreadwrite5ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/5.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/5.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/calendars/read-write/5.ics        2013-12-17 19:23:03 UTC (rev 12120)
</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:54E181BC7CCC373042B28842-7@ninevah.local
+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="CalDAVTestertrunkResourceCalDAVpodsharingcommoninvited2xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/invited2.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/invited2.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/invited2.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+<?xml version='1.0' encoding='UTF-8'?><multistatus xmlns='DAV:'>
+ <response>
+ <href>$calendarhome1:/shared/</href>
+ <propstat>
+ <prop>
+ <invite xmlns='http://calendarserver.org/ns/'>
+ <user>
+ <uid></uid>
+ <href xmlns='DAV:'>$pcuaddrurn2:</href>
+ <common-name>Puser 02</common-name>
+ <access>
+ <read-write/>
+ </access>
+ <invite-accepted/>
+ </user>
+ </invite>
+ </prop>
+ <status>HTTP/1.1 200 OK</status>
+ </propstat>
+ </response>
+</multistatus>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingcommonnotificationdecline2xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationdecline2.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationdecline2.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationdecline2.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+<?xml version='1.0' encoding='UTF-8'?><notification xmlns='http://calendarserver.org/ns/'>
+ <dtstamp></dtstamp>
+ <invite-reply xmlns='http://calendarserver.org/ns/'>
+ <href xmlns='DAV:'>mailto:$pemail2:</href>
+ <invite-declined/>
+ <hosturl>
+ <href xmlns='DAV:'>$calendarhome1:/shared</href>
+ </hosturl>
+ <in-reply-to>$inviteuid2:</in-reply-to>
+ <common-name>$pusername2:</common-name>
+ <first-name>$pfirstname2:</first-name>
+ <last-name>$plastname2:</last-name>
+ </invite-reply>
+</notification>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingcommonnotificationinvite22xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2-2.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2-2.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2-2.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:'>$pcuaddrurn2:</href>
+ <invite-noresponse/>
+ <access>
+ <read-write/>
+ </access>
+ <hosturl>
+ <href xmlns='DAV:'>$host:$calendarhome1:/shared2</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="CalDAVTestertrunkResourceCalDAVpodsharingcommonnotificationinvite23xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2-3.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2-3.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2-3.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:'>$pcuaddrurn2:</href>
+ <invite-noresponse/>
+ <access>
+ <read-write/>
+ </access>
+ <hosturl>
+ <href xmlns='DAV:'>$host:$calendarhome1:/shared3</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="CalDAVTestertrunkResourceCalDAVpodsharingcommonnotificationinvite2roxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2-ro.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2-ro.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2-ro.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:'>$pcuaddrurn2:</href>
+ <invite-noresponse/>
+ <access>
+ <read/>
+ </access>
+ <hosturl>
+ <href xmlns='DAV:'>$host:$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="CalDAVTestertrunkResourceCalDAVpodsharingcommonnotificationinvite2xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationinvite2.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:'>$pcuaddrurn2:</href>
+ <invite-noresponse/>
+ <access>
+ <read-write/>
+ </access>
+ <hosturl>
+ <href xmlns='DAV:'>$host:$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="CalDAVTestertrunkResourceCalDAVpodsharingcommonnotificationreply2xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationreply2.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationreply2.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/notificationreply2.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+<?xml version='1.0' encoding='UTF-8'?><notification xmlns='http://calendarserver.org/ns/'>
+ <dtstamp></dtstamp>
+ <invite-reply xmlns='http://calendarserver.org/ns/'>
+ <href xmlns='DAV:'>mailto:$pemail2:</href>
+ <invite-accepted/>
+ <hosturl>
+ <href xmlns='DAV:'>$calendarhome1:/shared</href>
+ </hosturl>
+ <in-reply-to>$inviteuid2:</in-reply-to>
+ <summary>The Shared Calendar</summary>
+ <common-name>$pusername2:</common-name>
+ <first-name>$pfirstname2:</first-name>
+ <last-name>$plastname2:</last-name>
+ </invite-reply>
+</notification>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingcommonsharedasxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/sharedas.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/sharedas.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/common/sharedas.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+<?xml version='1.0' encoding='UTF-8'?>
+<shared-as xmlns='http://calendarserver.org/ns/'>
+ <href xmlns='DAV:'></href>
+</shared-as>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingdirect1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/direct/1.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/direct/1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/direct/1.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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>$pprincipaluri2:</D:href></D:group-member-set>
+</D:prop>
+</D:set>
+</D:propertyupdate>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingfreebusy1ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/1.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/1.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/1.ics        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//PYVOBJECT//NONSGML Version 1//EN
+BEGIN:VTIMEZONE
+TZID:Etc/GMT+5
+X-LIC-LOCATION:Etc/GMT+5
+BEGIN:STANDARD
+DTSTART:18000101T000000
+RDATE:18000101T000000
+TZNAME:GMT+5
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0500
+END:STANDARD
+END:VTIMEZONE
+BEGIN:VEVENT
+UID:user01-uid
+DTSTART;TZID=Etc/GMT+5:$now.0:T180000
+DURATION:PT1H
+DTSTAMP:20051222T210310Z
+SUMMARY:event 1
+BEGIN:VALARM
+ACTION:AUDIO
+TRIGGER;RELATED=START:-PT10M
+END:VALARM
+END:VEVENT
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingfreebusy2ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/2.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/2.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/2.ics        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//PYVOBJECT//NONSGML Version 1//EN
+BEGIN:VTIMEZONE
+TZID:Etc/GMT+5
+X-LIC-LOCATION:Etc/GMT+5
+BEGIN:STANDARD
+DTSTART:18000101T000000
+RDATE:18000101T000000
+TZNAME:GMT+5
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0500
+END:STANDARD
+END:VTIMEZONE
+BEGIN:VEVENT
+UID:user01-uid
+DTSTART;TZID=Etc/GMT+5:$now.1:T180000
+DURATION:PT1H
+DTSTAMP:20051222T210310Z
+SUMMARY:event 1.2
+TRANSP:TRANSPARENT
+BEGIN:VALARM
+ACTION:AUDIO
+TRIGGER;RELATED=START:-PT15M
+END:VALARM
+END:VEVENT
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingfreebusy3ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/3.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/3.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/3.ics        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+METHOD:REQUEST
+BEGIN:VFREEBUSY
+UID:20060110T231240Z-4011c71-187-6f73-fb
+ORGANIZER;CN=$username1::$cuaddr1:
+ATTENDEE;CN=$username1::$cuaddr1:
+ATTENDEE;CN=$pusername2::$pcuaddr2:
+ATTENDEE;CN=$pusername3::$pcuaddr3:
+DTSTART:$now.0:T000000Z
+DTSTAMP:20060309T185105Z
+DTEND:$now.4:T000000Z
+END:VFREEBUSY
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingfreebusy4ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/4.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/4.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/4.ics        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+METHOD:REQUEST
+BEGIN:VFREEBUSY
+UID:20060110T231240Z-4011c71-187-6f73-fb
+ORGANIZER;CN=$username2::$pcuaddr2:
+ATTENDEE;CN=$username1::$cuaddr1:
+ATTENDEE;CN=$pusername2::$pcuaddr2:
+ATTENDEE;CN=$pusername3::$pcuaddr3:
+DTSTART:$now.0:T000000Z
+DTSTAMP:20060309T185105Z
+DTEND:$now.4:T000000Z
+END:VFREEBUSY
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingfreebusy5ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/5.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/5.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/freebusy/5.ics        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+METHOD:REQUEST
+BEGIN:VFREEBUSY
+UID:20060110T231240Z-4011c71-187-6f73-fb
+ORGANIZER;CN=$username3::$pcuaddr3:
+ATTENDEE;CN=$username1::$cuaddr1:
+ATTENDEE;CN=$pusername2::$pcuaddr2:
+ATTENDEE;CN=$pusername3::$pcuaddr3:
+DTSTART:$now.0:T000000Z
+DTSTAMP:20060309T185105Z
+DTEND:$now.4:T000000Z
+END:VFREEBUSY
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharinginvites1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/1.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/1.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<CS:share xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
+ <CS:set>
+ <D:href>$pcuaddr2:</D:href>
+ <CS:summary>My Shared Calendar</CS:summary>
+ <CS:read-write/>
+ </CS:set>
+ <CS:set>
+ <D:href>mailto:bogus@example.net</D:href>
+ <CS:summary>Bogus Calendar</CS:summary>
+ <CS:read-write/>
+ </CS:set>
+</CS:share>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharinginvites2xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/2.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/2.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/2.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:remove>
+ <D:href>mailto:bogus@example.com</D:href>
+ <CS:summary>My Shared Calendar</CS:summary>
+ <CS:read-write/>
+ </CS:remove>
+</CS:share>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharinginvites3xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/3.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/3.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/invites/3.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<CS:share xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
+ <CS:remove>
+ <D:href>$pcuaddr2:</D:href>
+ <CS:summary>My Shared Calendar</CS:summary>
+ <CS:read-write/>
+ </CS:remove>
+ <CS:remove>
+ <D:href>mailto:bogus@example.com</D:href>
+ <CS:summary>My Shared Calendar</CS:summary>
+ <CS:read-write/>
+ </CS:remove>
+</CS:share>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingmultiget1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/1.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/1.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<D:getetag/>
+<C:calendar-data>
+<C:comp name="VCALENDAR">
+<C:allprop/>
+<C:allcomp/>
+</C:comp>
+</C:calendar-data>
+</D:prop>
+<D:href>$shareecalendarpath2:/1.ics</D:href>
+<D:href>$shareecalendarpath2:/2.ics</D:href>
+<D:href>$shareecalendarpath2:/3.ics</D:href>
+<D:href>$shareecalendarpath2:/4.ics</D:href>
+<D:href>$shareecalendarpath2:/101.ics</D:href>
+<D:href>$shareecalendarpath2:/102.ics</D:href>
+</C:calendar-multiget>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingmultiget1bxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/1b.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/1b.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/1b.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<D:getetag/>
+<C:calendar-data>
+<C:comp name="VCALENDAR">
+<C:allprop/>
+<C:allcomp/>
+</C:comp>
+</C:calendar-data>
+</D:prop>
+<D:href>$shareetaskspath2:/1.ics</D:href>
+<D:href>$shareetaskspath2:/2.ics</D:href>
+<D:href>$shareetaskspath2:/3.ics</D:href>
+<D:href>$shareetaskspath2:/4.ics</D:href>
+<D:href>$shareetaskspath2:/101.ics</D:href>
+<D:href>$shareetaskspath2:/102.ics</D:href>
+</C:calendar-multiget>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingmultiget2xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/2.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/2.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/2.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<D:getetag/>
+<C:calendar-data>
+<C:comp name="VCALENDAR">
+<C:allprop/>
+</C:comp>
+</C:calendar-data>
+</D:prop>
+<D:href>$shareecalendarpath2:/1.ics</D:href>
+<D:href>$shareecalendarpath2:/2.ics</D:href>
+<D:href>$shareecalendarpath2:/3.ics</D:href>
+<D:href>$shareecalendarpath2:/4.ics</D:href>
+</C:calendar-multiget>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingmultiget3xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/3.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/3.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/3.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<D:getetag/>
+<C:calendar-data>
+<C:comp name="VCALENDAR">
+<C:allprop/>
+<C:comp name="VTIMEZONE">
+<C:allprop/>
+<C:allcomp/>
+</C:comp>
+</C:comp>
+</C:calendar-data>
+</D:prop>
+<D:href>$shareecalendarpath2:/1.ics</D:href>
+<D:href>$shareecalendarpath2:/2.ics</D:href>
+<D:href>$shareecalendarpath2:/3.ics</D:href>
+<D:href>$shareecalendarpath2:/4.ics</D:href>
+</C:calendar-multiget>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingmultiget4xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/4.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/4.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/4.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<D:getetag/>
+<C:calendar-data>
+<C:comp name="VCALENDAR">
+<C:allprop/>
+<C:comp name="VEVENT">
+<C:prop name="SUMMARY"/>
+<C:prop name="UID"/>
+<C:allcomp/>
+</C:comp>
+</C:comp>
+</C:calendar-data>
+</D:prop>
+<D:href>$shareecalendarpath2:/1.ics</D:href>
+<D:href>$shareecalendarpath2:/2.ics</D:href>
+<D:href>$shareecalendarpath2:/3.ics</D:href>
+<D:href>$shareecalendarpath2:/4.ics</D:href>
+<D:href>$shareecalendarpath2:/101.ics</D:href>
+<D:href>$shareecalendarpath2:/102.ics</D:href>
+</C:calendar-multiget>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingmultiget4bxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/4b.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/4b.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/4b.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<D:getetag/>
+<C:calendar-data>
+<C:comp name="VCALENDAR">
+<C:allprop/>
+<C:comp name="VEVENT">
+<C:prop name="SUMMARY"/>
+<C:prop name="UID"/>
+<C:allcomp/>
+</C:comp>
+</C:comp>
+</C:calendar-data>
+</D:prop>
+<D:href>$shareetaskspath2:/1.ics</D:href>
+<D:href>$shareetaskspath2:/2.ics</D:href>
+<D:href>$shareetaskspath2:/3.ics</D:href>
+<D:href>$shareetaskspath2:/4.ics</D:href>
+<D:href>$shareetaskspath2:/101.ics</D:href>
+<D:href>$shareetaskspath2:/102.ics</D:href>
+</C:calendar-multiget>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingmultiget5xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/5.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/5.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/5.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<D:getetag/>
+<C:calendar-data>
+<C:comp name="VCALENDAR">
+<C:allprop/>
+<C:comp name="VEVENT">
+<C:prop name="SUMMARY" novalue="yes"/>
+<C:prop name="UID"/>
+<C:allcomp/>
+</C:comp>
+</C:comp>
+</C:calendar-data>
+</D:prop>
+<D:href>$shareecalendarpath2:/1.ics</D:href>
+<D:href>$shareecalendarpath2:/2.ics</D:href>
+<D:href>$shareecalendarpath2:/3.ics</D:href>
+<D:href>$shareecalendarpath2:/4.ics</D:href>
+<D:href>$shareecalendarpath2:/101.ics</D:href>
+<D:href>$shareecalendarpath2:/102.ics</D:href>
+</C:calendar-multiget>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingmultiget5bxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/5b.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/5b.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/5b.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<D:getetag/>
+<C:calendar-data>
+<C:comp name="VCALENDAR">
+<C:allprop/>
+<C:comp name="VEVENT">
+<C:prop name="SUMMARY" novalue="yes"/>
+<C:prop name="UID"/>
+<C:allcomp/>
+</C:comp>
+</C:comp>
+</C:calendar-data>
+</D:prop>
+<D:href>$shareetaskspath2:/1.ics</D:href>
+<D:href>$shareetaskspath2:/2.ics</D:href>
+<D:href>$shareetaskspath2:/3.ics</D:href>
+<D:href>$shareetaskspath2:/4.ics</D:href>
+<D:href>$shareetaskspath2:/101.ics</D:href>
+<D:href>$shareetaskspath2:/102.ics</D:href>
+</C:calendar-multiget>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingmultiget6xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/6.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/6.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/6.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:allprop/>
+<D:href>$shareecalendarpath2:/1.ics</D:href>
+<D:href>$shareecalendarpath2:/2.ics</D:href>
+<D:href>$shareecalendarpath2:/3.ics</D:href>
+<D:href>$shareecalendarpath2:/4.ics</D:href>
+</C:calendar-multiget>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingmultiget7xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/7.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/7.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/7.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:propname/>
+<D:href>$shareecalendarpath2:/1.ics</D:href>
+<D:href>$shareecalendarpath2:/2.ics</D:href>
+<D:href>$shareecalendarpath2:/3.ics</D:href>
+<D:href>$shareecalendarpath2:/4.ics</D:href>
+</C:calendar-multiget>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingmultiget8xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/8.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/8.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/multiget/8.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:propname/>
+<D:href>$shareecalendarpath2:/bogus-resource.ics</D:href>
+</C:calendar-multiget>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingnotificationsync1ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/1.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/1.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/1.ics        2013-12-17 19:23:03 UTC (rev 12120)
</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:54E181BC7CCC373042B28842-2@ninevah.local
+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="CalDAVTestertrunkResourceCalDAVpodsharingnotificationsync2ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/2.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/2.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/2.ics        2013-12-17 19:23:03 UTC (rev 12120)
</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:54E181BC7CCC373042B28842-7@ninevah.local
+DTSTART;TZID=US/Eastern:$now.year.1:0201T100000
+DURATION:PT1H
+DTSTAMP:20051222T205953Z
+SUMMARY:event 7
+END:VEVENT
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingnotificationsync3ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/3.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/3.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/notification-sync/3.ics        2013-12-17 19:23:03 UTC (rev 12120)
</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:54E181BC7CCC373042B28842-8@ninevah.local
+DTSTART;TZID=US/Eastern:$now.year.1:0201T110000
+DURATION:PT1H
+DTSTAMP:20051222T205953Z
+SUMMARY:event 8
+END:VEVENT
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingperuserdatasimplefreebusy1ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/1.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/1.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/1.ics        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+METHOD:REQUEST
+BEGIN:VFREEBUSY
+UID:20060110T231240Z-4011c71-187-6f73-fb
+ORGANIZER;CN=$username1::$cuaddr1:
+ATTENDEE;CN=$username1::$cuaddr1:
+ATTENDEE;CN=$pusername2::$pcuaddr2:
+ATTENDEE;CN=$pusername3::$pcuaddr3:
+DTSTART:$now.year.1:0101T000000Z
+DTSTAMP:20060309T185105Z
+DTEND:$now.year.1:0105T000000Z
+END:VFREEBUSY
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingperuserdatasimplefreebusy2ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/2.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/2.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/2.ics        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+METHOD:REQUEST
+BEGIN:VFREEBUSY
+UID:20060110T231240Z-4011c71-187-6f73-fb
+ORGANIZER;CN=$username2::$pcuaddr2:
+ATTENDEE;CN=$username1::$cuaddr1:
+ATTENDEE;CN=$pusername2::$pcuaddr2:
+ATTENDEE;CN=$pusername3::$pcuaddr3:
+DTSTART:$now.year.1:0101T000000Z
+DTSTAMP:20060309T185105Z
+DTEND:$now.year.1:0105T000000Z
+END:VFREEBUSY
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingperuserdatasimplefreebusy3ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/3.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/3.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/3.ics        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+METHOD:REQUEST
+BEGIN:VFREEBUSY
+UID:20060110T231240Z-4011c71-187-6f73-fb
+ORGANIZER;CN=$username3::$pcuaddr3:
+ATTENDEE;CN=$username1::$cuaddr1:
+ATTENDEE;CN=$pusername2::$pcuaddr2:
+ATTENDEE;CN=$pusername3::$pcuaddr3:
+DTSTART:$now.year.1:0101T000000Z
+DTSTAMP:20060309T185105Z
+DTEND:$now.year.1:0105T000000Z
+END:VFREEBUSY
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingproxiessetupproxies1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/1.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/1.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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>$pprincipaluri3:</D:href></D:group-member-set>
+</D:prop>
+</D:set>
+</D:propertyupdate>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingproxiessetupproxies2xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/2.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/2.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/2.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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>$pprincipaluri4:</D:href></D:group-member-set>
+</D:prop>
+</D:set>
+</D:propertyupdate>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingproxiessetupproxies3xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/3.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/3.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/3.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:prop>
+</D:set>
+</D:propertyupdate>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingproxiessetupproxies4xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/4.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/4.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/4.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+<?xml version='1.0' encoding='UTF-8'?><multistatus xmlns='DAV:'>
+ <response>
+ <href>$calendarhome1:/shared/</href>
+ <propstat>
+ <prop>
+ <invite xmlns='http://calendarserver.org/ns/'>
+ <user>
+ <uid></uid>
+ <href xmlns='DAV:'>$pcuaddrurn2:</href>
+ <common-name>Puser 02</common-name>
+ <access>
+ <read-write/>
+ </access>
+ <invite-accepted/>
+ </user>
+ </invite>
+ </prop>
+ <status>HTTP/1.1 200 OK</status>
+ </propstat>
+ </response>
+</multistatus>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingproxiessetupproxies5ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/5.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/5.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/proxies/setupproxies/5.ics        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+BEGIN:VTIMEZONE
+LAST-MODIFIED:20040110T032845Z
+TZID:US/Eastern
+BEGIN:DAYLIGHT
+DTSTART:20000404T020000
+RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
+TZNAME:EDT
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0400
+END:DAYLIGHT
+BEGIN:STANDARD
+DTSTART:20001026T020000
+RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
+TZNAME:EST
+TZOFFSETFROM:-0400
+TZOFFSETTO:-0500
+END:STANDARD
+END:VTIMEZONE
+BEGIN:VEVENT
+DTSTAMP:20051222T205953Z
+CREATED:20060101T150000Z
+DTSTART;TZID=US/Eastern:$now.year.1:0101T100000
+DURATION:PT1H
+SUMMARY:event 1
+UID:54E181BC7CCC373042B28842@ninevah.local
+CATEGORIES:cool
+END:VEVENT
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingrepliesaccept1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/accept/1.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/accept/1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/accept/1.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+<?xml version='1.0' encoding='UTF-8'?><multistatus xmlns='DAV:'>
+ <response>
+ <href>$calendarhome1:/shared/</href>
+ <propstat>
+ <prop>
+ <invite xmlns='http://calendarserver.org/ns/'>
+ <user>
+ <uid></uid>
+ <href xmlns='DAV:'>$pcuaddrurn2:</href>
+ <common-name>Puser 02</common-name>
+ <access>
+ <read-write/>
+ </access>
+ <invite-accepted/>
+ </user>
+ </invite>
+ </prop>
+ <status>HTTP/1.1 200 OK</status>
+ </propstat>
+ </response>
+</multistatus>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingrepliesaccept2xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/accept/2.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/accept/2.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/accept/2.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
+<D:prop>
+<D:displayname/>
+<CS:shared-url/>
+</D:prop>
+</D:propfind>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingrepliesdecline1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/decline/1.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/decline/1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/replies/decline/1.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+<?xml version='1.0' encoding='UTF-8'?><multistatus xmlns='DAV:'>
+ <response>
+ <href>$calendarhome1:/shared/</href>
+ <propstat>
+ <prop>
+ <invite xmlns='http://calendarserver.org/ns/'>
+ <user>
+ <uid></uid>
+ <href xmlns='DAV:'>$pcuaddrurn2:</href>
+ <common-name>Puser 02</common-name>
+ <access>
+ <read-write/>
+ </access>
+ <invite-declined/>
+ </user>
+ </invite>
+ </prop>
+ <status>HTTP/1.1 200 OK</status>
+ </propstat>
+ </response>
+</multistatus>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingsync1ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/sync/1.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/sync/1.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/sync/1.ics        2013-12-17 19:23:03 UTC (rev 12120)
</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:54E181BC7CCC373042B28842-2@ninevah.local
+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="CalDAVTestertrunkResourceCalDAVpodsharingsync2ics"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/sync/2.ics (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/sync/2.ics         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/sync/2.ics        2013-12-17 19:23:03 UTC (rev 12120)
</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:54E181BC7CCC373042B28842-2@ninevah.local
+DTSTART;TZID=US/Eastern:$now.year.1:0101T100000
+DURATION:PT4H
+DTSTAMP:20051222T205953Z
+SUMMARY:event 4
+END:VEVENT
+END:VCALENDAR
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/1.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/1.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<CS:share xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
+ <CS:set>
+ <D:href>$pcuaddr3:</D:href>
+ <CS:common-name>Display Name 03</CS:common-name>
+ <CS:summary>My Shared Calendar</CS:summary>
+ <CS:read-write/>
+ </CS:set>
+</CS:share>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite2xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/2.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/2.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/2.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:'>$pcuaddrurn3:</href>
+ <invite-noresponse/>
+ <access>
+ <read-write/>
+ </access>
+ <hosturl>
+ <href xmlns='DAV:'>$host:$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="CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite3xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/3.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/3.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/3.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:$pemail3:</href>
+ <invite-accepted/>
+ <hosturl>
+ <href xmlns='DAV:'>$host:$calendarhome1:/shared</href>
+ </hosturl>
+ <in-reply-to>$inviteuid2:</in-reply-to>
+ <summary>The Shared Calendar</summary>
+ <common-name>$pusername3:</common-name>
+ <first-name>$pfirstname3:</first-name>
+ <last-name>$plastname3:</last-name>
+</invite-reply>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite4xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/4.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/4.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/4.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+<?xml version='1.0' encoding='UTF-8'?>
+<shared-as xmlns='http://calendarserver.org/ns/'>
+ <href xmlns='DAV:'></href>
+</shared-as>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite5xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/5.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/5.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/5.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:displayname>Sharee Display Name</D:displayname>
+</D:prop>
+</D:set>
+</D:propertyupdate>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite6xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/6.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/6.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/6.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:remove>
+ <D:href>$pcuaddr3:</D:href>
+ <CS:summary>My Shared Calendar</CS:summary>
+ <CS:read-write/>
+ </CS:remove>
+</CS:share>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCalDAVpodsharingunshareshareruninvite7xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/7.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/7.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV-pod/sharing/unshare/shareruninvite/7.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:'>$pcuaddrurn3:</href>
+ <invite-deleted/>
+ <access>
+ <read-write/>
+ </access>
+ <hosturl>
+ <href xmlns='DAV:'>$host:$calendarhome1:/shared</href>
+ </hosturl>
+ <organizer>
+ <href xmlns='DAV:'>$principaluri1:</href>
+ <common-name>User 01</common-name>
+ </organizer>
+ <summary>Sharee Display Name</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="CalDAVTestertrunkResourceCommonMKCALENDARveventxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/MKCALENDAR/vevent.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/MKCALENDAR/vevent.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/MKCALENDAR/vevent.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:mkcalendar xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:set>
+<D:prop>
+<C:supported-calendar-component-set>
+<C:comp name="VEVENT"/>
+</C:supported-calendar-component-set>
+</D:prop>
+</D:set>
+</C:mkcalendar>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonMKCALENDARvtodoxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/MKCALENDAR/vtodo.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/MKCALENDAR/vtodo.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/MKCALENDAR/vtodo.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<C:mkcalendar xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:set>
+<D:prop>
+<C:supported-calendar-component-set>
+<C:comp name="VTODO"/>
+</C:supported-calendar-component-set>
+</D:prop>
+</D:set>
+</C:mkcalendar>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonPOSTsharedasxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/POST/sharedas.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/POST/sharedas.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/POST/sharedas.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+<?xml version='1.0' encoding='UTF-8'?>
+<shared-as xmlns='http://calendarserver.org/ns/'>
+ <href xmlns='DAV:'></href>
+</shared-as>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonPOSTsharingdecline2podxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/POST/sharingdecline2-pod.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/POST/sharingdecline2-pod.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/POST/sharingdecline2-pod.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:$pemail2:</href>
+ <invite-declined/>
+ <hosturl>
+ <href xmlns='DAV:'>$calendarhome1:/shared</href>
+ </hosturl>
+ <in-reply-to>$inviteuid2:</in-reply-to>
+ <summary>The Shared Calendar</summary>
+ <common-name>$pusername2:</common-name>
+ <first-name>$pfirstname2:</first-name>
+ <last-name>$plastname2:</last-name>
+</invite-reply>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonPOSTsharinginvite1xml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/POST/sharinginvite1.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/POST/sharinginvite1.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/POST/sharinginvite1.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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>$cuaddr1:</D:href>
+ <CS:summary>My Shared Calendar</CS:summary>
+ <CS:read-write/>
+ </CS:set>
+</CS:share>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonPOSTsharinginvite2podxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/POST/sharinginvite2-pod.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/POST/sharinginvite2-pod.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/POST/sharinginvite2-pod.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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>$pcuaddr2:</D:href>
+ <CS:summary>My Shared Calendar</CS:summary>
+ <CS:read-write/>
+ </CS:set>
+</CS:share>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonPOSTsharinginvite2ropodxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/POST/sharinginvite2-ro-pod.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/POST/sharinginvite2-ro-pod.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/POST/sharinginvite2-ro-pod.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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>$pcuaddr2:</D:href>
+ <CS:summary>My Shared Calendar</CS:summary>
+ <CS:read/>
+ </CS:set>
+</CS:share>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonPOSTsharinginvite23podxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/POST/sharinginvite23-pod.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/POST/sharinginvite23-pod.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/POST/sharinginvite23-pod.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<CS:share xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
+ <CS:set>
+ <D:href>$pcuaddr2:</D:href>
+ <CS:summary>My Shared Calendar</CS:summary>
+ <CS:read-write/>
+ </CS:set>
+ <CS:set>
+ <D:href>$pcuaddr3:</D:href>
+ <CS:summary>My Shared Calendar</CS:summary>
+ <CS:read/>
+ </CS:set>
+</CS:share>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonPOSTsharingremove2podxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/POST/sharingremove2-pod.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/POST/sharingremove2-pod.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/POST/sharingremove2-pod.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<CS:share xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
+ <CS:remove>
+ <D:href>$pcuaddr2:</D:href>
+ <CS:read-write/>
+ </CS:remove>
+</CS:share>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonPOSTsharingreply2podxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/POST/sharingreply2-pod.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/POST/sharingreply2-pod.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/POST/sharingreply2-pod.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:$pemail2:</href>
+ <invite-accepted/>
+ <hosturl>
+ <href xmlns='DAV:'>$hosturl2:</href>
+ </hosturl>
+ <in-reply-to>$inviteuid2:</in-reply-to>
+ <summary>The Shared Calendar</summary>
+ <common-name>$pusername2:</common-name>
+ <first-name>$pfirstname2:</first-name>
+ <last-name>$plastname2:</last-name>
+</invite-reply>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonPOSTsharingreply3podxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/POST/sharingreply3-pod.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/POST/sharingreply3-pod.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/POST/sharingreply3-pod.xml        2013-12-17 19:23:03 UTC (rev 12120)
</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:$pemail3:</href>
+ <invite-accepted/>
+ <hosturl>
+ <href xmlns='DAV:'>$hosturl3:</href>
+ </hosturl>
+ <in-reply-to>$inviteuid3:</in-reply-to>
+ <summary>The Shared Calendar</summary>
+ <common-name>$pusername3:</common-name>
+ <first-name>$pfirstname3:</first-name>
+ <last-name>$plastname3:</last-name>
+</invite-reply>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonPROPFINDinvitexml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/PROPFIND/invite.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/PROPFIND/invite.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/PROPFIND/invite.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
+<D:prop>
+<CS:invite/>
+</D:prop>
+</D:propfind>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonPROPFINDnotificationtypexml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/PROPFIND/notificationtype.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/PROPFIND/notificationtype.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/PROPFIND/notificationtype.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
+<D:prop>
+<CS:notificationtype/>
+</D:prop>
+</D:propfind>
</ins></span></pre></div>
<a id="CalDAVTestertrunkResourceCommonPROPFINDpropsxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/Resource/Common/PROPFIND/props.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/Resource/Common/PROPFIND/props.xml         (rev 0)
+++ CalDAVTester/trunk/Resource/Common/PROPFIND/props.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
+<D:prop>
+<D:creationdate/>
+<D:current-user-privilege-set/>
+<D:displayname/>
+<D:getcontenttype/>
+<CS:getctag/>
+<D:getetag/>
+<D:getlastmodified/>
+<D:resource-id/>
+<D:resourcetype/>
+<D:supported-report-set/>
+<D:sync-token/>
+</D:prop>
+</D:propfind>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestsCalDAVsharingcreatexml"></a>
<div class="modfile"><h4>Modified: CalDAVTester/trunk/scripts/tests/CalDAV/sharing-create.xml (12119 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests/CalDAV/sharing-create.xml        2013-12-17 17:41:24 UTC (rev 12119)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/sharing-create.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> limitations under the License.
</span><span class="cx"> -->
</span><span class="cx">
</span><del>-<caldavtest ignore-all='yes'>
</del><ins>+<caldavtest>
</ins><span class="cx">         <description>Test calendar sharing replies</description>
</span><span class="cx">
</span><span class="cx">         <require-feature>
</span></span></pre></div>
<a id="CalDAVTestertrunkscriptstestsCalDAVsharinginvitesxml"></a>
<div class="modfile"><h4>Modified: CalDAVTester/trunk/scripts/tests/CalDAV/sharing-invites.xml (12119 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests/CalDAV/sharing-invites.xml        2013-12-17 17:41:24 UTC (rev 12119)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/sharing-invites.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -526,10 +526,6 @@
</span><span class="cx">                         <request user="$userid2:" pswd="$pswd2:" print-response='no'>
</span><span class="cx">                                 <method>DELETE</method>
</span><span class="cx">                                 <ruri>$shareecalendar2:/</ruri>
</span><del>-                                <data substitutions='yes'>
-                                        <content-type>application/xml; charset=utf-8</content-type>
-                                        <filepath>Resource/CalDAV/sharing/invites/double/5.xml</filepath>
-                                </data>
</del><span class="cx">                                 <verify>
</span><span class="cx">                                         <callback>statusCode</callback>
</span><span class="cx">                                 </verify>
</span></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingcachexml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-cache.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-cache.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-cache.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,412 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest ignore-all='yes'>
+        <description>Test calendar sharing interaction with cache</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </start>
+        
+        <test-suite name='Generate invite' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>Create</description>
+                        <request end-delete="yes">
+                                <method>MKCALENDAR</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>PROPFIND Home to cache it</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>dataString</callback>
+                                        <arg>
+                                                <name>notcontains</name>
+                                                <value>user02</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>PROPFIND Home check</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>dataString</callback>
+                                        <arg>
+                                                <name>contains</name>
+                                                <value>puser02</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5' ignore='no'>
+                        <description>POST uninvite</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingremove2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>PROPFIND Home check</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>dataString</callback>
+                                        <arg>
+                                                <name>notcontains</name>
+                                                <value>puser02</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Send first reply'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.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>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>PROPFIND Home check</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/sharedas.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{DAV:}href</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='5' ignore='no'>
+                        <description>PROPFIND Home check</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$shareecalendar:</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>Delete shared</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETE</method>
+                                <ruri>$shareecalendar:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7' ignore='no'>
+                        <description>PROPFIND Home check</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>nohrefs</name>
+                                                <value>$shareecalendar:</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8'>
+                        <description>Sharee replies ACCEPTED - need to do this cycle of accept/delete twice to regress properly</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/sharedas.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{DAV:}href</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='9' ignore='no'>
+                        <description>PROPFIND Home check</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$shareecalendar:</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='10' ignore='no'>
+                        <description>Delete shared</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETE</method>
+                                <ruri>$shareecalendar:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='11' ignore='no'>
+                        <description>PROPFIND Home check</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>nohrefs</name>
+                                                <value>$shareecalendar:</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingcalendarsxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-calendars.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-calendars.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-calendars.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,574 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <description>Test calendar sharing calendars</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request>
+                        <method>PROPPATCH</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <data>
+                                <content-type>text/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/PROPPATCH/calendar-transp-opaque.xml</filepath>
+                        </data>
+                </request>
+        </start>
+        
+        <test-suite name='Read-write calendar'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.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>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Shared calendar exists</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/1.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>
+                                                <value>$verify-property-prefix:/{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp/{urn:ietf:params:xml:ns:caldav}transparent</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='4a'>
+                        <description>Shared calendar exists Depth:1</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>parent</name>
+                                                <value>$multistatus-response-prefix:[^{DAV:}href=$sharedcalendar:/]</value>
+                                        </arg>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>$verify-response-prefix:/{DAV:}owner/{DAV:}href[=$principaluri1:]</value>
+                                                <value>$verify-response-prefix:/{DAV:}resourcetype/{DAV:}collection</value>
+                                                <value>$verify-response-prefix:/{DAV:}resourcetype/{urn:ietf:params:xml:ns:caldav}calendar</value>
+                                                <value>$verify-response-prefix:/{DAV:}resourcetype/{http://calendarserver.org/ns/}shared</value>
+                                                <value>$verify-response-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}read</value>
+                                                <value>$verify-response-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}write</value>
+                                                <value>$verify-response-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}bind</value>
+                                                <value>$verify-response-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}unbind</value>
+                                                <value>$verify-response-prefix:/{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp/{urn:ietf:params:xml:ns:caldav}transparent</value>
+                                        </arg>
+                                        <arg>
+                                                <name>notexists</name>
+                                                <value>$verify-response-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}admin</value>
+                                                <value>$verify-response-prefix:/{DAV:}current-user-privilege-set/{DAV:}privilege/{DAV:}all</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4b'>
+                        <description>Shared calendar has invite property</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{http://calendarserver.org/ns/}invite</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>$verify-property-prefix:/{http://calendarserver.org/ns/}invite</value>
+                                                <value>$verify-property-prefix:/{http://calendarserver.org/ns/}invite/{http://calendarserver.org/ns/}organizer</value>
+                                                <value>$verify-property-prefix:/{http://calendarserver.org/ns/}invite/{http://calendarserver.org/ns/}organizer/{DAV:}href[=$principaluri1:]</value>
+                                                <value>$verify-property-prefix:/{http://calendarserver.org/ns/}invite/{http://calendarserver.org/ns/}organizer/{http://calendarserver.org/ns/}common-name[=$username1:]</value>
+                                                <value>$verify-property-prefix:/{http://calendarserver.org/ns/}invite/{http://calendarserver.org/ns/}user</value>
+                                                <value>$verify-property-prefix:/{http://calendarserver.org/ns/}invite/{http://calendarserver.org/ns/}user/{DAV:}href[=$pcuaddrurn2:]</value>
+                                                <value>$verify-property-prefix:/{http://calendarserver.org/ns/}invite/{http://calendarserver.org/ns/}user/{http://calendarserver.org/ns/}access/{http://calendarserver.org/ns/}read-write</value>
+                                                <value>$verify-property-prefix:/{http://calendarserver.org/ns/}invite/{http://calendarserver.org/ns/}user/{http://calendarserver.org/ns/}invite-accepted</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Original calendar unchanged</description>
+                        <request>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/1.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:/{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp/{urn:ietf:params:xml:ns:caldav}opaque</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>Sharee creates event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar:/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/2.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7'>
+                        <description>Sharer sees event</description>
+                        <request>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/calendars/read-write/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8'>
+                        <description>Sharer changes event</description>
+                        <request>
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/3.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='9'>
+                        <description>Sharee sees changed event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar:/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/calendars/read-write/3.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='10'>
+                        <description>Sharer creates event</description>
+                        <request>
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/4.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='11'>
+                        <description>Sharee sees new event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar:/2.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/calendars/read-write/4.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='12'>
+                        <description>Sharee changes event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar:/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/5.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='13'>
+                        <description>Sharer sees changed event</description>
+                        <request>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/2.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/calendars/read-write/5.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='Default calendar cannot be shared calendar' ignore='no'>
+                <test name='1'>
+                        <description>Set property on Inbox</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPPATCH</method>
+                                <ruri>$pinboxpath2:/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/defaultcalendar/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>badprops</name>
+                                                <value>{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Verify property on inbox</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPFIND</method>
+                                <ruri>$pinboxpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/defaultcalendar/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value><![CDATA[{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL$<href xmlns="DAV:">$pcalendarpath2:</href>]]></value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Change to read-only calendar' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-ro-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/calendars/read-only/1.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>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Shared calendar exists</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/1.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='5'>
+                        <description>Create event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar:/3.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-only/2.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6'>
+                        <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-pod/sharing/calendars/read-only/3.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7'>
+                        <description>Sharee sees new event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar:/4.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/calendars/read-only/3.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8'>
+                        <description>Sharee cannot change event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar:/4.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-only/4.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </end>
+        
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingcreatexml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-create.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-create.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-create.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,220 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <description>Test calendar sharing replies</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </start>
+        
+        <test-suite name='Create calendar' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request end-delete="yes">
+                                <method>MKCALENDAR</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>Change the color</description>
+                        <request print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/direct/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{http://apple.com/ns/ical/}calendar-color</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Generate invite' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.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>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Accept' ignore='no'>
+                <test name='1'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>Check accept status</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Check Sharer notification collection</description>
+                        <request>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$notificationpath1:/</ruri>
+                        </request>
+                        <request print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$notificationpath1:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationreply2.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}dtstamp</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Shared calendar exists without color</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/direct/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>badprops</name>
+                                                <value>{http://apple.com/ns/ical/}calendar-color</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingdirectxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-direct.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-direct.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-direct.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,762 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <description>Test calendar sharing calendars</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request print-response='no'>
+                        <method>PROPPATCH</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <data>
+                                <content-type>text/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/PROPPATCH/calendar-transp-opaque.xml</filepath>
+                        </data>
+                </request>
+        </start>
+        
+        <test-suite name='Read-write calendar' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>Add puser02 as read write for user01</description>
+                        <request print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$principal1:calendar-proxy-write/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/direct/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>Sharee does direct share</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/?action=share</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Shared calendar exists</description>
+                        <pause/>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/1.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>
+                                                <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:/{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp/{urn:ietf:params:xml:ns:caldav}transparent</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='4'>
+                        <description>Original calendar unchanged</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/1.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:/{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp/{urn:ietf:params:xml:ns:caldav}opaque</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Sharee creates event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar:/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/2.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>Sharer sees event</description>
+                        <request print-response='no'>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/calendars/read-write/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7'>
+                        <description>Sharer changes event</description>
+                        <request print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/3.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8'>
+                        <description>Sharee sees changed event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GET</method>
+                                <ruri>$sharedcalendar:/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/calendars/read-write/3.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='9'>
+                        <description>Sharer creates event</description>
+                        <request print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/4.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='10'>
+                        <description>Sharee sees new event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GET</method>
+                                <ruri>$sharedcalendar:/2.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/calendars/read-write/4.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='11'>
+                        <description>Sharee changes event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar:/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/5.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='12'>
+                        <description>Sharer sees changed event</description>
+                        <request print-response='no'>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/2.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/calendars/read-write/5.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='13'>
+                        <description>Sharee does direct share again</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/?action=share</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='14'>
+                        <description>Shared calendar exists</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/1.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>
+                                                <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:/{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp/{urn:ietf:params:xml:ns:caldav}transparent</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-suite>
+
+        <test-suite name='Change to read-only calendar' ignore='yes'>
+                <test name='1' ignore='no'>
+                        <description>Clear user02 as read-write proxy for user01</description>
+                        <request print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$principal1:calendar-proxy-write/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/calendaruserproxy/4.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}group-member-set</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>Add user02 as read-only for user01</description>
+                        <request print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$principal1:calendar-proxy-read/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/calendaruserproxy/3.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}group-member-set</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Shared calendar exists</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar:/</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/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='4'>
+                        <description>Create event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar:/3.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-only/5.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Sharer creates event</description>
+                        <request print-response='no'>
+                                <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/6.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>Sharee sees new event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GET</method>
+                                <ruri>$sharedcalendar:/4.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/calendars/read-only/6.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7'>
+                        <description>Sharee cannot change event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar:/4.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-only/7.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Removal of direct share' ignore='yes'>
+                <test name='1' ignore='no'>
+                        <description>Remove direct share</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>DELETE</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Shared calendar does not exist</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar:/</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/4.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>404</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharer calendar does exist</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-only/4.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>3</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Direct share not allowed' ignore='yes'>
+                <test name='1' ignore='no'>
+                        <description>Clear user02 as read-only proxy for user01</description>
+                        <request print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$principal1:calendar-proxy-read/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/calendaruserproxy/4.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>Sharee does direct share</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/?action=share</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='Using non __uids__ path' ignore='yes'>
+                <test name='1' ignore='no'>
+                        <description>Add user02 as read write for user01</description>
+                        <request print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$principal1:calendar-proxy-write/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/calendaruserproxy/3.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>Sharee does direct share</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GET</method>
+                                <ruri>$calendarhomealt1:/shared/?action=share</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Shared calendar exists</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar2:/</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-write/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>
+                                                <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:/{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp/{urn:ietf:params:xml:ns:caldav}transparent</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='4'>
+                        <description>Sharee creates event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar2:/9.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/calendars/read-write/9.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Sharer sees event</description>
+                        <request print-response='no'>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/9.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/calendars/read-write/9.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>Remove direct share</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>DELETE</method>
+                                <ruri>$sharedcalendar2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7' ignore='no'>
+                        <description>Clear user02 as read-write proxy for user01</description>
+                        <request print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$principal1:calendar-proxy-write/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/calendaruserproxy/4.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}group-member-set</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Calendar color' ignore='yes'>
+                <test name='1' ignore='no'>
+                        <description>Add user02 as read write for user01</description>
+                        <request print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$principal1:calendar-proxy-write/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/calendaruserproxy/3.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}group-member-set</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>Change the color</description>
+                        <request print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$calendarhomealt1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/direct/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{http://apple.com/ns/ical/}calendar-color</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee does direct share</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GET</method>
+                                <ruri>$calendarhomealt1:/shared/?action=share</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Shared calendar exists with color</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/direct/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>$verify-property-prefix:/{http://apple.com/ns/ical/}calendar-color[=#00112233]</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5' ignore='no'>
+                        <description>Remove direct share</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>DELETE</method>
+                                <ruri>$sharedcalendar2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>Clear user02 as read-write proxy for user01</description>
+                        <request print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$principal1:calendar-proxy-write/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/calendaruserproxy/4.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}group-member-set</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end/>
+        
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingdropboxxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-dropbox.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-dropbox.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-dropbox.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,323 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest ignore-all="no">
+        <description>Test Quota support on the server for shared calendars</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>dropbox</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid2:" pswd="$pswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath2:/</ruri>
+                </request>
+                <request user="$userid3:" pswd="$pswd3:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath3:/</ruri>
+                </request>
+                <request user="$userid4:" pswd="$pswd4:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath4:/</ruri>
+                </request>
+                <request user="$userid2:" pswd="$pswd2:" end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome2:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+        </start>
+        
+        <test-suite name='Setup two sharees'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request user="$userid2:" pswd="$pswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome2:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite234.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee 2 notification collection</description>
+                        <request user="$userid3:" pswd="$pswd3:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$notificationpath3:/</ruri>
+                        </request>
+                        <request user="$userid3:" pswd="$pswd3:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$notificationpath3:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid23:</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                        <variable>$hosturl23:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee 2 replies ACCEPTED</description>
+                        <request user="$userid3:" pswd="$pswd3:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome3:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply23.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendar3:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Check Sharee 3 notification collection</description>
+                        <request user="$userid4:" pswd="$pswd4:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$notificationpath4:/</ruri>
+                        </request>
+                        <request user="$userid4:" pswd="$pswd4:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$notificationpath4:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid24:</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                        <variable>$hosturl24:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Sharee 3 replies ACCEPTED</description>
+                        <request user="$userid4:" pswd="$pswd4:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome4:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply24.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendar4:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>Clean out notifications</description>
+                        <request user="$userid2:" pswd="$pswd2:">
+                                <method>DELETEALL</method>
+                                <ruri>$notificationpath2:/</ruri>
+                        </request>
+                        <request user="$userid3:" pswd="$pswd3:">
+                                <method>DELETEALL</method>
+                                <ruri>$notificationpath3:/</ruri>
+                        </request>
+                        <request user="$userid4:" pswd="$pswd4:">
+                                <method>DELETEALL</method>
+                                <ruri>$notificationpath4:/</ruri>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='PUT by User 2' ignore='no'>
+                <test name='1'>
+                        <description>PUT event by user 2</description>
+                        <request user="$userid2:" pswd="$pswd2:">
+                                <method>PUT</method>
+                                <ruri>$calendarhome2:/shared/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/dropbox/1.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>PUT attachment by user 2</description>
+                        <request user="$userid2:" pswd="$pswd2:">
+                                <method>PUT</method>
+                                <ruri>$dropboxpath2:/54E181BC7CCC373042B28842/2.xml</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/dropbox/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>Attachment exists for User 2</description>
+                        <request user="$userid2:" pswd="$pswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$dropboxpath2:/54E181BC7CCC373042B28842/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>Attachment exists for User 3</description>
+                        <request user="$userid3:" pswd="$pswd3:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$dropboxpath2:/54E181BC7CCC373042B28842/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>PUT attachment by user 3</description>
+                        <request user="$userid3:" pswd="$pswd3:">
+                                <method>PUT</method>
+                                <ruri>$dropboxpath2:/54E181BC7CCC373042B28842/3.xml</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/dropbox/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>Attachments exists for User 4</description>
+                        <request user="$userid4:" pswd="$pswd4:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$dropboxpath2:/54E181BC7CCC373042B28842/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>2</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7'>
+                        <description>PUT attachment by user 4</description>
+                        <request user="$userid4:" pswd="$pswd4:">
+                                <method>PUT</method>
+                                <ruri>$dropboxpath2:/54E181BC7CCC373042B28842/3.xml</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/dropbox/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8'>
+                        <description>DELETE attachment by user 2</description>
+                        <request user="$userid2:" pswd="$pswd2:">
+                                <method>DELETE</method>
+                                <ruri>$dropboxpath2:/54E181BC7CCC373042B28842/2.xml</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='9'>
+                        <description>DELETE attachment by user 2</description>
+                        <request user="$userid2:" pswd="$pswd2:">
+                                <method>DELETE</method>
+                                <ruri>$dropboxpath2:/54E181BC7CCC373042B28842/3.xml</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                        <ruri>$notificationpath2:/</ruri>
+                        <ruri>$notificationpath3:/</ruri>
+                        <ruri>$notificationpath4:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingfreebusyxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-freebusy.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-freebusy.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-freebusy.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,419 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest ignore-all='no'>
+        <description>Test calendar sharing per-user data</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                </request>
+                <request>
+                        <method>POST</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <data>
+                                <content-type>text/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/POST/sharinginvite23-pod.xml</filepath>
+                        </data>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>WAITCOUNT 1</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>GETNEW</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                        <grabelement>
+                                <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                <variable>$inviteuid2:</variable>
+                        </grabelement>
+                        <grabelement>
+                                <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                <variable>$hosturl2:</variable>
+                        </grabelement>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>POST</method>
+                        <ruri>$pcalendarhome2:/</ruri>
+                        <data substitutions='yes'>
+                                <content-type>application/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                        </data>
+                        <grabelement>
+                                <name>{DAV:}href</name>
+                                <variable>$sharedcalendar2:</variable>
+                        </grabelement>
+                </request>
+                <request host2="yes" user="$puserid3:" pswd="$ppswd3:">
+                        <method>WAITCOUNT 1</method>
+                        <ruri>$pnotificationpath3:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid3:" pswd="$ppswd3:">
+                        <method>GETNEW</method>
+                        <ruri>$pnotificationpath3:/</ruri>
+                        <grabelement>
+                                <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                <variable>$inviteuid3:</variable>
+                        </grabelement>
+                        <grabelement>
+                                <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                <variable>$hosturl3:</variable>
+                        </grabelement>
+                </request>
+                <request host2="yes" user="$puserid3:" pswd="$ppswd3:">
+                        <method>POST</method>
+                        <ruri>$pcalendarhome3:/</ruri>
+                        <data substitutions='yes'>
+                                <content-type>application/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/POST/sharingreply3-pod.xml</filepath>
+                        </data>
+                        <grabelement>
+                                <name>{DAV:}href</name>
+                                <variable>$sharedcalendar3:</variable>
+                        </grabelement>
+                </request>
+                <request>
+                        <method>PROPPATCH</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <data>
+                                <content-type>text/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/PROPPATCH/calendar-transp-opaque.xml</filepath>
+                        </data>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>PROPPATCH</method>
+                        <ruri>$sharedcalendar2:/</ruri>
+                        <data>
+                                <content-type>text/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/PROPPATCH/calendar-transp-opaque.xml</filepath>
+                        </data>
+                </request>
+                <request host2="yes" user="$puserid3:" pswd="$ppswd3:">
+                        <method>PROPPATCH</method>
+                        <ruri>$sharedcalendar3:/</ruri>
+                        <data>
+                                <content-type>text/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/PROPPATCH/calendar-transp-opaque.xml</filepath>
+                        </data>
+                </request>
+        </start>
+        
+        <test-suite name='Initial event'>
+                <test name='1'>
+                        <description>User01 store to shared</description>
+                        <request user="$userid1:" pswd="$pswd1:" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/freebusy/1.ics</filepath>
+                                </data>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>User01 freebusy</description>
+                        <request>
+                                <method>POST</method>
+                                <ruri>$outboxpath1:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/freebusy/3.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$cuaddr1:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.0:T230000Z/$now.1:T000000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.0:T230000Z/$now.1:T000000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr3:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.0:T230000Z/$now.1:T000000Z</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>User02 freebusy</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>POST</method>
+                                <ruri>$poutboxpath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/freebusy/4.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$cuaddr1:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.0:T230000Z/$now.1:T000000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.0:T230000Z/$now.1:T000000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr3:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.0:T230000Z/$now.1:T000000Z</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>User03 freebusy</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response="no">
+                                <method>POST</method>
+                                <ruri>$poutboxpath3:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/freebusy/5.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$cuaddr1:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.0:T230000Z/$now.1:T000000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.0:T230000Z/$now.1:T000000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr3:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.0:T230000Z/$now.1:T000000Z</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Changed event'>
+                <test name='1'>
+                        <description>User02 store to shared</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar2:/1.ics</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/freebusy/2.ics</filepath>
+                                </data>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>User01 freebusy</description>
+                        <request>
+                                <method>POST</method>
+                                <ruri>$outboxpath1:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/freebusy/3.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$cuaddr1:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.1:T230000Z/$now.2:T000000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr3:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.1:T230000Z/$now.2:T000000Z</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>User02 freebusy</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>POST</method>
+                                <ruri>$poutboxpath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/freebusy/4.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$cuaddr1:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.1:T230000Z/$now.2:T000000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr3:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.1:T230000Z/$now.2:T000000Z</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>User03 freebusy</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response="no">
+                                <method>POST</method>
+                                <ruri>$poutboxpath3:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/freebusy/5.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$cuaddr1:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.1:T230000Z/$now.2:T000000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr3:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.1:T230000Z/$now.2:T000000Z</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                        <ruri>$pnotificationpath3:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharinginvitesxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-invites.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-invites.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-invites.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,575 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <description>Test calendar sharing invitations</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared2/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared3/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+        </start>
+        
+        <test-suite name='Send new invite'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}dtstamp</value>
+                                                <value>{http://calendarserver.org/ns/}uid</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Notification type property</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/notificationtype.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>$verify-property-prefix:/{http://calendarserver.org/ns/}notificationtype/{http://calendarserver.org/ns/}invite-notification[@shared-type="calendar"]</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='Update new invite'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-ro-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2-ro.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}dtstamp</value>
+                                                <value>{http://calendarserver.org/ns/}uid</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Notification type property</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/notificationtype.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>$verify-property-prefix:/{http://calendarserver.org/ns/}notificationtype/{http://calendarserver.org/ns/}invite-notification[@shared-type="calendar"]</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='Uninvite new invite'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingremove2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>0</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='Attempt broken invite'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/invites/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>424</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>403</name>
+                                                <value>mailto:bogus@example.net</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>0</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='Delete new invite'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>DELETE collection</description>
+                        <request print-response='no'>
+                                <method>DELETE</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>0</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='Uninvite invalid invite'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request end-delete="yes">
+                                <method>MKCALENDAR</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>POST valid invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>POST single invalid uninvitate</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/invites/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>POST invalid and valid uninvitate</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/invites/3.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>200</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>403</name>
+                                                <value>mailto:bogus@example.com</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5' ignore='no'>
+                        <description>DELETE collection</description>
+                        <request print-response='no'>
+                                <method>DELETE</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Double invites'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation #2</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared2/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2-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>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>POST invitation #3</description>
+                        <request print-response='no'>
+                                <method>DELAY</method>
+                                <ruri>1</ruri>
+                        </request>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared3/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 2</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2-3.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}dtstamp</value>
+                                                <value>{http://calendarserver.org/ns/}uid</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Sharee replies ACCEPTED #2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/sharedas.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{DAV:}href</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendar2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>Sharee deletes shared calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETE</method>
+                                <ruri>$shareecalendar2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7' ignore='no'>
+                        <description>Remove invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared2/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingremove2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8' ignore='no'>
+                        <description>Remove invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared3/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingremove2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingmovesxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-moves.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-moves.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-moves.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,546 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest ignore-all='no'>
+        <description>Test calendar sharing and MOVE</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                </request>
+                <request print-response='no'>
+                        <method>POST</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <data>
+                                <content-type>text/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/POST/sharinginvite2.xml</filepath>
+                        </data>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                        <method>WAITCOUNT 1</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                        <method>GETNEW</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                        <grabelement>
+                                <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                <variable>$inviteuid2:</variable>
+                        </grabelement>
+                        <grabelement>
+                                <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                <variable>$hosturl2:</variable>
+                        </grabelement>
+                </request>
+                <request user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                        <method>POST</method>
+                        <ruri>$pcalendarhome2:/</ruri>
+                        <data substitutions='yes'>
+                                <content-type>application/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/POST/sharingreply2.xml</filepath>
+                        </data>
+                        <grabelement>
+                                <name>{DAV:}href</name>
+                                <variable>$sharedcalendar2:</variable>
+                        </grabelement>
+                </request>
+        </start>
+        
+        <test-suite name='OK event to shared calendar' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User02 store to personal calendar</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarpath2:/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/moves/1.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User02 moves event to shared calendar</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>MOVE</method>
+                                <ruri>$calendarpath2:/1.ics</ruri>
+                                <header>
+                                        <name>Destination</name>
+                                        <value>$host:$sharedcalendar2:/1.ics</value>
+                                </header>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User02 sees event</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar2:/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/moves/1.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>User01 sees event</description>
+                        <request print-response="no">
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/moves/1.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        
+        <test-suite name='Bad event to shared calendar' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User02 store to personal calendar</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" end-delete="yes" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarpath2:/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/moves/2.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User02 moves event to shared calendar</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>MOVE</method>
+                                <ruri>$calendarpath2:/2.ics</ruri>
+                                <header>
+                                        <name>Destination</name>
+                                        <value>$host:$sharedcalendar2:/2.ics</value>
+                                </header>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='OK event from shared calendar' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User01 store to shared calendar</description>
+                        <request print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/3.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/moves/3.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User02 moves event from shared calendar</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>MOVE</method>
+                                <ruri>$sharedcalendar2:/3.ics</ruri>
+                                <header>
+                                        <name>Destination</name>
+                                        <value>$host:$calendarpath2:/3.ics</value>
+                                </header>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User02 sees event</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$calendarpath2:/3.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/moves/3.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>DELETE</method>
+                                <ruri>$calendarpath2:/3.ics</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>User01 sees no event</description>
+                        <request print-response="no">
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/3.ics</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>404</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        
+        <test-suite name='Bad event to shared calendar' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User01 store to shared calendar</description>
+                        <request end-delete="yes" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/4.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/moves/4.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User02 moves event from shared calendar</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>MOVE</method>
+                                <ruri>$sharedcalendar2:/4.ics</ruri>
+                                <header>
+                                        <name>Destination</name>
+                                        <value>$host:$calendarpath2:/4.ics</value>
+                                </header>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='OK owner event to shared calendar' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User01 store to personal calendar</description>
+                        <request print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarpath1:/5.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/moves/5.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User01 moves event to shared calendar</description>
+                        <request print-response="no">
+                                <method>MOVE</method>
+                                <ruri>$calendarpath1:/5.ics</ruri>
+                                <header>
+                                        <name>Destination</name>
+                                        <value>$host:$calendarhome1:/shared/5.ics</value>
+                                </header>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User02 sees event</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar2:/5.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/moves/5.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>User01 sees event</description>
+                        <request print-response="no">
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/5.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/moves/5.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                        <request print-response="no">
+                                <method>DELETE</method>
+                                <ruri>$calendarhome1:/shared/5.ics</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        
+        <test-suite name='OK owner event with organizer to shared calendar' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User01 store to personal calendar</description>
+                        <request print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarpath1:/6.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/moves/6.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User01 moves event to shared calendar</description>
+                        <request print-response="no">
+                                <method>MOVE</method>
+                                <ruri>$calendarpath1:/6.ics</ruri>
+                                <header>
+                                        <name>Destination</name>
+                                        <value>$host:$calendarhome1:/shared/6.ics</value>
+                                </header>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User02 sees event</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar2:/6.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/moves/6.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>User01 sees event</description>
+                        <request print-response="no">
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/6.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/moves/6.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                        <request print-response="no">
+                                <method>DELETE</method>
+                                <ruri>$calendarhome1:/shared/6.ics</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='OK owner event from shared calendar' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User01 store to shared calendar</description>
+                        <request print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/7.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/moves/7.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User01 moves event from shared calendar</description>
+                        <request print-response="no">
+                                <method>MOVE</method>
+                                <ruri>$calendarhome1:/shared/7.ics</ruri>
+                                <header>
+                                        <name>Destination</name>
+                                        <value>$host:$calendarpath1:/7.ics</value>
+                                </header>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User02 does not see event</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar2:/7.ics</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>404</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>User01 sees event</description>
+                        <request print-response="no">
+                                <method>GET</method>
+                                <ruri>$calendarpath1:/7.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/moves/7.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                        <request print-response="no">
+                                <method>DELETE</method>
+                                <ruri>$calendarpath1:/7.ics</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        
+        <test-suite name='OK owner event with organizer from shared calendar' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User01 store to shared calendar</description>
+                        <request print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/8.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/moves/8.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User01 moves event from shared calendar</description>
+                        <request print-response="no">
+                                <method>MOVE</method>
+                                <ruri>$calendarhome1:/shared/8.ics</ruri>
+                                <header>
+                                        <name>Destination</name>
+                                        <value>$host:$calendarpath1:/8.ics</value>
+                                </header>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User02 does not see event</description>
+                        <request user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar2:/8.ics</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>404</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>User01 sees event</description>
+                        <request print-response="no">
+                                <method>GET</method>
+                                <ruri>$calendarpath1:/8.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/moves/8.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                        <request print-response="no">
+                                <method>DELETE</method>
+                                <ruri>$calendarpath1:/8.ics</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingmultiplexml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-multiple.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-multiple.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-multiple.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,429 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <description>Test calendar sharing invitations</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared1/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared2/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+        </start>
+        
+        <test-suite name='Send new invite #1'>
+                <test name='1' ignore='no'>
+                        <description>Initial collection count</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabcount>$calendarhome2count:</grabcount>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared1/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid2:</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                        <variable>$hosturl2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='5' ignore='no'>
+                        <description>One more calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>$calendarhome2count:+1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>One more calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>0</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='Send new invite #2'>
+                <test name='1' ignore='no'>
+                        <description>Initial collection count</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabcount>$calendarhome2count:</grabcount>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared2/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 2</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid2:</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                        <variable>$hosturl2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='5' ignore='no'>
+                        <description>One more calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>$calendarhome2count:+1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>One more calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>0</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='Uninvite #2'>
+                <test name='1' ignore='no'>
+                        <description>Initial collection count</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabcount>$calendarhome2count:</grabcount>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared2/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingremove2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>2</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>One less calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>$calendarhome2count:-1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5' ignore='no'>
+                        <description>One less calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>404</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>Existing calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>0</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingnotificationsyncxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-notification-sync.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-notification-sync.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-notification-sync.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,1410 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <description>Test calendar sharing calendars</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+                <feature>sync-report</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request print-response='no'>
+                        <method>PROPPATCH</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <data>
+                                <content-type>text/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/PROPPATCH/calendar-transp-opaque.xml</filepath>
+                        </data>
+                </request>
+        </start>
+        
+        <test-suite name='initial tokens - depth 1' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>initial query - grab token</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$notificationpath1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>totalcount</name>
+                                                <value>0</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>initial query - grab token</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>totalcount</name>
+                                                <value>0</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Read-write calendar - depth 1' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>new resource</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>totalcount</name>
+                                                <value>1</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}response/{DAV:}href</name>
+                                        <variable>$href2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Remove notification</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETEALL</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>new resource</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$href2:</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='initial tokens - depth infinity' ignore='no'>
+                <test name='1' ignore='no'>
+                        <require-feature>
+                                <feature>sync-report-home</feature>
+                        </require-feature>
+                        <description>initial query - grab token</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$notification:/</value>
+                                                <value>shared/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$dropbox:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <require-feature>
+                                <feature>sync-report-home</feature>
+                        </require-feature>
+                        <description>initial query - grab token</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$notification:/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$dropbox:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Read-write calendar - depth infinity - sharee delete'>
+                <require-feature>
+                        <feature>sync-report-home</feature>
+                </require-feature>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>new resource</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}dtstamp</value>
+                                                <value>{http://calendarserver.org/ns/}uid</value>
+                                        </arg>
+                                </verify>
+                                <graburi>basename($notification2:)</graburi>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>totalcount</name>
+                                                <value>2</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Remove notification</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETEALL</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>deleted resource</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$notification:/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$notification:/$notification2:</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>new calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='7'>
+                        <description>Sharee removes calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETE</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8' ignore='no'>
+                        <description>removed calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Read-write calendar - depth infinity - sharer removes'>
+                <require-feature>
+                        <feature>sync-report-home</feature>
+                </require-feature>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>new resource</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}dtstamp</value>
+                                                <value>{http://calendarserver.org/ns/}uid</value>
+                                        </arg>
+                                </verify>
+                                <graburi>basename($notification2:)</graburi>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>totalcount</name>
+                                                <value>2</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Remove notification</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETEALL</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>deleted resource</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$notification:/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$notification:/$notification2:</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>new calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='7' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingremove2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETEALL</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                </test>
+                <test name='8' ignore='no'>
+                        <description>removed calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='9' ignore='no'>
+                        <description>no calendar change</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>totalcount</name>
+                                                <value>0</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Shared calendar data - depth infinity'>
+                <require-feature>
+                        <feature>sync-report-home</feature>
+                </require-feature>
+                <test name='1'>
+                        <description>Sharer creates event</description>
+                        <request>
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/notification-sync/1.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>new resource</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Remove notification</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETEALL</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>new calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='7' ignore='no'>
+                        <description>Grab sharer's sync token'</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='8'>
+                        <description>Sharer creates event</description>
+                        <request>
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/notification-sync/2.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='9' ignore='no'>
+                        <description>Sharer change</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                                <value>shared/2.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='10' ignore='no'>
+                        <description>Sharee change</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='11'>
+                        <description>Sharee creates event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar:/3.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/notification-sync/3.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='12' ignore='no'>
+                        <description>Sharer change</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                                <value>shared/3.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='13' ignore='no'>
+                        <description>Sharee change</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='14'>
+                        <description>Sharer deletes event</description>
+                        <request>
+                                <method>DELETE</method>
+                                <ruri>$calendarhome1:/shared/3.ics</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='15' ignore='no'>
+                        <description>Sharer change</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>shared/3.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='16' ignore='no'>
+                        <description>Sharee change</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='17'>
+                        <description>Sharee deletes event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>DELETE</method>
+                                <ruri>$sharedcalendar:/2.ics</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='18' ignore='no'>
+                        <description>Sharer change</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>shared/2.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='19' ignore='no'>
+                        <description>Sharee change</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='20'>
+                        <description>Sharee removes calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETE</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='21' ignore='no'>
+                        <description>removed calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Response cache' ignore='no'>
+                <require-feature>
+                        <feature>sync-report-home</feature>
+                </require-feature>
+                <test name='1' ignore='no'>
+                        <description>PROPFIND of current sync-token - direct</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/sync-token.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>$verify-property-prefix:/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>PROPFIND of home</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/sync-token.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>dataString</callback>
+                                        <arg>
+                                                <name>contains</name>
+                                                <value>$synctoken1:</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>PROPFIND of home again - to cache it</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/sync-token.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>dataString</callback>
+                                        <arg>
+                                                <name>contains</name>
+                                                <value>$synctoken1:</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5' ignore='no'>
+                        <description>PROPFIND of home - token changed</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/sync-token.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>dataString</callback>
+                                        <arg>
+                                                <name>notcontains</name>
+                                                <value>$synctoken1:</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>PROPFIND of new sync-token - direct</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/sync-token.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>$verify-property-prefix:/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='7' ignore='no'>
+                        <description>PROPFIND of home</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/sync-token.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>dataString</callback>
+                                        <arg>
+                                                <name>contains</name>
+                                                <value>$synctoken2:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>notcontains</name>
+                                                <value>$synctoken1:</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8' ignore='no'>
+                        <description>PROPFIND of home again - to cache it</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/sync-token.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>dataString</callback>
+                                        <arg>
+                                                <name>contains</name>
+                                                <value>$synctoken2:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>notcontains</name>
+                                                <value>$synctoken1:</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='9'>
+                        <description>Remove notification</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETEALL</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                </test>
+                <test name='10' ignore='no'>
+                        <description>PROPFIND of home - token changed</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/sync-token.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>dataString</callback>
+                                        <arg>
+                                                <name>notcontains</name>
+                                                <value>$synctoken1:</value>
+                                                <value>$synctoken2:</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingperuserdataxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-peruser-data.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-peruser-data.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-peruser-data.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,711 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest ignore-all='no'>
+        <description>Test calendar sharing per-user data</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                </request>
+                <request print-response='no'>
+                        <method>POST</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <data>
+                                <content-type>text/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/POST/sharinginvite23-pod.xml</filepath>
+                        </data>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                        <method>WAITCOUNT 1</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                        <method>GETNEW</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                        <grabelement>
+                                <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                <variable>$inviteuid2:</variable>
+                        </grabelement>
+                        <grabelement>
+                                <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                <variable>$hosturl2:</variable>
+                        </grabelement>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                        <method>POST</method>
+                        <ruri>$pcalendarhome2:/</ruri>
+                        <data substitutions='yes'>
+                                <content-type>application/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                        </data>
+                        <grabelement>
+                                <name>{DAV:}href</name>
+                                <variable>$sharedcalendar2:</variable>
+                        </grabelement>
+                </request>
+                <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                        <method>WAITCOUNT 1</method>
+                        <ruri>$pnotificationpath3:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                        <method>GETNEW</method>
+                        <ruri>$pnotificationpath3:/</ruri>
+                        <grabelement>
+                                <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                <variable>$inviteuid3:</variable>
+                        </grabelement>
+                        <grabelement>
+                                <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                <variable>$hosturl3:</variable>
+                        </grabelement>
+                </request>
+                <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                        <method>POST</method>
+                        <ruri>$pcalendarhome3:/</ruri>
+                        <data substitutions='yes'>
+                                <content-type>application/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/POST/sharingreply3-pod.xml</filepath>
+                        </data>
+                        <grabelement>
+                                <name>{DAV:}href</name>
+                                <variable>$sharedcalendar3:</variable>
+                        </grabelement>
+                </request>
+        </start>
+        
+        <test-suite name='Initial event' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User01 store to shared</description>
+                        <request user="$userid1:" pswd="$pswd1:" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-data/simple-put/1.ics</filepath>
+                                </data>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User02 sees event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar2:/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/peruser-data/simple-put/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User03 sees event</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar3:/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/peruser-data/simple-put/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='User01 changed event' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User01 store to shared</description>
+                        <request user="$userid1:" pswd="$pswd1:" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-data/simple-change01/1.ics</filepath>
+                                </data>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User02 sees event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar2:/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/peruser-data/simple-change01/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User03 sees event</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar3:/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/peruser-data/simple-change01/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='User02 changed event' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User02 store to shared</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar2:/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-data/simple-change02/1.ics</filepath>
+                                </data>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User01 sees event</description>
+                        <request user="$userid1:" pswd="$pswd1:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/peruser-data/simple-change02/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User03 sees event</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar3:/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/peruser-data/simple-change02/3.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Different freebusy' ignore='no'>
+                <test name='1'>
+                        <description>Set properties on new calendars</description>
+                        <request print-response='no'>
+                                <method>PROPPATCH</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPPATCH/calendar-transp-opaque.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$sharedcalendar2:/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPPATCH/calendar-transp-opaque.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$sharedcalendar3:/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPPATCH/calendar-transp-opaque.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User01 freebusy</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$outboxpath1:/</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/1.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$cuaddr1:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T230000Z/$now.year.1:0102T000000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr3:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T230000Z/$now.year.1:0102T000000Z</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User02 freebusy</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>POST</method>
+                                <ruri>$poutboxpath2:/</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/2.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$cuaddr1:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T230000Z/$now.year.1:0102T000000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr3:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T230000Z/$now.year.1:0102T000000Z</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>User03 freebusy</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response="no">
+                                <method>POST</method>
+                                <ruri>$poutboxpath3:/</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/3.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$cuaddr1:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T230000Z/$now.year.1:0102T000000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr3:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T230000Z/$now.year.1:0102T000000Z</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='User01 complex recurring store' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User01 store to shared</description>
+                        <request user="$userid1:" pswd="$pswd1:" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-data/complex-put/1.ics</filepath>
+                                </data>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User02 sees event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar2:/2.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/peruser-data/complex-put/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User03 sees event</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar3:/2.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/peruser-data/complex-put/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='User02 complex recurring store' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User02 store to shared</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$sharedcalendar2:/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-data/complex-change02/1.ics</filepath>
+                                </data>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User01 sees event</description>
+                        <request user="$userid1:" pswd="$pswd1:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/2.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/peruser-data/complex-change02/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User03 sees event</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response="no">
+                                <method>GET</method>
+                                <ruri>$sharedcalendar3:/2.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/peruser-data/complex-change02/3.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Complex freebusy' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User01 freebusy</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$outboxpath1:/</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/1.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$cuaddr1:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T130000Z/$now.year.1:0101T140000Z</value>
+                                                <value>$now.year.1:0101T230000Z/$now.year.1:0102T000000Z</value>
+                                                <value>$now.year.1:0103T140000Z/$now.year.1:0103T150000Z</value>
+                                                <value>$now.year.1:0104T130000Z/$now.year.1:0104T140000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T130000Z/$now.year.1:0101T140000Z</value>
+                                                <value>$now.year.1:0102T130000Z/$now.year.1:0102T140000Z</value>
+                                                <value>$now.year.1:0104T130000Z/$now.year.1:0104T140000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr3:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T130000Z/$now.year.1:0101T140000Z</value>
+                                                <value>$now.year.1:0101T230000Z/$now.year.1:0102T000000Z</value>
+                                                <value>$now.year.1:0102T130000Z/$now.year.1:0102T140000Z</value>
+                                                <value>$now.year.1:0103T140000Z/$now.year.1:0103T150000Z</value>
+                                                <value>$now.year.1:0104T130000Z/$now.year.1:0104T140000Z</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User02 freebusy</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>POST</method>
+                                <ruri>$poutboxpath2:/</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/2.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$cuaddr1:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T130000Z/$now.year.1:0101T140000Z</value>
+                                                <value>$now.year.1:0101T230000Z/$now.year.1:0102T000000Z</value>
+                                                <value>$now.year.1:0103T140000Z/$now.year.1:0103T150000Z</value>
+                                                <value>$now.year.1:0104T130000Z/$now.year.1:0104T140000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T130000Z/$now.year.1:0101T140000Z</value>
+                                                <value>$now.year.1:0102T130000Z/$now.year.1:0102T140000Z</value>
+                                                <value>$now.year.1:0104T130000Z/$now.year.1:0104T140000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr3:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T130000Z/$now.year.1:0101T140000Z</value>
+                                                <value>$now.year.1:0101T230000Z/$now.year.1:0102T000000Z</value>
+                                                <value>$now.year.1:0102T130000Z/$now.year.1:0102T140000Z</value>
+                                                <value>$now.year.1:0103T140000Z/$now.year.1:0103T150000Z</value>
+                                                <value>$now.year.1:0104T130000Z/$now.year.1:0104T140000Z</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User03 freebusy</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response="no">
+                                <method>POST</method>
+                                <ruri>$poutboxpath3:/</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/peruser-data/simple-freebusy/3.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$cuaddr1:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T130000Z/$now.year.1:0101T140000Z</value>
+                                                <value>$now.year.1:0101T230000Z/$now.year.1:0102T000000Z</value>
+                                                <value>$now.year.1:0103T140000Z/$now.year.1:0103T150000Z</value>
+                                                <value>$now.year.1:0104T130000Z/$now.year.1:0104T140000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr2:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T130000Z/$now.year.1:0101T140000Z</value>
+                                                <value>$now.year.1:0102T130000Z/$now.year.1:0102T140000Z</value>
+                                                <value>$now.year.1:0104T130000Z/$now.year.1:0104T140000Z</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>postFreeBusy</callback>
+                                        <arg>
+                                                <name>attendee</name>
+                                                <value>$pcuaddr3:</value>
+                                        </arg>
+                                        <arg>
+                                                <name>busy</name>
+                                                <value>$now.year.1:0101T130000Z/$now.year.1:0101T140000Z</value>
+                                                <value>$now.year.1:0101T230000Z/$now.year.1:0102T000000Z</value>
+                                                <value>$now.year.1:0102T130000Z/$now.year.1:0102T140000Z</value>
+                                                <value>$now.year.1:0103T140000Z/$now.year.1:0103T150000Z</value>
+                                                <value>$now.year.1:0104T130000Z/$now.year.1:0104T140000Z</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Prevent per-user data injection' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>User01 new event with injected per-user data</description>
+                        <request user="$userid1:" pswd="$pswd1:" end-delete="yes" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarpath1:/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-data/inject/1.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>prepostcondition</callback>
+                                        <arg>
+                                                <name>error</name>
+                                                <value>{urn:ietf:params:xml:ns:caldav}valid-calendar-data</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>User01 new event with valid data</description>
+                        <request user="$userid1:" pswd="$pswd1:" end-delete="yes" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarpath1:/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-data/inject/2.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>User01 existing event with injected per-user data</description>
+                        <request user="$userid1:" pswd="$pswd1:" print-response="no">
+                                <method>PUT</method>
+                                <ruri>$calendarpath1:/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-data/inject/3.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>prepostcondition</callback>
+                                        <arg>
+                                                <name>error</name>
+                                                <value>{urn:ietf:params:xml:ns:caldav}valid-calendar-data</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                        <ruri>$pnotificationpath3:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingperuserpropertiesxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-peruser-properties.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-peruser-properties.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-peruser-properties.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,394 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <description>Test per-user WebDAV properties</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+        </start>
+        
+        <test-suite name='Read-write calendar'>
+                <test name='1' ignore='no'>
+                        <description>PROPPATCH of displayname before share</description>
+                        <request print-response='no'>
+                                <method>PROPPATCH</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-properties/nonglobal/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}displayname</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-properties/nonglobal/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}displayname$Changed Name #1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>PROPPATCH of calendar-description before share</description>
+                        <request print-response='no'>
+                                <method>PROPPATCH</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-properties/shadowable/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{urn:ietf:params:xml:ns:caldav}calendar-description</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-properties/shadowable/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{urn:ietf:params:xml:ns:caldav}calendar-description$Description #1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.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>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$sharedcalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>Shared calendar exists</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/calendars/read-write/1.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>
+                                                <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-suite>
+        
+        <test-suite name='prop patches - non-global' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>PROPFIND of shared displayname</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-properties/nonglobal/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}displayname$The Shared Calendar</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>PROPPATCH of displayname</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPPATCH</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-properties/nonglobal/3.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}displayname</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-properties/nonglobal/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}displayname$Shared Name #2</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>PROPFIND of shared displayname</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-properties/nonglobal/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}displayname$Changed Name #1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='prop patches - shadowable' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>PROPFIND of shared calendar-description</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-properties/shadowable/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{urn:ietf:params:xml:ns:caldav}calendar-description$Description #1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>PROPPATCH of calendar-description</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPPATCH</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-properties/shadowable/3.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{urn:ietf:params:xml:ns:caldav}calendar-description</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$sharedcalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-properties/shadowable/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{urn:ietf:params:xml:ns:caldav}calendar-description$Sharee Description #2</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>PROPFIND of shared calendar-description</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/peruser-properties/shadowable/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{urn:ietf:params:xml:ns:caldav}calendar-description$Description #1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingpropfindxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-propfind.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-propfind.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-propfind.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,371 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request end-delete="yes">
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/1.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/1.txt</filepath>
+                        </data>
+                </request>
+                <request end-delete="yes">
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/2.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/2.txt</filepath>
+                        </data>
+                </request>
+                <request end-delete="yes">
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/3.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/3.txt</filepath>
+                        </data>
+                </request>
+                <request end-delete="yes">
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/4.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/4.txt</filepath>
+                        </data>
+                </request>
+                <request end-delete="yes">
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/5.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/5.txt</filepath>
+                        </data>
+                </request>
+        </start>
+        
+        <test-suite name='Set up share'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>basename($shareecalendar2:)</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendarpath2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='regular home prop finds'>
+                <test name='1'>
+                        <description>PROPFIND of basic properties depth=0</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/props.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>PROPFIND of basic properties depth=1</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/props.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$calendar:/</value>
+                                                <value>$shareecalendar2:/</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>PROPFIND of basic properties depth=infinity</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>infinity</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/props.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>prepostcondition</callback>
+                                        <arg>
+                                                <name>error</name>
+                                                <value>{DAV:}propfind-finite-depth</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='regular calendar prop finds'>
+                <test name='1'>
+                        <description>PROPFIND of basic properties depth=0</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$shareecalendarpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/props.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>PROPFIND of basic properties depth=1</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$shareecalendarpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/props.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value></value>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                                <value>5.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>PROPFIND of basic properties depth=infinity</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$shareecalendarpath2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>infinity</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/props.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>prepostcondition</callback>
+                                        <arg>
+                                                <name>error</name>
+                                                <value>{DAV:}propfind-finite-depth</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='regular calendar resource prop finds'>
+                <test name='1'>
+                        <description>PROPFIND of basic properties depth=0</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$shareecalendarpath2:/1.ics</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/props.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value></value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>$verify-property-prefix:/{DAV:}creationdate</value>
+                                                <value>$verify-property-prefix:/{DAV:}getcontenttype</value>
+                                                <value>$verify-property-prefix:/{DAV:}getetag</value>
+                                                <value>$verify-property-prefix:/{DAV:}getlastmodified</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>PROPFIND of basic properties depth=1</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$shareecalendarpath2:/1.ics</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/props.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value></value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>PROPFIND of basic properties depth=infinity</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPFIND</method>
+                                <ruri>$shareecalendarpath2:/1.ics</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>infinity</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/props.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>prepostcondition</callback>
+                                        <arg>
+                                                <name>error</name>
+                                                <value>{DAV:}propfind-finite-depth</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </end>
+        
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingproxiesxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-proxies.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-proxies.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-proxies.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,569 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <description>Test calendar sharing with proxies</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+                <feature>proxy</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid3:" pswd="$ppswd3:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request host2="yes" user="$userid4:" pswd="$pswd4:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+        </start>
+        
+        <test-suite name='Setup proxies' ignore="no">
+                <test name='1'>
+                        <description>Add user03 as read proxy for user02</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$pprincipal2:calendar-proxy-read/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/proxies/setupproxies/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>Add user04 as write proxy for user02</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                                <method>PROPPATCH</method>
+                                <ruri>$pprincipal2:calendar-proxy-write/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/proxies/setupproxies/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}group-member-set</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Set up share'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.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>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/Common/POST/sharedas.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{DAV:}href</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>Check accept status</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/proxies/setupproxies/4.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}uid</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Check Sharer notification collection</description>
+                        <request>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$notificationpath1:/</ruri>
+                        </request>
+                        <request print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$notificationpath1:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationreply2.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}dtstamp</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>Sharer adds event</description>
+                        <request print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/proxies/setupproxies/5.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='Proxies see calendar and contents'>
+                <test name='1'>
+                        <description>Read proxy lists calendar home</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$shareecalendar:/</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Write proxy lists calendar home</description>
+                        <request host2="yes" user="$puserid4:" pswd="$ppswd4:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>prefix</name>
+                                                <value/>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$shareecalendar:/</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Read proxy lists calendar</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$shareecalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Write proxy lists calendar</description>
+                        <request host2="yes" user="$puserid4:" pswd="$ppswd4:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$shareecalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Proxy data changes'>
+                <test name='1'>
+                        <description>Read proxy cannot write new data</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$shareecalendar:/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/proxies/put/1.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Read proxy cannot write existing data</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$shareecalendar:/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/proxies/setupproxies/5.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Write proxy can write new data</description>
+                        <request host2="yes" user="$puserid4:" pswd="$ppswd4:" print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$shareecalendar:/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/proxies/put/1.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Sharer sees new data</description>
+                        <request print-response='no'>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/2.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/proxies/put/1.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Sharee sees new data</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GET</method>
+                                <ruri>$shareecalendar:/2.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/proxies/put/1.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>Write proxy can write existing data with per-user alarm</description>
+                        <request host2="yes" user="$puserid4:" pswd="$ppswd4:" print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$shareecalendar:/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/proxies/put/2.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7'>
+                        <description>Sharer sees new data without alarm</description>
+                        <request print-response='no'>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/proxies/put/3.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8'>
+                        <description>Sharee sees new data with alarm</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GET</method>
+                                <ruri>$shareecalendar:/1.ics</ruri>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/proxies/put/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Proxy property changes'>
+                <test name='1'>
+                        <description>Read proxy cannot write properties</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>PROPPATCH</method>
+                                <ruri>$shareecalendar:/</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/proxies/properties/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>403</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Write proxy can write properties</description>
+                        <request host2="yes" user="$puserid4:" pswd="$ppswd4:" print-response='no'>
+                                <method>PROPPATCH</method>
+                                <ruri>$shareecalendar:/</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/proxies/properties/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}displayname</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>Sharer sees original displayname</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/displayname.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}displayname$</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>Sharee sees new displayname</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$shareecalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/displayname.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}displayname$Changed Name #1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                        <ruri>$pnotificationpath3:/</ruri>
+                        <ruri>$pnotificationpath4:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                        <method>PROPPATCH</method>
+                        <ruri>$pprincipal2:calendar-proxy-read/</ruri>
+                        <data>
+                                <content-type>text/xml; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV-pod/sharing/proxies/setupproxies/3.xml</filepath>
+                        </data>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response="no">
+                        <method>PROPPATCH</method>
+                        <ruri>$pprincipal2:calendar-proxy-write/</ruri>
+                        <data>
+                                <content-type>text/xml; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV-pod/sharing/proxies/setupproxies/3.xml</filepath>
+                        </data>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingrepliesxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-replies.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-replies.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-replies.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,286 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <description>Test calendar sharing replies</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+        </start>
+        
+        <test-suite name='Send first reply'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.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>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/Common/POST/sharedas.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{DAV:}href</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>Check accept status</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/replies/accept/1.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}uid</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Check Sharer notification collection</description>
+                        <request>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$notificationpath1:/</ruri>
+                        </request>
+                        <request print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$notificationpath1:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationreply2.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}dtstamp</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>Check sharee calendar displyname/shared-url</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$shareecalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/replies/accept/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindValues</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}displayname$The Shared Calendar</value>
+                                                <value>{http://calendarserver.org/ns/}sharedurl$$calendarhome1:/shared</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7' ignore='no'>
+                        <description>Check sharer calendar displyname</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/displayname.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}displayname$shared</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='Update reply'>
+                <test name='1'>
+                        <description>Sharee replies DECLINED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingdecline2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>Check declined status</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/replies/decline/1.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}uid</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Check Sharer notification collection</description>
+                        <request>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$notificationpath1:/</ruri>
+                        </request>
+                        <request print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$notificationpath1:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationdecline2.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}dtstamp</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingreportsmultigetxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-reports-multiget.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-reports-multiget.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-reports-multiget.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,730 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <require-feature>
+                <feature>caldav</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared-tasks/</ruri>
+                        <data>
+                                <content-type>application/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/MKCALENDAR/vtodo.xml</filepath>
+                        </data>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/1.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/1.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/2.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/2.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/3.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/3.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/4.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/4.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/5.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/5.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/6.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/6.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/7.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/7.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/8.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/8.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/9.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/9.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/10.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/10.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/11.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/11.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/12.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/12.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/13.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/13.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/14.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/14.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <exclude-feature>
+                                <feature>split-calendars</feature>
+                        </exclude-feature>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/15.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/15.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/18.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/18.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/19.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/19.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/20.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/20.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/21.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/21.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/22.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/22.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared/27.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/27.ics</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared-tasks/101.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/101.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared-tasks/102.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/102.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared-tasks/103.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/103.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared-tasks/104.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/104.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared-tasks/105.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/105.txt</filepath>
+                        </data>
+                </request>
+                <request>
+                        <method>PUT</method>
+                        <ruri>$calendarhome1:/shared-tasks/106.ics</ruri>
+                        <data>
+                                <content-type>text/calendar; charset=utf-8</content-type>
+                                <filepath>Resource/CalDAV/reports/put/106.txt</filepath>
+                        </data>
+                </request>
+        </start>
+        
+        <test-suite name='Set up share'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>basename($shareecalendar2:)</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendarpath2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>POST invitation</description>
+                        <request>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared-tasks/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>WAITCOUNT 2</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>basename($shareetasks2:)</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareetaskspath2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='multiget reports' ignore='no'>
+                <test name='1a' ignore='no'>
+                        <description>basic multiget of 4 resources returning etag and entire ics data</description>
+                        <pause/>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>REPORT</method>
+                                <ruri>$shareecalendarpath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/multiget/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <exclude-feature>
+                                                <feature>split-calendars</feature>
+                                        </exclude-feature>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                                <value>101.ics</value>
+                                                <value>102.ics</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <require-feature>
+                                                <feature>split-calendars</feature>
+                                        </require-feature>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>101.ics</value>
+                                                <value>102.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                        <pause/>
+                </test>
+                <test name='1b' ignore='no'>
+                        <require-feature>
+                                <feature>split-calendars</feature>
+                        </require-feature>
+                        <description>basic multiget of 4 resources returning etag and entire ics data</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>REPORT</method>
+                                <ruri>$shareetaskspath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/multiget/1b.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>101.ics</value>
+                                                <value>102.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>basic multiget of 4 resources returning etag and only VCALENDAR property data (no embedded components)</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>REPORT</method>
+                                <ruri>$shareecalendarpath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/multiget/2.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>basic multiget of 4 resources returning etag and only VTIMEZONE components</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>REPORT</method>
+                                <ruri>$shareecalendarpath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/multiget/3.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4a' ignore='no'>
+                        <description>basic multiget of 4 resources returning etag and only SUMMARY/UID properties inside VEVENT components and VALARMs</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>REPORT</method>
+                                <ruri>$shareecalendarpath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/multiget/4.xml</filepath>
+                                </data>
+                                <verify>
+                                        <exclude-feature>
+                                                <feature>split-calendars</feature>
+                                        </exclude-feature>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                                <value>101.ics</value>
+                                                <value>102.ics</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <require-feature>
+                                                <feature>split-calendars</feature>
+                                        </require-feature>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>101.ics</value>
+                                                <value>102.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4b' ignore='no'>
+                        <require-feature>
+                                <feature>split-calendars</feature>
+                        </require-feature>
+                        <description>basic multiget of 4 resources returning etag and only SUMMARY/UID properties inside VEVENT components and VALARMs</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>REPORT</method>
+                                <ruri>$shareetaskspath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/multiget/4b.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>101.ics</value>
+                                                <value>102.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5a' ignore='no'>
+                        <description>as 4.xml except that the SUMMARY property value is not returned</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>REPORT</method>
+                                <ruri>$shareecalendarpath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/multiget/5.xml</filepath>
+                                </data>
+                                <verify>
+                                        <exclude-feature>
+                                                <feature>split-calendars</feature>
+                                        </exclude-feature>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                                <value>101.ics</value>
+                                                <value>102.ics</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <require-feature>
+                                                <feature>split-calendars</feature>
+                                        </require-feature>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>101.ics</value>
+                                                <value>102.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5b' ignore='no'>
+                        <require-feature>
+                                <feature>split-calendars</feature>
+                        </require-feature>
+                        <description>as 4.xml except that the SUMMARY property value is not returned</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>REPORT</method>
+                                <ruri>$shareetaskspath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/multiget/5b.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>101.ics</value>
+                                                <value>102.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>Does allprop</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>REPORT</method>
+                                <ruri>$shareecalendarpath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/multiget/6.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7' ignore='no'>
+                        <description>Does propname</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>REPORT</method>
+                                <ruri>$shareecalendarpath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/multiget/7.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                                <value>2.ics</value>
+                                                <value>3.ics</value>
+                                                <value>4.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8' ignore='no'>
+                        <description>Single non-existent query</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>REPORT</method>
+                                <ruri>$shareecalendarpath2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/multiget/8.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>bogus-resource.ics</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>$verify-bad-response:[*404]</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </end>
+        
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingsyncxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-sync.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-sync.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-sync.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,1810 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <description>Test calendar sharing and cached home sync tokens</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+                <feature>sync-report</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+                <request print-response='no'>
+                        <method>PROPPATCH</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <data>
+                                <content-type>text/xml; charset=utf-8</content-type>
+                                <filepath>Resource/Common/PROPPATCH/calendar-transp-opaque.xml</filepath>
+                        </data>
+                </request>
+        </start>
+        
+        <test-suite name='Read-write calendar'>
+                <test name='1' ignore='no'>
+                        <description>Initial sync tokens</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken3:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken4:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken5:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.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>$inviteuid2:</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                        <variable>$hosturl2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>basename($sharedcalendar:)</variable>
+                                </grabelement>
+                        </request>
+                        <request>
+                                <method>DELETEALL</method>
+                                <ruri>$notificationpath1:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>DELETEALL</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                </test>
+                <test name='5' ignore='no'>
+                        <description>Updated tokens</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                                <value>$notification:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                                <value>1</value>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                                <value>$notification:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token3-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken3:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token4-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                                <value>$notification:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken4:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token5-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                                <value>1</value>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$notification:/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken5:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/$sharedcalendar:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken6:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>Sharee creates event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$pcalendarhome2:/$sharedcalendar:/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/sync/1.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='7' ignore='no'>
+                        <description>Updated tokens</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                                <value>shared/1.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token3-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken3:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token4-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken4:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token5-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken5:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/$sharedcalendar:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token6-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken6:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='8'>
+                        <description>Sharer changes event</description>
+                        <request print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/sync/2.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='9' ignore='no'>
+                        <description>Updated tokens</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                                <value>shared/1.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token3-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken3:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token4-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken4:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token5-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken5:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/$sharedcalendar:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token6-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>1.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken6:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='10'>
+                        <description>Sharee deletes event</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETE</method>
+                                <ruri>$pcalendarhome2:/$sharedcalendar:/1.ics</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='11' ignore='no'>
+                        <description>Updated tokens</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>shared/1.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token3-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>1.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken3:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token4-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken4:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token5-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken5:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/$sharedcalendar:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token6-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>1.ics</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken6:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='12'>
+                        <description>Sharer unshares</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingremove2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='13' ignore='no'>
+                        <description>Updated tokens</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token3-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken3:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token4-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$notification:/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken4:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token5-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                                <value>1</value>
+                                        </arg>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$notification:/</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken5:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/$sharedcalendar:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token6-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>404</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+
+        <test-suite name='calendar webdav property change - home depth:infinity' ignore='no'>
+                <require-feature>
+                        <feature>sync-report-home</feature>
+                </require-feature>
+                <test name='1' ignore='no'>
+                        <description>POST invitation and accept</description>
+                        <request>
+                                <method>DELETEALL</method>
+                                <ruri>$notificationpath1:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>DELETEALL</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.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>$inviteuid2:</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                        <variable>$hosturl2:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>basename($sharedcalendar:)</variable>
+                                </grabelement>
+                        </request>
+                        <request>
+                                <method>DELETEALL</method>
+                                <ruri>$notificationpath1:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>DELETEALL</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>initial query - grab token</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$calendar:/</value>
+                                                <value>shared/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>initial query - grab token for user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$calendar:/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>Change a property by user 1</description>
+                        <request>
+                                <method>PROPPATCH</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/vcard; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/reports/sync/17.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5' ignore='no'>
+                        <description>Sync for user 1</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[!$synctoken1:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>Sync for user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[$synctoken2:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='7' ignore='no'>
+                        <description>Remove a property by user 1</description>
+                        <request>
+                                <method>PROPPATCH</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/vcard; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/reports/sync/18.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8' ignore='no'>
+                        <description>Sync for user 1</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[!$synctoken1:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='9' ignore='no'>
+                        <description>Sync for user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[$synctoken2:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='10' ignore='no'>
+                        <description>Change a property by user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPPATCH</method>
+                                <ruri>$pcalendarhome2:/$sharedcalendar:/</ruri>
+                                <data>
+                                        <content-type>text/vcard; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/reports/sync/17.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='11' ignore='no'>
+                        <description>Sync for user 1</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[$synctoken1:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='12' ignore='no'>
+                        <description>Sync for user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[$synctoken2:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='13' ignore='no'>
+                        <description>Remove a property by user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPPATCH</method>
+                                <ruri>$pcalendarhome2:/$sharedcalendar:/</ruri>
+                                <data>
+                                        <content-type>text/vcard; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/reports/sync/18.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='14' ignore='no'>
+                        <description>Sync for user 1</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[$synctoken1:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='15' ignore='no'>
+                        <description>Sync for user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-infinite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>badhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[$synctoken2:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='16'>
+                        <description>Sharer unshares</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingremove2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='calendar webdav property change - home depth:1' ignore='no'>
+                <require-feature>
+                        <feature>sync-report-home</feature>
+                </require-feature>
+                <test name='1' ignore='no'>
+                        <description>POST invitation and accept</description>
+                        <request user="$useradmin:" pswd="$pswdadmin:">
+                                <method>DELETEALL</method>
+                                <ruri>$notificationpath1:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>DELETEALL</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.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>$inviteuid2:</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                        <variable>$hosturl2:</variable>
+                                </grabelement>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>basename($sharedcalendar:)</variable>
+                                </grabelement>
+                        </request>
+                        <request user="$useradmin:" pswd="$pswdadmin:">
+                                <method>DELETEALL</method>
+                                <ruri>$notificationpath1:/</ruri>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>initial query - grab token</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$calendar:/</value>
+                                                <value>shared/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>initial query - grab token for user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-init-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$calendar:/</value>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                        <arg>
+                                                <name>ignoremissing</name>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>Change a property by user 1</description>
+                        <request>
+                                <method>PROPPATCH</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/vcard; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/reports/sync/17.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5' ignore='no'>
+                        <description>Sync for user 1</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[!$synctoken1:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='6' ignore='no'>
+                        <description>Sync for user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[$synctoken2:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='7' ignore='no'>
+                        <description>Remove a property by user 1</description>
+                        <request>
+                                <method>PROPPATCH</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/vcard; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/reports/sync/18.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='8' ignore='no'>
+                        <description>Sync for user 1</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>shared/</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[!$synctoken1:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='9' ignore='no'>
+                        <description>Sync for user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[$synctoken2:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='10' ignore='no'>
+                        <description>Change a property by user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPPATCH</method>
+                                <ruri>$pcalendarhome2:/$sharedcalendar:/</ruri>
+                                <data>
+                                        <content-type>text/vcard; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/reports/sync/17.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='11' ignore='no'>
+                        <description>Sync for user 1</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[$synctoken1:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='12' ignore='no'>
+                        <description>Sync for user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[!$synctoken2:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='13' ignore='no'>
+                        <description>Remove a property by user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PROPPATCH</method>
+                                <ruri>$pcalendarhome2:/$sharedcalendar:/</ruri>
+                                <data>
+                                        <content-type>text/vcard; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/reports/sync/18.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='14' ignore='no'>
+                        <description>Sync for user 1</description>
+                        <request print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$calendarhome1:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token1-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[$synctoken1:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken1:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='15' ignore='no'>
+                        <description>Sync for user 2</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>REPORT</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data substitutions='yes'>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/REPORT/sync-token2-level-1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>okhrefs</name>
+                                                <value>$sharedcalendar:/</value>
+                                        </arg>
+                                </verify>
+                                <verify>
+                                        <callback>xmlElementMatch</callback>
+                                        <arg>
+                                                <name>exists</name>
+                                                <value>/{DAV:}multistatus/{DAV:}sync-token[!$synctoken2:]</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>/{DAV:}multistatus/{DAV:}sync-token</name>
+                                        <variable>$synctoken2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='16'>
+                        <description>Sharer unshares</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingremove2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+        </end>
+        
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingunsharexml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-unshare.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-unshare.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-unshare.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,500 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <description>Test calendar sharing unshare/delete behavior</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+        </start>
+        
+        <test-suite name='Set up share' ignore="no">
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.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>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/Common/POST/sharedas.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{DAV:}href</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>Check accept status</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/invited2.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}uid</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Check Sharer notification collection</description>
+                        <request>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$notificationpath1:/</ruri>
+                        </request>
+                        <request print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$notificationpath1:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationreply2.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}dtstamp</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+        
+        <test-suite name='Delete' ignore="no">
+                <test name='1'>
+                        <description>Sharer adds event</description>
+                        <request print-response='no'>
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/unshare/shareedelete/1.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2' ignore='no'>
+                        <description>Sharee deletes shared calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>DELETE</method>
+                                <ruri>$shareecalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>infinity</value>
+                                </header>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3' ignore='no'>
+                        <description>No more shared calendar</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$shareecalendar:/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/resourcetype.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                        <arg>
+                                                <name>status</name>
+                                                <value>404</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>Sharer still has calendar data</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>1</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/count.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>multistatusItems</callback>
+                                        <arg>
+                                                <name>count</name>
+                                                <value>1</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='Reshare after sharee DELETE shared calendar' ignore='no'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationinvite2.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>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/Common/POST/sharedas.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{DAV:}href</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4' ignore='no'>
+                        <description>Check accept status</description>
+                        <request print-response='no'>
+                                <method>PROPFIND</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <header>
+                                        <name>Depth</name>
+                                        <value>0</value>
+                                </header>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/PROPFIND/invite.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/invited2.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}uid</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Check Sharer notification collection</description>
+                        <request>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$notificationpath1:/</ruri>
+                        </request>
+                        <request print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$notificationpath1:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/common/notificationreply2.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{http://calendarserver.org/ns/}dtstamp</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+
+        <test-suite name='Invite, display name change, uninvite' ignore="no">
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/unshare/shareruninvite/1.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath3:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath3:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/unshare/shareruninvite/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>$inviteuid2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome3:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/unshare/shareruninvite/3.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/unshare/shareruninvite/4.xml</value>
+                                        </arg>
+                                        <arg>
+                                                <name>filter</name>
+                                                <value>{DAV:}href</value>
+                                        </arg>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendar:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Sharee changes name</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>PROPPATCH</method>
+                                <ruri>$shareecalendar:/</ruri>
+                                <data>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/unshare/shareruninvite/5.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>propfindItems</callback>
+                                        <arg>
+                                                <name>okprops</name>
+                                                <value>{DAV:}displayname</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5' ignore='no'>
+                        <description>POST uninvitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV-pod/sharing/unshare/shareruninvite/6.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>Check Sharee notification collection</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath3:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath3:/</ruri>
+                                <verify>
+                                        <callback>xmlDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV-pod/sharing/unshare/shareruninvite/7.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>$inviteuid:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                        <ruri>$pnotificationpath3:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkscriptstestspodCalDAVsharingwebcalxml"></a>
<div class="addfile"><h4>Added: CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-webcal.xml (0 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-webcal.xml         (rev 0)
+++ CalDAVTester/trunk/scripts/tests-pod/CalDAV/sharing-webcal.xml        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -0,0 +1,498 @@
</span><ins>+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+        <description>Test internet calendar subscription behavior with sharing</description>
+
+        <require-feature>
+                <feature>caldav</feature>
+                <feature>webcal</feature>
+                <feature>shared-calendars</feature>
+        </require-feature>
+
+        <start>
+                <request user="$userid1:" pswd="$pswd1:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                </request>
+                <request host2="yes" user="$puserid3:" pswd="$ppswd3:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath3:/</ruri>
+                </request>
+                <request end-delete="yes">
+                        <method>MKCALENDAR</method>
+                        <ruri>$calendarhome1:/shared/</ruri>
+                        <verify>
+                                <callback>statusCode</callback>
+                        </verify>
+                </request>
+        </start>
+        
+        <test-suite name='Setup two sharees'>
+                <test name='1' ignore='no'>
+                        <description>POST invitation</description>
+                        <request print-response='no'>
+                                <method>POST</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <data>
+                                        <content-type>text/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharinginvite23-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>Check Sharee 2 notification collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid2:</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                        <variable>$hosturl2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>Sharee 2 replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome2:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply2-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendar2:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>Check Sharee 3 notification collection</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>WAITCOUNT 1</method>
+                                <ruri>$pnotificationpath3:/</ruri>
+                        </request>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>GETNEW</method>
+                                <ruri>$pnotificationpath3:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}uid</name>
+                                        <variable>$inviteuid3:</variable>
+                                </grabelement>
+                                <grabelement>
+                                        <name>{http://calendarserver.org/ns/}invite-notification/{http://calendarserver.org/ns/}hosturl/{DAV:}href</name>
+                                        <variable>$hosturl3:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>Sharee 3 replies ACCEPTED</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:" print-response='no'>
+                                <method>POST</method>
+                                <ruri>$pcalendarhome3:/</ruri>
+                                <data substitutions='yes'>
+                                        <content-type>application/xml; charset=utf-8</content-type>
+                                        <filepath>Resource/Common/POST/sharingreply3-pod.xml</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <grabelement>
+                                        <name>{DAV:}href</name>
+                                        <variable>$shareecalendar3:</variable>
+                                </grabelement>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='GET on empty calendar collection'>
+                <test name='1'>
+                        <description>GET on empty calendar collection</description>
+                        <request>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/1.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>GET on empty calendar collection - 2nd time from cache</description>
+                        <request>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/1.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>GET on empty calendar collection</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GET</method>
+                                <ruri>$shareecalendar2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/1.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>GET on empty calendar collection - 2nd time from cache</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GET</method>
+                                <ruri>$shareecalendar2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/1.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>GET on empty calendar collection</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:">
+                                <method>GET</method>
+                                <ruri>$shareecalendar3:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/1.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>GET on empty calendar collection - 2nd time from cache</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:">
+                                <method>GET</method>
+                                <ruri>$shareecalendar3:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/1.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='GET on calendar collection after initial PUT'>
+                <test name='1'>
+                        <description>GET on calendar collection after initial PUT</description>
+                        <request>
+                                <method>PUT</method>
+                                <ruri>$calendarhome1:/shared/1.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/webcal/rolled/2.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                        <request>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>GET on calendar collection after initial PUT - 2nd time from cache</description>
+                        <request>
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/2.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>GET on calendar collection after initial PUT</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GET</method>
+                                <ruri>$shareecalendar2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/3.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>GET on calendar collection after initial PUT - 2nd time from cache</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GET</method>
+                                <ruri>$shareecalendar2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/3.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>GET on calendar collection after initial PUT</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:">
+                                <method>GET</method>
+                                <ruri>$shareecalendar3:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/3.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>GET on calendar collection after initial PUT - 2nd time from cache</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:">
+                                <method>GET</method>
+                                <ruri>$shareecalendar3:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/3.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <test-suite name='GET on calendar collection after sharee PUT'>
+                <test name='1'>
+                        <description>GET on calendar collection after sharee PUT</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>PUT</method>
+                                <ruri>$shareecalendar2:/2.ics</ruri>
+                                <data>
+                                        <content-type>text/calendar; charset=utf-8</content-type>
+                                        <filepath>Resource/CalDAV/sharing/webcal/rolled/4.ics</filepath>
+                                </data>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                        </request>
+                        <request print-response="no">
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/5.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='2'>
+                        <description>GET on calendar collection after sharee PUT - 2nd time from cache</description>
+                        <request print-response="no">
+                                <method>GET</method>
+                                <ruri>$calendarhome1:/shared/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/5.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='3'>
+                        <description>GET on calendar collection after sharee PUT</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GET</method>
+                                <ruri>$shareecalendar2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/6.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='4'>
+                        <description>GET on calendar collection after sharee PUT - 2nd time from cache</description>
+                        <request host2="yes" user="$puserid2:" pswd="$ppswd2:">
+                                <method>GET</method>
+                                <ruri>$shareecalendar2:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/6.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='5'>
+                        <description>GET on calendar collection after sharee PUT</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:">
+                                <method>GET</method>
+                                <ruri>$shareecalendar3:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/7.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+                <test name='6'>
+                        <description>GET on calendar collection after sharee PUT - 2nd time from cache</description>
+                        <request host2="yes" user="$puserid3:" pswd="$ppswd3:">
+                                <method>GET</method>
+                                <ruri>$shareecalendar3:/</ruri>
+                                <verify>
+                                        <callback>statusCode</callback>
+                                </verify>
+                                <verify>
+                                        <callback>calendarDataMatch</callback>
+                                        <arg>
+                                                <name>filepath</name>
+                                                <value>Resource/CalDAV/sharing/webcal/rolled/7.ics</value>
+                                        </arg>
+                                </verify>
+                        </request>
+                </test>
+        </test-suite>
+
+        <end>
+                <request user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$notificationpath1:/</ruri>
+                </request>
+                <request host2="yes" user="$useradmin:" pswd="$pswdadmin:">
+                        <method>DELETEALL</method>
+                        <ruri>$pnotificationpath2:/</ruri>
+                        <ruri>$pnotificationpath3:/</ruri>
+                </request>
+        </end>
+
+</caldavtest>
</ins></span></pre></div>
<a id="CalDAVTestertrunkverifiersmultistatusItemspy"></a>
<div class="modfile"><h4>Modified: CalDAVTester/trunk/verifiers/multistatusItems.py (12119 => 12120)</h4>
<pre class="diff"><span>
<span class="info">--- CalDAVTester/trunk/verifiers/multistatusItems.py        2013-12-17 17:41:24 UTC (rev 12119)
+++ CalDAVTester/trunk/verifiers/multistatusItems.py        2013-12-17 19:23:03 UTC (rev 12120)
</span><span class="lines">@@ -47,9 +47,9 @@
</span><span class="cx"> prefix = prefix[0] if prefix[0] != "-" else ""
</span><span class="cx"> else:
</span><span class="cx"> prefix = uri
</span><del>- okhrefs = [prefix + i for i in okhrefs]
- nohrefs = [prefix + i for i in nohrefs]
- badhrefs = [prefix + i for i in badhrefs]
</del><ins>+ okhrefs = [(prefix + i).rstrip("/") for i in okhrefs]
+ nohrefs = [(prefix + i).rstrip("/") for i in nohrefs]
+ badhrefs = [(prefix + i).rstrip("/") for i in badhrefs]
</ins><span class="cx"> for k, v in args.items():
</span><span class="cx"> v = [prefix + i for i in v]
</span><span class="cx"> args[k] = v
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> href = response.findall("{DAV:}href")
</span><span class="cx"> if href is None or len(href) != 1:
</span><span class="cx"> return False, " Incorrect/missing DAV:Href element in response"
</span><del>- href = urllib.unquote(href[0].text)
</del><ins>+ href = urllib.unquote(href[0].text).rstrip("/")
</ins><span class="cx">
</span><span class="cx"> # Verify status
</span><span class="cx"> status = response.findall("{DAV:}status")
</span></span></pre>
</div>
</div>
</body>
</html>