Merge branch 'master' of github.com:DAViCal/davical into github
[davical.git] / testing / tests / regression-suite / 0842-Spec-PROPPATCH-3.test
blob334868293ef444980e5db43fc5a9f45d118145e2
2 # Check for support of PROPPATCH method
4 # An attempt to remove the collection resourcetype should fail.
6 TYPE=PROPPATCH
7 URL=http://regression.host/caldav.php/user1/home/
8 HEADER=User-agent: SpecTest PROPPATCH
9 HEADER=Content-type: text/xml
10 HEAD
12 BEGINDATA
13 <?xml version="1.0" encoding="utf-8" ?> 
14 <propertyupdate xmlns="DAV:"> 
15   <remove> 
16     <prop> 
17       <resourcetype> 
18         <collection/>
19       </resourcetype> 
20     </prop> 
21   </remove> 
22 </propertyupdate>
23 ENDDATA
25 QUERY
26 SELECT dav_displayname, is_calendar, resourcetypes,
27        modified > (current_timestamp - '60 seconds'::interval) AS changed_last_60secs 
28   FROM collection WHERE dav_name = '/user1/home/';
29 ENDQUERY