[CalendarServer-changes] [15512] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Mon Apr 18 08:12:49 PDT 2016
Revision: 15512
http://trac.calendarserver.org//changeset/15512
Author: cdaboo at apple.com
Date: 2016-04-18 08:12:49 -0700 (Mon, 18 Apr 2016)
Log Message:
-----------
Make sure CS:record-type is properly returned on a proxy resource.
Modified Paths:
--------------
CalDAVTester/trunk/scripts/tests/CalDAV/calendaruserproxy.xml
Added Paths:
-----------
CalDAVTester/trunk/Resource/CalDAV/calendaruserproxy/22.xml
Added: CalDAVTester/trunk/Resource/CalDAV/calendaruserproxy/22.xml
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/calendaruserproxy/22.xml (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/calendaruserproxy/22.xml 2016-04-18 15:12:49 UTC (rev 15512)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
+<D:prop>
+<D:group-member-set/>
+<D:group-membership/>
+<CS:record-type/>
+</D:prop>
+</D:propfind>
Modified: CalDAVTester/trunk/scripts/tests/CalDAV/calendaruserproxy.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/calendaruserproxy.xml 2016-04-16 00:58:05 UTC (rev 15511)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/calendaruserproxy.xml 2016-04-18 15:12:49 UTC (rev 15512)
@@ -2831,6 +2831,54 @@
</test>
</test-suite>
+ <test-suite name='Expected proxy properties'>
+ <test name='1'>
+ <request>
+ <method>PROPFIND</method>
+ <ruri>$principal1:calendar-proxy-read/</ruri>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/CalDAV/calendaruserproxy/22.xml</filepath>
+ </data>
+ <verify>
+ <callback>xmlElementMatch</callback>
+ <arg>
+ <name>exists</name>
+ <value>$verify-property-prefix:/{DAV:}group-member-set</value>
+ <value>$verify-property-prefix:/{DAV:}group-membership</value>
+ <value>$verify-property-prefix:/{$CS:}record-type[=read-delegate-group]</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='2'>
+ <request>
+ <method>PROPFIND</method>
+ <ruri>$principal1:calendar-proxy-write/</ruri>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/CalDAV/calendaruserproxy/22.xml</filepath>
+ </data>
+ <verify>
+ <callback>xmlElementMatch</callback>
+ <arg>
+ <name>exists</name>
+ <value>$verify-property-prefix:/{DAV:}group-member-set</value>
+ <value>$verify-property-prefix:/{DAV:}group-membership</value>
+ <value>$verify-property-prefix:/{$CS:}record-type[=write-delegate-group]</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
<end>
<request>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20160418/98167adb/attachment.html>
More information about the calendarserver-changes
mailing list