[CalendarServer-changes] [1142] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 6 19:00:33 PST 2007
Revision: 1142
http://trac.macosforge.org/projects/calendarserver/changeset/1142
Author: cdaboo at apple.com
Date: 2007-02-06 19:00:33 -0800 (Tue, 06 Feb 2007)
Log Message:
-----------
Test for notifications not going back to the principal that caused them. Also test that notifications
go to some other user who is subscribed.
Modified Paths:
--------------
CalDAVTester/trunk/scripts/tests/notifications.xml
Added Paths:
-----------
CalDAVTester/trunk/Resource/dropbox/7.xml
Added: CalDAVTester/trunk/Resource/dropbox/7.xml
===================================================================
--- CalDAVTester/trunk/Resource/dropbox/7.xml (rev 0)
+++ CalDAVTester/trunk/Resource/dropbox/7.xml 2007-02-07 03:00:33 UTC (rev 1142)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:acl xmlns:D="DAV:">
+ <D:ace>
+ <D:principal>
+ <D:href>$principal2:</D:href>
+ </D:principal>
+ <D:grant>
+ <D:privilege><D:read/></D:privilege>
+ </D:grant>
+ </D:ace>
+</D:acl>
Modified: CalDAVTester/trunk/scripts/tests/notifications.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/notifications.xml 2007-02-07 02:57:34 UTC (rev 1141)
+++ CalDAVTester/trunk/scripts/tests/notifications.xml 2007-02-07 03:00:33 UTC (rev 1142)
@@ -44,6 +44,26 @@
<filepath>Resource/dropbox/5.xml</filepath>
</data>
</request>
+ <request>
+ <method>ACL</method>
+ <ruri>$pathprefix:/dropbox/ABC2/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/dropbox/7.xml</filepath>
+ </data>
+ </request>
+ <request user='$userid2:' pswd='$pswd2:'>
+ <method>POST</method>
+ <ruri>$pathprefix:/dropbox/ABC2/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/dropbox/5.xml</filepath>
+ </data>
+ </request>
+ <request user='$userid2:' pswd='$pswd2:'>
+ <method>DELETEALL</method>
+ <ruri>$pathprefix2:/notifications/</ruri>
+ </request>
</start>
<test-suite name='No notifications'>
@@ -83,6 +103,28 @@
</verify>
</request>
</test>
+ <test name='3'>
+ <description>No notifications</description>
+ <request user='$userid2:' pswd='$pswd2:' print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>1</value>
+ </header>
+ <ruri>$pathprefix2:/notifications/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/dropbox/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>multistatusItems</callback>
+ <arg>
+ <name>count</name>
+ <value>0</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
</test-suite>
<test-suite name='PUT Notification'>
@@ -101,7 +143,7 @@
</request>
</test>
<test name='2'>
- <description>Notifications</description>
+ <description>No notifications</description>
<request print-response="no">
<method>PROPFIND</method>
<header>
@@ -111,6 +153,28 @@
<ruri>$pathprefix:/notifications/</ruri>
<data>
<content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/dropbox/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>multistatusItems</callback>
+ <arg>
+ <name>count</name>
+ <value>0</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='3'>
+ <description>Notifications</description>
+ <request user='$userid2:' pswd='$pswd2:' print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>1</value>
+ </header>
+ <ruri>$pathprefix2:/notifications/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
<filepath>Resource/dropbox/4.xml</filepath>
</data>
<verify>
@@ -124,7 +188,7 @@
<callback>propfindItems</callback>
<arg>
<name>ignore</name>
- <value>$pathprefix:/notifications/</value>
+ <value>$pathprefix2:/notifications/</value>
</arg>
<arg>
<name>okprops</name>
@@ -164,6 +228,32 @@
</request>
</test>
<test name='2'>
+ <description>Remove existing notifications</description>
+ <request user='$userid2:' pswd='$pswd2:'>
+ <method>DELETEALL</method>
+ <ruri>$pathprefix2:/notifications/</ruri>
+ </request>
+ <request user='$userid2:' pswd='$pswd2:' print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>1</value>
+ </header>
+ <ruri>$pathprefix2:/notifications/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/dropbox/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>multistatusItems</callback>
+ <arg>
+ <name>count</name>
+ <value>0</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='3'>
<description>Delete drop box resource</description>
<request>
<method>DELETE</method>
@@ -173,8 +263,8 @@
</verify>
</request>
</test>
- <test name='3'>
- <description>Notifications</description>
+ <test name='4'>
+ <description>No notifications</description>
<request print-response="no">
<method>PROPFIND</method>
<header>
@@ -184,6 +274,28 @@
<ruri>$pathprefix:/notifications/</ruri>
<data>
<content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/dropbox/2.xml</filepath>
+ </data>
+ <verify>
+ <callback>multistatusItems</callback>
+ <arg>
+ <name>count</name>
+ <value>0</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='5'>
+ <description>Notifications</description>
+ <request user='$userid2:' pswd='$pswd2:' print-response="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>1</value>
+ </header>
+ <ruri>$pathprefix2:/notifications/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
<filepath>Resource/dropbox/4.xml</filepath>
</data>
<verify>
@@ -197,7 +309,7 @@
<callback>propfindItems</callback>
<arg>
<name>ignore</name>
- <value>$pathprefix:/notifications/</value>
+ <value>$pathprefix2:/notifications/</value>
</arg>
<arg>
<name>okprops</name>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070206/4e8d6a06/attachment.html
More information about the calendarserver-changes
mailing list