Revision: 6459 http://trac.macosforge.org/projects/calendarserver/changeset/6459 Author: cdaboo@apple.com Date: 2010-10-25 09:12:40 -0700 (Mon, 25 Oct 2010) Log Message: ----------- Missed this from some changes done a while back. Added Paths: ----------- CalDAVTester/trunk/scripts/tests/CalDAV/conditional.xml Added: CalDAVTester/trunk/scripts/tests/CalDAV/conditional.xml =================================================================== --- CalDAVTester/trunk/scripts/tests/CalDAV/conditional.xml (rev 0) +++ CalDAVTester/trunk/scripts/tests/CalDAV/conditional.xml 2010-10-25 16:12:40 UTC (rev 6459) @@ -0,0 +1,98 @@ +<?xml version="1.0" standalone="no"?> + +<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd"> + +<!-- + Copyright (c) 2006-2010 Apple Inc. All rights reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + --> + +<caldavtest> + <description>Test ACLs on the server</description> + + <require-feature> + <feature>caldav</feature> + </require-feature> + + <start/> + + <test-suite name='Last_modified handling' ignore='no'> + + <test name='1' ignore='no'> + <description>Regular PROPFIND</description> + <request print-response='no'> + <method>PROPFIND</method> + <ruri>$calendarpath1:/</ruri> + <header> + <name>Depth</name> + <value>0</value> + </header> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/Common/PROPFIND/displayname.xml</filepath> + </data> + <verify> + <callback>statusCode</callback> + <arg> + <name>status</name> + <value>207</value> + </arg> + </verify> + <grabheader> + <name>Last-Modified</name> + <variable>$last-modified:</variable> + </grabheader> + </request> + </test> + + <test name='2' ignore='no'> + <description>Regular PROPFIND</description> + <request print-response='no'> + <method>DELAY</method> + <ruri>2</ruri> + </request> + </test> + + <test name='3' ignore='no'> + <description>Conditional PROPFIND</description> + <request print-response='no'> + <method>PROPFIND</method> + <ruri>$calendarpath1:/</ruri> + <header> + <name>Depth</name> + <value>0</value> + </header> + <header> + <name>If-Modified-Since</name> + <value>$last-modified:</value> + </header> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/Common/PROPFIND/displayname.xml</filepath> + </data> + <verify> + <callback>statusCode</callback> + <arg> + <name>status</name> + <value>304</value> + </arg> + </verify> + </request> + </test> + + </test-suite> + + <end/> + +</caldavtest>