[CalendarServer-changes] [7190] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Mon Mar 14 08:16:39 PDT 2011
Revision: 7190
http://trac.macosforge.org/projects/calendarserver/changeset/7190
Author: cdaboo at apple.com
Date: 2011-03-14 08:16:35 -0700 (Mon, 14 Mar 2011)
Log Message:
-----------
Test for \n in ADR property value.
Modified Paths:
--------------
CalDAVTester/trunk/scripts/tests/CardDAV/put.xml
Added Paths:
-----------
CalDAVTester/trunk/Resource/CardDAV/vcardput/12.vcf
Added: CalDAVTester/trunk/Resource/CardDAV/vcardput/12.vcf
===================================================================
--- CalDAVTester/trunk/Resource/CardDAV/vcardput/12.vcf (rev 0)
+++ CalDAVTester/trunk/Resource/CardDAV/vcardput/12.vcf 2011-03-14 15:16:35 UTC (rev 7190)
@@ -0,0 +1,12 @@
+BEGIN:VCARD
+VERSION:3.0
+N:Thompson;Default;;;
+FN:Default Thompson
+EMAIL;type=INTERNET;type=WORK;type=pref:lthompson at example.com
+TEL;type=WORK;type=pref:1-555-555-5555
+TEL;type=CELL:1-444-444-4444
+item1.ADR;type=WORK;type=pref:;;1245\, Test;Sesame Street\nOn
+ The Hill;California;11111;USA
+item1.X-ABADR:us
+UID:ED7A5AEC-AB19-4CE0-AD6A-2923A3E5C4EE-12
+END:VCARD
Modified: CalDAVTester/trunk/scripts/tests/CardDAV/put.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CardDAV/put.xml 2011-03-14 12:28:45 UTC (rev 7189)
+++ CalDAVTester/trunk/scripts/tests/CardDAV/put.xml 2011-03-14 15:16:35 UTC (rev 7190)
@@ -27,7 +27,7 @@
<start/>
- <test-suite name='PUT VCARD'>
+ <test-suite name='PUT VCARD' ignore='no'>
<test name='1' ignore='no'>
<description>PUT simple person contact</description>
<request end-delete='yes' print-response='yes'>
@@ -383,6 +383,38 @@
</verify>
</request>
</test>
+ <test name='2' ignore='no'>
+ <description>PUT with \n in ADR</description>
+ <request end-delete='yes' print-response='yes'>
+ <method>PUT</method>
+ <ruri>$addressbookpath1:/12.vcf</ruri>
+ <data>
+ <content-type>text/vcard; charset=utf-8</content-type>
+ <filepath>Resource/CardDAV/vcardput/12.vcf</filepath>
+ </data>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ <verify>
+ <callback>header</callback>
+ <arg>
+ <name>header</name>
+ <value>ETag</value>
+ </arg>
+ </verify>
+ </request>
+ <request>
+ <method>GET</method>
+ <ruri>$addressbookpath1:/12.vcf</ruri>
+ <verify>
+ <callback>calendarDataMatch</callback>
+ <arg>
+ <name>filepath</name>
+ <value>Resource/CardDAV/vcardput/12.vcf</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
</test-suite>
<end/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110314/87fd3ac3/attachment.html>
More information about the calendarserver-changes
mailing list