[CalendarServer-changes] [2981] CalDAVTester/branches/users/cdaboo/implicitauto-2948/scripts/tests
source_changes at macosforge.org
source_changes at macosforge.org
Thu Sep 11 11:52:46 PDT 2008
Revision: 2981
http://trac.macosforge.org/projects/calendarserver/changeset/2981
Author: cdaboo at apple.com
Date: 2008-09-11 11:52:46 -0700 (Thu, 11 Sep 2008)
Log Message:
-----------
Better testing for implicit.
Modified Paths:
--------------
CalDAVTester/branches/users/cdaboo/implicitauto-2948/scripts/tests/scheduleimplicit-compatability.xml
CalDAVTester/branches/users/cdaboo/implicitauto-2948/scripts/tests/schedulepostnormal.xml
Modified: CalDAVTester/branches/users/cdaboo/implicitauto-2948/scripts/tests/scheduleimplicit-compatability.xml
===================================================================
--- CalDAVTester/branches/users/cdaboo/implicitauto-2948/scripts/tests/scheduleimplicit-compatability.xml 2008-09-11 18:52:30 UTC (rev 2980)
+++ CalDAVTester/branches/users/cdaboo/implicitauto-2948/scripts/tests/scheduleimplicit-compatability.xml 2008-09-11 18:52:46 UTC (rev 2981)
@@ -21,10 +21,24 @@
-->
<caldavtest>
- <description>Test implicit scheduling compatability with old-style POST scheduling</description>
+ <description>Test implicit scheduling compatibility with old-style POST scheduling</description>
- <start/>
+ <start>
+ <request>
+ <method>DELETEALL</method>
+ <ruri>$pathprefix:/$inbox:/</ruri>
+ </request>
+ <request user="$userid2:" pswd="$pswd2:">
+ <method>DELETEALL</method>
+ <ruri>$pathprefix2:/$inbox:/</ruri>
+ </request>
+ <request user="$userid3:" pswd="$pswd3:">
+ <method>DELETEALL</method>
+ <ruri>$pathprefix3:/$inbox:/</ruri>
+ </request>
+ </start>
+
<test-suite name='OPTIONS header' ignore='no'>
<test name='1'>
<description>Look for options header tag on principal</description>
@@ -60,6 +74,97 @@
</test>
</test-suite>
+ <test-suite name="POSTs ignored" ignore='no'>
+ <test name='1'>
+ <description>Initial REQUEST</description>
+ <request print-response='no'>
+ <method>POST</method>
+ <header>
+ <name>Originator</name>
+ <value>$cuaddralt1:</value>
+ </header>
+ <header>
+ <name>Recipient</name>
+ <value>$cuaddralt2:, $cuaddralt3:</value>
+ </header>
+ <ruri>$pathprefix:/outbox/</ruri>
+ <data>
+ <content-type>text/calendar; charset=utf-8</content-type>
+ <filepath>Resource/schedulenormal/1.ics</filepath>
+ </data>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ </request>
+ </test>
+ <test name='2'>
+ <description>Make sure no resource exists</description>
+ <request print-response='no'>
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>1</value>
+ </header>
+ <ruri>$pathprefix:/$outbox:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/schedulenormal/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>multistatusItems</callback>
+ <arg>
+ <name>count</name>
+ <value>0</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='3'>
+ <description>Make sure no resource exists</description>
+ <request user="$userid2:" pswd="$pswd2:" print-response='no'>
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>1</value>
+ </header>
+ <ruri>$pathprefix2:/$inbox:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/schedulenormal/3.xml</filepath>
+ </data>
+ <verify>
+ <callback>multistatusItems</callback>
+ <arg>
+ <name>count</name>
+ <value>0</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='4'>
+ <description>Make sure no resource exists</description>
+ <request user="$userid3:" pswd="$pswd3:" print-response='no'>
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>1</value>
+ </header>
+ <ruri>$pathprefix3:/$inbox:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/schedulenormal/3.xml</filepath>
+ </data>
+ <verify>
+ <callback>multistatusItems</callback>
+ <arg>
+ <name>count</name>
+ <value>0</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
+
<end/>
</caldavtest>
Modified: CalDAVTester/branches/users/cdaboo/implicitauto-2948/scripts/tests/schedulepostnormal.xml
===================================================================
--- CalDAVTester/branches/users/cdaboo/implicitauto-2948/scripts/tests/schedulepostnormal.xml 2008-09-11 18:52:30 UTC (rev 2980)
+++ CalDAVTester/branches/users/cdaboo/implicitauto-2948/scripts/tests/schedulepostnormal.xml 2008-09-11 18:52:46 UTC (rev 2981)
@@ -20,7 +20,7 @@
DRI: Cyrus Daboo, cdaboo at apple.com
-->
-<caldavtest>
+<caldavtest ignore-all="yes">
<description>Test normal POST operations in CalDAV</description>
<start>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080911/dee14b47/attachment.html
More information about the calendarserver-changes
mailing list