Merge branch 'master' of github.com:DAViCal/davical into github
[davical.git] / testing / tests / regression-suite / 0942-REPORT-principal-property-search.test
blob87ac7383cd2ed738926efa5e00db099140e862db
2 # Do a principal-property-search REPORT request
3 TYPE=REPORT
4 URL=http://regression.host/caldav.php/
5 HEAD
7 HEADER=User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20101013 Thunderbird/1.5.0.7
8 HEADER=Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
9 HEADER=Accept-Language: en-us,en;q=0.5
10 HEADER=Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
11 HEADER=Content-Type: text/xml
12 HEADER=Depth: 0
15 BEGINDATA
16 <?xml version="1.0" encoding="utf-8" ?>
17 <principal-property-search xmlns="DAV:" xmlns:CalDAV="urn:ietf:params:xml:ns:caldav" xmlns:CS="http://calendarserver.org/ns/" type="INDIVIDUAL" test="anyof">
18  <property-search>
19   <prop>
20    <displayname/>
21   </prop>
22   <match match-type="starts-with">user</match>
23  </property-search>
24  <property-search>
25   <prop>
26    <CS:email-address-set/>
27   </prop>
28   <match match-type="starts-with">user</match>
29  </property-search>
30  <property-search>
31   <prop>
32    <CS:first-name/>
33   </prop>
34   <match match-type="starts-with">user</match>
35  </property-search>
36  <property-search>
37   <prop>
38    <CS:last-name/>
39   </prop>
40   <match match-type="starts-with">user</match>
41  </property-search>
42  <prop>
43   <CS:email-address-set/>
44   <CalDAV:calendar-user-address-set/>
45   <CalDAV:calendar-user-type/>
46   <displayname/>
47   <CS:last-name/>
48   <CS:first-name/>
49   <CS:record-type/>
50   <principal-URL/>
51  </prop>
52 </principal-property-search>
53 ENDDATA