[CalendarServer-changes] [5546] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 29 13:39:13 PDT 2010
Revision: 5546
http://trac.macosforge.org/projects/calendarserver/changeset/5546
Author: cdaboo at apple.com
Date: 2010-04-29 13:39:11 -0700 (Thu, 29 Apr 2010)
Log Message:
-----------
Tests for CS:allowed-sharing-modes property.
Modified Paths:
--------------
CalDAVTester/trunk/scripts/tests/CalDAV/sharing-feature.xml
Added Paths:
-----------
CalDAVTester/trunk/Resource/CalDAV/sharing/feature/allowed/
CalDAVTester/trunk/Resource/CalDAV/sharing/feature/allowed/1.xml
Added: CalDAVTester/trunk/Resource/CalDAV/sharing/feature/allowed/1.xml
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/sharing/feature/allowed/1.xml (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/sharing/feature/allowed/1.xml 2010-04-29 20:39:11 UTC (rev 5546)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:S="http://calendarserver.org/ns/">
+<D:prop>
+<S:allowed-sharing-modes/>
+</D:prop>
+</D:propfind>
Modified: CalDAVTester/trunk/scripts/tests/CalDAV/sharing-feature.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/sharing-feature.xml 2010-04-29 20:28:56 UTC (rev 5545)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/sharing-feature.xml 2010-04-29 20:39:11 UTC (rev 5546)
@@ -59,6 +59,53 @@
</test>
</test-suite>
+ <test-suite name='Allowed modes'>
+ <test name='1' ignore='no'>
+ <description>Check mode</description>
+ <request print-response='no'>
+ <method>PROPFIND</method>
+ <ruri>$calendarpath1:/</ruri>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/CalDAV/sharing/feature/allowed/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value><![CDATA[http://calendarserver.org/ns/allowed-sharing-modes$<can-be-shared/>]]></value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='1' ignore='no'>
+ <description>No mode on inbox</description>
+ <request print-response='no'>
+ <method>PROPFIND</method>
+ <ruri>$inboxpath1:/</ruri>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/CalDAV/sharing/feature/allowed/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>badprops</name>
+ <value>http://calendarserver.org/ns/allowed-sharing-modes</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
+
<test-suite name='Upgrade calendar to shared'>
<test name='1'>
<description>Create new calendar</description>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100429/7d4ccfc4/attachment.html>
More information about the calendarserver-changes
mailing list