[CalendarServer-changes] [1063]
CalDAVTester/trunk/scripts/tests/proppatch.xml
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jan 18 13:15:52 PST 2007
Revision: 1063
http://trac.macosforge.org/projects/calendarserver/changeset/1063
Author: cdaboo at apple.com
Date: 2007-01-18 13:15:52 -0800 (Thu, 18 Jan 2007)
Log Message:
-----------
Add test for preservation of XML attributes in properties.
Modified Paths:
--------------
CalDAVTester/trunk/scripts/tests/proppatch.xml
Modified: CalDAVTester/trunk/scripts/tests/proppatch.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/proppatch.xml 2007-01-18 21:15:03 UTC (rev 1062)
+++ CalDAVTester/trunk/scripts/tests/proppatch.xml 2007-01-18 21:15:52 UTC (rev 1063)
@@ -23,7 +23,7 @@
<caldavtest>
<start/>
- <test-suite name='prop patches'>
+ <test-suite name='prop patches' ignore='no'>
<test name='1' ignore="no">
<description>PROPPATCH of details: good</description>
<request print-response='no'>
@@ -160,6 +160,90 @@
</test>
</test-suite>
+ <test-suite name='prop patch property attributes'>
+ <test name='1' ignore="no">
+ <description>PROPPATCH with property XML attribute</description>
+ <request print-response='no'>
+ <method>PROPPATCH</method>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/proppatches/6.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:details</value>
+ </arg>
+ </verify>
+ </request>
+ <request print-response='no'>
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/proppatches/7.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:details$My Name</value>
+ </arg>
+ </verify>
+ <verify>
+ <callback>dataString</callback>
+ <arg>
+ <name>contains</name>
+ <value>details xml:lang='en'</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='2' ignore="no">
+ <description>PROPPATCH of details: remove it</description>
+ <request print-response='no'>
+ <method>PROPPATCH</method>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/proppatches/3.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:details</value>
+ </arg>
+ </verify>
+ </request>
+ <request print-response='no'>
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/proppatches/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:details2$My Name 2</value>
+ </arg>
+ <arg>
+ <name>badprops</name>
+ <value>DAV:details</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
+
<end/>
</caldavtest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070118/e1f84553/attachment.html
More information about the calendarserver-changes
mailing list