Revision: 1588 http://trac.macosforge.org/projects/calendarserver/changeset/1588 Author: cdaboo@apple.com Date: 2007-06-06 12:02:54 -0700 (Wed, 06 Jun 2007) Log Message: ----------- Add calendar user proxy tests for scheduling operations. Modified Paths: -------------- CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml Added Paths: ----------- CalDAVTester/trunk/Resource/calendaruserproxy/9.ics Added: CalDAVTester/trunk/Resource/calendaruserproxy/9.ics =================================================================== --- CalDAVTester/trunk/Resource/calendaruserproxy/9.ics (rev 0) +++ CalDAVTester/trunk/Resource/calendaruserproxy/9.ics 2007-06-06 19:02:54 UTC (rev 1588) @@ -0,0 +1,35 @@ +BEGIN:VCALENDAR +CALSCALE:GREGORIAN +PRODID:-//Cyrusoft International\, Inc.//Mulberry v4.0//EN +VERSION:2.0 +METHOD:REQUEST +BEGIN:VTIMEZONE +LAST-MODIFIED:20040110T032845Z +TZID:US/Eastern +BEGIN:DAYLIGHT +DTSTART:20000404T020000 +RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4 +TZNAME:EDT +TZOFFSETFROM:-0500 +TZOFFSETTO:-0400 +END:DAYLIGHT +BEGIN:STANDARD +DTSTART:20001026T020000 +RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10 +TZNAME:EST +TZOFFSETFROM:-0400 +TZOFFSETTO:-0500 +END:STANDARD +END:VTIMEZONE +BEGIN:VEVENT +DTSTAMP:20051222T205953Z +CREATED:20060101T150000Z +DTSTART;TZID=US/Eastern:20060101T100000 +DURATION:PT1H +SUMMARY:event 1 +UID:54E181BC7CCC373042B28842@ninevah.local +ORGANIZER;CN=User 01:$principal: +ATTENDEE;CN=User 02;RSVP=TRUE:$principal2: +ATTENDEE;CN=User 03;RSVP=TRUE:$principal3: +END:VEVENT +END:VCALENDAR Modified: CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml =================================================================== --- CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml 2007-06-06 15:33:14 UTC (rev 1587) +++ CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml 2007-06-06 19:02:54 UTC (rev 1588) @@ -241,6 +241,32 @@ </request> </test> <test name='8'> + <description>Verify no access for scheduling</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>POST</method> + <header> + <name>Originator</name> + <value>$principal2:</value> + </header> + <header> + <name>Recipient</name> + <value>$principal2:, $principal3:</value> + </header> + <ruri>$pathprefix:/$outbox:/</ruri> + <data> + <content-type>text/calendar; charset=utf-8</content-type> + <filepath>Resource/calendaruserproxy/9.ics</filepath> + </data> + <verify> + <callback>statusCode</callback> + <arg> + <name>status</name> + <value>403</value> + </arg> + </verify> + </request> + </test> + <test name='9'> <description>Clear user02 as read-only proxy for user01</description> <request print-response="no"> <method>PROPPATCH</method> @@ -274,7 +300,7 @@ </verify> </request> </test> - <test name='9'> + <test name='10'> <description>Verify no group memberships right now</description> <request print-response="no"> <method>PROPFIND</method> @@ -293,7 +319,7 @@ </verify> </request> </test> - <test name='10'> + <test name='11'> <description>Verify no group memberships right now</description> <request print-response="no"> <method>PROPFIND</method> @@ -312,7 +338,7 @@ </verify> </request> </test> - <test name='11'> + <test name='12'> <description>Verify no access to resource</description> <request user="$userid2:" pswd="$pswd2:" print-response="no"> <method>GET</method> @@ -326,7 +352,7 @@ </verify> </request> </test> - <test name='12'> + <test name='13'> <description>Add user02 as read-write proxy for user01</description> <request print-response="no"> <method>PROPPATCH</method> @@ -360,7 +386,7 @@ </verify> </request> </test> - <test name='13'> + <test name='14'> <description>Verify no group memberships right now</description> <request print-response="no"> <method>PROPFIND</method> @@ -383,7 +409,7 @@ </verify> </request> </test> - <test name='14'> + <test name='15'> <description>Verify single group membership</description> <request print-response="no"> <method>PROPFIND</method> @@ -406,7 +432,7 @@ </verify> </request> </test> - <test name='15'> + <test name='16'> <description>Verify access to resource</description> <request user="$userid2:" pswd="$pswd2:" print-response="no"> <method>GET</method> @@ -420,7 +446,7 @@ </verify> </request> </test> - <test name='16'> + <test name='17'> <description>Verify access to resource</description> <request user="$userid2:" pswd="$pswd2:" print-response="no"> <method>PUT</method> @@ -434,7 +460,55 @@ </verify> </request> </test> - <test name='17'> + <test name='18'> + <description>Verify access for scheduling</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>POST</method> + <header> + <name>Originator</name> + <value>$principal2:</value> + </header> + <header> + <name>Recipient</name> + <value>$principal2:, $principal3:</value> + </header> + <ruri>$pathprefix:/$outbox:/</ruri> + <data> + <content-type>text/calendar; charset=utf-8</content-type> + <filepath>Resource/calendaruserproxy/9.ics</filepath> + </data> + <verify> + <callback>statusCode</callback> + </verify> + </request> + </test> + <test name='19'> + <description>Verify no access for scheduling</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>POST</method> + <header> + <name>Originator</name> + <value>$principal:</value> + </header> + <header> + <name>Recipient</name> + <value>$principal2:, $principal3:</value> + </header> + <ruri>$pathprefix:/$outbox:/</ruri> + <data> + <content-type>text/calendar; charset=utf-8</content-type> + <filepath>Resource/calendaruserproxy/9.ics</filepath> + </data> + <verify> + <callback>statusCode</callback> + <arg> + <name>status</name> + <value>403</value> + </arg> + </verify> + </request> + </test> + <test name='20'> <description>Clear user02 as read-write proxy for user01</description> <request print-response="no"> <method>PROPPATCH</method> @@ -468,7 +542,7 @@ </verify> </request> </test> - <test name='18'> + <test name='21'> <description>Verify no group memberships right now</description> <request print-response="no"> <method>PROPFIND</method> @@ -487,7 +561,7 @@ </verify> </request> </test> - <test name='19'> + <test name='22'> <description>Verify no group memberships right now</description> <request print-response="no"> <method>PROPFIND</method> @@ -506,7 +580,7 @@ </verify> </request> </test> - <test name='20'> + <test name='23'> <description>Verify no access to resource</description> <request user="$userid2:" pswd="$pswd2:" print-response="no"> <method>GET</method> @@ -520,7 +594,7 @@ </verify> </request> </test> - <test name='21'> + <test name='24'> <description>Try to add user02 and a bogus user as read-write proxy for user01</description> <request print-response="no"> <method>PROPPATCH</method>
participants (1)
-
source_changes@macosforge.org