Revision: 2098 http://trac.macosforge.org/projects/calendarserver/changeset/2098 Author: cdaboo@apple.com Date: 2008-01-10 12:25:38 -0800 (Thu, 10 Jan 2008) Log Message: ----------- Tests for query match access restrictions. Modified Paths: -------------- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/20.xml CalDAVTester/branches/users/cdaboo/private_events-2082/scripts/tests/privateevents.xml Added Paths: ----------- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/26.xml CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/27.xml CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/28.xml CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/29.xml CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/30.xml CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/31.xml CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/32.xml CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/33.xml CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/34.xml CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/35.xml CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/36.xml CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/37.xml Modified: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/20.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/20.xml 2008-01-10 20:23:26 UTC (rev 2097) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/20.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -5,11 +5,9 @@ </D:prop> <C:filter> <C:comp-filter name="VCALENDAR"> -<C:comp-filter name="VEVENT"> -<C:prop-filter name="SUMMARY"> -<C:text-match>event</C:text-match> +<C:prop-filter name="VERSION"> +<C:text-match>2.0</C:text-match> </C:prop-filter> </C:comp-filter> -</C:comp-filter> </C:filter> </C:calendar-query> Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/26.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/26.xml (rev 0) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/26.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> +<D:prop> +<D:getetag/> +</D:prop> +<C:filter> +<C:comp-filter name="VCALENDAR"> +<C:comp-filter name="VEVENT"> +<C:prop-filter name="SUMMARY"> +<C:text-match>event</C:text-match> +</C:prop-filter> +</C:comp-filter> +</C:comp-filter> +</C:filter> +</C:calendar-query> Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/27.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/27.xml (rev 0) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/27.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> +<D:prop> +<D:getetag/> +</D:prop> +<C:filter> +<C:comp-filter name="VCALENDAR"> +<C:comp-filter name="VEVENT"> +<C:prop-filter name="LOCATION"> +<C:text-match>2</C:text-match> +</C:prop-filter> +</C:comp-filter> +</C:comp-filter> +</C:filter> +</C:calendar-query> Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/28.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/28.xml (rev 0) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/28.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> +<D:prop> +<D:getetag/> +</D:prop> +<C:filter> +<C:comp-filter name="VCALENDAR"> +<C:comp-filter name="VEVENT"> +<C:prop-filter name="ORGANIZER"> +<C:text-match>example</C:text-match> +</C:prop-filter> +</C:comp-filter> +</C:comp-filter> +</C:filter> +</C:calendar-query> Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/29.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/29.xml (rev 0) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/29.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> +<D:prop> +<D:getetag/> +</D:prop> +<C:filter> +<C:comp-filter name="VCALENDAR"> +<C:comp-filter name="VEVENT"> +<C:comp-filter name="VALARM"/> +</C:comp-filter> +</C:comp-filter> +</C:filter> +</C:calendar-query> Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/30.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/30.xml (rev 0) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/30.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> +<D:prop> +<D:getetag/> +</D:prop> +<D:href>$pathprefix:/copycalendar/1.ics</D:href> +<D:href>$pathprefix:/copycalendar/2.ics</D:href> +<D:href>$pathprefix:/copycalendar/3.ics</D:href> +<D:href>$pathprefix:/copycalendar/4.ics</D:href> +<D:href>$pathprefix:/copycalendar/5.ics</D:href> +</C:calendar-multiget> Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/31.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/31.xml (rev 0) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/31.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> +<D:prop> +<D:getetag/> +<C:calendar-data/> +</D:prop> +<D:href>$pathprefix:/copycalendar/2.ics</D:href> +</C:calendar-multiget> Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/32.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/32.xml (rev 0) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/32.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> +<D:prop> +<D:getetag/> +<C:calendar-data/> +</D:prop> +<D:href>$pathprefix:/copycalendar/4.ics</D:href> +</C:calendar-multiget> Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/33.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/33.xml (rev 0) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/33.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> +<D:prop> +<D:getetag/> +<C:calendar-data/> +</D:prop> +<D:href>$pathprefix:/copycalendar/5.ics</D:href> +</C:calendar-multiget> Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/34.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/34.xml (rev 0) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/34.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> +<D:prop> +<D:getetag/> +</D:prop> +<D:href>$pathprefix:/movecalendar/1.ics</D:href> +<D:href>$pathprefix:/movecalendar/2.ics</D:href> +<D:href>$pathprefix:/movecalendar/3.ics</D:href> +<D:href>$pathprefix:/movecalendar/4.ics</D:href> +<D:href>$pathprefix:/movecalendar/5.ics</D:href> +</C:calendar-multiget> Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/35.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/35.xml (rev 0) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/35.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> +<D:prop> +<D:getetag/> +<C:calendar-data/> +</D:prop> +<D:href>$pathprefix:/movecalendar/2.ics</D:href> +</C:calendar-multiget> Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/36.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/36.xml (rev 0) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/36.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> +<D:prop> +<D:getetag/> +<C:calendar-data/> +</D:prop> +<D:href>$pathprefix:/movecalendar/4.ics</D:href> +</C:calendar-multiget> Added: CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/37.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/37.xml (rev 0) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/Resource/privateevents/37.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8" ?> +<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> +<D:prop> +<D:getetag/> +<C:calendar-data/> +</D:prop> +<D:href>$pathprefix:/movecalendar/5.ics</D:href> +</C:calendar-multiget> Modified: CalDAVTester/branches/users/cdaboo/private_events-2082/scripts/tests/privateevents.xml =================================================================== --- CalDAVTester/branches/users/cdaboo/private_events-2082/scripts/tests/privateevents.xml 2008-01-10 20:23:26 UTC (rev 2097) +++ CalDAVTester/branches/users/cdaboo/private_events-2082/scripts/tests/privateevents.xml 2008-01-10 20:25:38 UTC (rev 2098) @@ -44,6 +44,30 @@ <filepath>Resource/privateevents/4.xml</filepath> </data> </request> + <request end-delete="yes"> + <method>MKCALENDAR</method> + <ruri>$pathprefix:/copycalendar/</ruri> + </request> + <request> + <method>ACL</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/4.xml</filepath> + </data> + </request> + <request end-delete="yes"> + <method>MKCALENDAR</method> + <ruri>$pathprefix:/movecalendar/</ruri> + </request> + <request> + <method>ACL</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/4.xml</filepath> + </data> + </request> </start> <test-suite name='OPTIONS header' ignore='no'> @@ -2179,7 +2203,7 @@ <test-suite name='query PUBLIC tests' ignore='no'> <test name='1'> <description>query by user01</description> - <request print-response="yes"> + <request print-response="no"> <method>REPORT</method> <ruri>$pathprefix:/sharedcalendar/</ruri> <data> @@ -2587,6 +2611,1003 @@ </test> </test-suite> + <test-suite name='query no match SUMMARY' ignore='no'> + <test name='1'> + <description>query by user01</description> + <request print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/sharedcalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/26.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>1.ics</value> + <value>2.ics</value> + <value>3.ics</value> + <value>4.ics</value> + <value>5.ics</value> + </arg> + </verify> + </request> + </test> + <test name='2'> + <description>query by user02</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/sharedcalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/26.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>1.ics</value> + <value>2.ics</value> + <value>5.ics</value> + </arg> + </verify> + </request> + </test> + <test name='3'> + <description>query by user03</description> + <request user="$userid3:" pswd="$pswd3:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/sharedcalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/26.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>1.ics</value> + <value>2.ics</value> + <value>5.ics</value> + </arg> + </verify> + </request> + </test> + </test-suite> + + <test-suite name='query no match LOCATION' ignore='no'> + <test name='1'> + <description>query by user01</description> + <request print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/sharedcalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/27.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>4.ics</value> + <value>5.ics</value> + </arg> + </verify> + </request> + </test> + <test name='2'> + <description>query by user02</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/sharedcalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/27.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>5.ics</value> + </arg> + </verify> + </request> + </test> + <test name='3'> + <description>query by user03</description> + <request user="$userid3:" pswd="$pswd3:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/sharedcalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/27.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>5.ics</value> + </arg> + </verify> + </request> + </test> + </test-suite> + + <test-suite name='query no match ORGANIZER' ignore='no'> + <test name='1'> + <description>query by user01</description> + <request print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/sharedcalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/28.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>4.ics</value> + <value>5.ics</value> + </arg> + </verify> + </request> + </test> + <test name='2'> + <description>query by user02</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/sharedcalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/28.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + </verify> + </request> + </test> + <test name='3'> + <description>query by user03</description> + <request user="$userid3:" pswd="$pswd3:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/sharedcalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/28.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + </verify> + </request> + </test> + </test-suite> + + <test-suite name='query no match VALARM' ignore='no'> + <test name='1'> + <description>query by user01</description> + <request print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/sharedcalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/29.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>2.ics</value> + <value>3.ics</value> + <value>4.ics</value> + <value>5.ics</value> + </arg> + </verify> + </request> + </test> + <test name='2'> + <description>query by user02</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/sharedcalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/29.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>2.ics</value> + </arg> + </verify> + </request> + </test> + <test name='3'> + <description>query by user03</description> + <request user="$userid3:" pswd="$pswd3:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/sharedcalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/29.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>2.ics</value> + </arg> + </verify> + </request> + </test> + </test-suite> + + <test-suite name='COPY tests' ignore='no'> + <test name='1'> + <description>copy to calendar</description> + <request print-response="no"> + <method>COPY</method> + <header> + <name>Destination</name> + <value>http://localhost:8008/$pathprefix:/copycalendar/1.ics</value> + </header> + <ruri>$pathprefix:/sharedcalendar/1.ics</ruri> + <verify> + <callback>statusCode</callback> + </verify> + </request> + </test> + <test name='2'> + <description>copy to calendar</description> + <request print-response="no"> + <method>COPY</method> + <header> + <name>Destination</name> + <value>http://localhost:8008/$pathprefix:/copycalendar/2.ics</value> + </header> + <ruri>$pathprefix:/sharedcalendar/2.ics</ruri> + <verify> + <callback>statusCode</callback> + </verify> + </request> + </test> + <test name='3'> + <description>copy to calendar</description> + <request print-response="no"> + <method>COPY</method> + <header> + <name>Destination</name> + <value>http://localhost:8008/$pathprefix:/copycalendar/3.ics</value> + </header> + <ruri>$pathprefix:/sharedcalendar/3.ics</ruri> + <verify> + <callback>statusCode</callback> + </verify> + </request> + </test> + <test name='4'> + <description>copy to calendar</description> + <request print-response="no"> + <method>COPY</method> + <header> + <name>Destination</name> + <value>http://localhost:8008/$pathprefix:/copycalendar/4.ics</value> + </header> + <ruri>$pathprefix:/sharedcalendar/4.ics</ruri> + <verify> + <callback>statusCode</callback> + </verify> + </request> + </test> + <test name='5'> + <description>copy to calendar</description> + <request print-response="no"> + <method>COPY</method> + <header> + <name>Destination</name> + <value>http://localhost:8008/$pathprefix:/copycalendar/5.ics</value> + </header> + <ruri>$pathprefix:/sharedcalendar/5.ics</ruri> + <verify> + <callback>statusCode</callback> + </verify> + </request> + </test> + <test name='6'> + <description>multiget by user01</description> + <request print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/30.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>1.ics</value> + <value>2.ics</value> + <value>3.ics</value> + <value>4.ics</value> + <value>5.ics</value> + </arg> + </verify> + </request> + </test> + <test name='7'> + <description>multiget by user02</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/30.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>1.ics</value> + <value>2.ics</value> + <value>4.ics</value> + <value>5.ics</value> + </arg> + <arg> + <name>badhrefs</name> + <value>3.ics</value> + </arg> + </verify> + </request> + </test> + <test name='8'> + <description>multiget by user03</description> + <request user="$userid3:" pswd="$pswd3:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/30.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>1.ics</value> + <value>2.ics</value> + <value>4.ics</value> + <value>5.ics</value> + </arg> + <arg> + <name>badhrefs</name> + <value>3.ics</value> + </arg> + </verify> + </request> + </test> + </test-suite> + + <test-suite name='COPY PUBLIC tests' ignore='no'> + <test name='1'> + <description>multiget by user01</description> + <request print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/31.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:PUBLIC</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event public access</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + <test name='2'> + <description>multiget by user02</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/31.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:PUBLIC</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event public access</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + <test name='3'> + <description>multiget by user03</description> + <request user="$userid3:" pswd="$pswd3:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/31.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:PUBLIC</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event public access</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + </test-suite> + + <test-suite name='COPY CONFIDENTIAL all data tests' ignore='no'> + <test name='1'> + <description>multiget by user01</description> + <request print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/32.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:CONFIDENTIAL</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event confidential access 2</value> + <value>LOCATION:confidential 2</value> + <value>ORGANIZER:mailto:user01@example.com</value> + <value>ATTENDEE:mailto:user02@example.com</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + <test name='2'> + <description>multiget by user02</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/32.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:CONFIDENTIAL</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + </arg> + <arg> + <name>notcontains</name> + <value>SUMMARY:event confidential access 2</value> + <value>LOCATION:confidential 2</value> + <value>ORGANIZER:mailto:user01@example.com</value> + <value>ATTENDEE:mailto:user02@example.com</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + <test name='3'> + <description>multiget by user03</description> + <request user="$userid3:" pswd="$pswd3:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/32.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:CONFIDENTIAL</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + </arg> + <arg> + <name>notcontains</name> + <value>SUMMARY:event confidential access 2</value> + <value>LOCATION:confidential 2</value> + <value>ORGANIZER:mailto:user01@example.com</value> + <value>ATTENDEE:mailto:user02@example.com</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + </test-suite> + + <test-suite name='COPY RESTRICTED all data tests' ignore='no'> + <test name='1'> + <description>multiget by user01</description> + <request print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/33.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:RESTRICTED</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event restricted access 2</value> + <value>LOCATION:restricted 2</value> + <value>ORGANIZER:mailto:user01@example.com</value> + <value>ATTENDEE:mailto:user02@example.com</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + <test name='2'> + <description>multiget by user02</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/33.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:RESTRICTED</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event restricted access 2</value> + <value>LOCATION:restricted 2</value> + </arg> + <arg> + <name>notcontains</name> + <value>ORGANIZER:mailto:user01@example.com</value> + <value>ATTENDEE:mailto:user02@example.com</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + <test name='3'> + <description>multiget by user03</description> + <request user="$userid3:" pswd="$pswd3:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/copycalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/33.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:RESTRICTED</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event restricted access 2</value> + <value>LOCATION:restricted 2</value> + </arg> + <arg> + <name>notcontains</name> + <value>ORGANIZER:mailto:user01@example.com</value> + <value>ATTENDEE:mailto:user02@example.com</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + </test-suite> + + <test-suite name='MOVE tests' ignore='no'> + <test name='1'> + <description>copy to calendar</description> + <request print-response="no"> + <method>MOVE</method> + <header> + <name>Destination</name> + <value>http://localhost:8008/$pathprefix:/movecalendar/1.ics</value> + </header> + <ruri>$pathprefix:/sharedcalendar/1.ics</ruri> + <verify> + <callback>statusCode</callback> + </verify> + </request> + </test> + <test name='2'> + <description>copy to calendar</description> + <request print-response="no"> + <method>MOVE</method> + <header> + <name>Destination</name> + <value>http://localhost:8008/$pathprefix:/movecalendar/2.ics</value> + </header> + <ruri>$pathprefix:/sharedcalendar/2.ics</ruri> + <verify> + <callback>statusCode</callback> + </verify> + </request> + </test> + <test name='3'> + <description>copy to calendar</description> + <request print-response="no"> + <method>MOVE</method> + <header> + <name>Destination</name> + <value>http://localhost:8008/$pathprefix:/movecalendar/3.ics</value> + </header> + <ruri>$pathprefix:/sharedcalendar/3.ics</ruri> + <verify> + <callback>statusCode</callback> + </verify> + </request> + </test> + <test name='4'> + <description>copy to calendar</description> + <request print-response="no"> + <method>MOVE</method> + <header> + <name>Destination</name> + <value>http://localhost:8008/$pathprefix:/movecalendar/4.ics</value> + </header> + <ruri>$pathprefix:/sharedcalendar/4.ics</ruri> + <verify> + <callback>statusCode</callback> + </verify> + </request> + </test> + <test name='5'> + <description>copy to calendar</description> + <request print-response="no"> + <method>MOVE</method> + <header> + <name>Destination</name> + <value>http://localhost:8008/$pathprefix:/movecalendar/5.ics</value> + </header> + <ruri>$pathprefix:/sharedcalendar/5.ics</ruri> + <verify> + <callback>statusCode</callback> + </verify> + </request> + </test> + <test name='6'> + <description>multiget by user01</description> + <request print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/34.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>1.ics</value> + <value>2.ics</value> + <value>3.ics</value> + <value>4.ics</value> + <value>5.ics</value> + </arg> + </verify> + </request> + </test> + <test name='7'> + <description>multiget by user02</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/34.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>1.ics</value> + <value>2.ics</value> + <value>4.ics</value> + <value>5.ics</value> + </arg> + <arg> + <name>badhrefs</name> + <value>3.ics</value> + </arg> + </verify> + </request> + </test> + <test name='8'> + <description>multiget by user03</description> + <request user="$userid3:" pswd="$pswd3:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/34.xml</filepath> + </data> + <verify> + <callback>multistatusItems</callback> + <arg> + <name>okhrefs</name> + <value>1.ics</value> + <value>2.ics</value> + <value>4.ics</value> + <value>5.ics</value> + </arg> + <arg> + <name>badhrefs</name> + <value>3.ics</value> + </arg> + </verify> + </request> + </test> + </test-suite> + + <test-suite name='MOVE PUBLIC tests' ignore='no'> + <test name='1'> + <description>multiget by user01</description> + <request print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/35.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:PUBLIC</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event public access</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + <test name='2'> + <description>multiget by user02</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/35.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:PUBLIC</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event public access</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + <test name='3'> + <description>multiget by user03</description> + <request user="$userid3:" pswd="$pswd3:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/35.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:PUBLIC</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event public access</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + </test-suite> + + <test-suite name='MOVE CONFIDENTIAL all data tests' ignore='no'> + <test name='1'> + <description>multiget by user01</description> + <request print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/36.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:CONFIDENTIAL</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event confidential access 2</value> + <value>LOCATION:confidential 2</value> + <value>ORGANIZER:mailto:user01@example.com</value> + <value>ATTENDEE:mailto:user02@example.com</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + <test name='2'> + <description>multiget by user02</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/36.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:CONFIDENTIAL</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + </arg> + <arg> + <name>notcontains</name> + <value>SUMMARY:event confidential access 2</value> + <value>LOCATION:confidential 2</value> + <value>ORGANIZER:mailto:user01@example.com</value> + <value>ATTENDEE:mailto:user02@example.com</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + <test name='3'> + <description>multiget by user03</description> + <request user="$userid3:" pswd="$pswd3:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/36.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:CONFIDENTIAL</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + </arg> + <arg> + <name>notcontains</name> + <value>SUMMARY:event confidential access 2</value> + <value>LOCATION:confidential 2</value> + <value>ORGANIZER:mailto:user01@example.com</value> + <value>ATTENDEE:mailto:user02@example.com</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + </test-suite> + + <test-suite name='MOVE RESTRICTED all data tests' ignore='no'> + <test name='1'> + <description>multiget by user01</description> + <request print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/37.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:RESTRICTED</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event restricted access 2</value> + <value>LOCATION:restricted 2</value> + <value>ORGANIZER:mailto:user01@example.com</value> + <value>ATTENDEE:mailto:user02@example.com</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + <test name='2'> + <description>multiget by user02</description> + <request user="$userid2:" pswd="$pswd2:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/37.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:RESTRICTED</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event restricted access 2</value> + <value>LOCATION:restricted 2</value> + </arg> + <arg> + <name>notcontains</name> + <value>ORGANIZER:mailto:user01@example.com</value> + <value>ATTENDEE:mailto:user02@example.com</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + <test name='3'> + <description>multiget by user03</description> + <request user="$userid3:" pswd="$pswd3:" print-response="no"> + <method>REPORT</method> + <ruri>$pathprefix:/movecalendar/</ruri> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/privateevents/37.xml</filepath> + </data> + <verify> + <callback>dataString</callback> + <arg> + <name>contains</name> + <value>X-CALENDARSERVER-ACCESS:RESTRICTED</value> + <value>VERSION:2.0</value> + <value>DTSTART;TZID=US/Eastern:20060101T100000</value> + <value>SUMMARY:event restricted access 2</value> + <value>LOCATION:restricted 2</value> + </arg> + <arg> + <name>notcontains</name> + <value>ORGANIZER:mailto:user01@example.com</value> + <value>ATTENDEE:mailto:user02@example.com</value> + <value>BEGIN:VALARM</value> + </arg> + </verify> + </request> + </test> + </test-suite> + <end/> </caldavtest>
participants (1)
-
source_changes@macosforge.org