Skip to content
Permalink
Browse files

Test for DAV:owner property on calendar homes and resources within th…

  • Loading branch information
cyrusdaboo committed Jan 2, 2008
1 parent fde199a commit c4f14575a19acf0327a88e06312d61ed8c41cc31
Showing with 173 additions and 1 deletion.
  1. +6 −0 Resource/privateevents/2.xml
  2. +167 −1 scripts/tests/privateevents.xml
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:owner/>
</D:prop>
</D:propfind>
@@ -23,7 +23,16 @@
<caldavtest>
<description>Test private events features</description>

<start/>
<start>
<request end-delete="yes">
<method>PUT</method>
<ruri>1.ics</ruri>
<data>
<content-type>text/calendar; charset=utf-8</content-type>
<filepath>Resource/delete/1.txt</filepath>
</data>
</request>
</start>

<test-suite name='OPTIONS header' ignore='no'>
<test name='1'>
@@ -46,6 +55,163 @@
</test>
</test-suite>

<test-suite name='DAV:owner' ignore='no'>
<test name='1'>
<description>Check for no DAV:owner on root</description>
<request print-response="no">
<method>PROPFIND</method>
<header>
<name>Depth</name>
<value>0</value>
</header>
<ruri>/</ruri>
<data>
<content-type>text/xml; charset=utf-8</content-type>
<filepath>Resource/privateevents/2.xml</filepath>
</data>
<verify>
<callback>propfindItems</callback>
<arg>
<name>badprops</name>
<value>DAV:owner</value>
</arg>
</verify>
</request>
</test>
<test name='2'>
<description>Check for no DAV:owner on user calendar</description>
<request print-response="no">
<method>PROPFIND</method>
<header>
<name>Depth</name>
<value>0</value>
</header>
<ruri>$usercalendars:</ruri>
<data>
<content-type>text/xml; charset=utf-8</content-type>
<filepath>Resource/privateevents/2.xml</filepath>
</data>
<verify>
<callback>propfindItems</callback>
<arg>
<name>badprops</name>
<value>DAV:owner</value>
</arg>
</verify>
</request>
</test>
<test name='3'>
<description>Check for no DAV:owner on principal</description>
<request print-response="no">
<method>PROPFIND</method>
<header>
<name>Depth</name>
<value>0</value>
</header>
<ruri>$principal1:</ruri>
<data>
<content-type>text/xml; charset=utf-8</content-type>
<filepath>Resource/privateevents/2.xml</filepath>
</data>
<verify>
<callback>propfindItems</callback>
<arg>
<name>badprops</name>
<value>DAV:owner</value>
</arg>
</verify>
</request>
</test>
<test name='4'>
<description>Check for DAV:owner on calendar home</description>
<request print-response="no">
<method>PROPFIND</method>
<header>
<name>Depth</name>
<value>0</value>
</header>
<ruri>$pathprefix:/</ruri>
<data>
<content-type>text/xml; charset=utf-8</content-type>
<filepath>Resource/privateevents/2.xml</filepath>
</data>
<verify>
<callback>propfindItems</callback>
<arg>
<name>okprops</name>
<value>DAV:owner$&lt;href&gt;$principaluri1:&lt;/href&gt;</value>
</arg>
</verify>
</request>
</test>
<test name='5'>
<description>Check for DAV:owner on calendar</description>
<request print-response="no">
<method>PROPFIND</method>
<header>
<name>Depth</name>
<value>0</value>
</header>
<ruri>$calendarpath1:/</ruri>
<data>
<content-type>text/xml; charset=utf-8</content-type>
<filepath>Resource/privateevents/2.xml</filepath>
</data>
<verify>
<callback>propfindItems</callback>
<arg>
<name>okprops</name>
<value>DAV:owner$&lt;href&gt;$principaluri1:&lt;/href&gt;</value>
</arg>
</verify>
</request>
</test>
<test name='6'>
<description>Check for DAV:owner on calendar resource</description>
<request print-response="no">
<method>PROPFIND</method>
<header>
<name>Depth</name>
<value>0</value>
</header>
<ruri>$calendarpath1:/1.ics</ruri>
<data>
<content-type>text/xml; charset=utf-8</content-type>
<filepath>Resource/privateevents/2.xml</filepath>
</data>
<verify>
<callback>propfindItems</callback>
<arg>
<name>okprops</name>
<value>DAV:owner$&lt;href&gt;$principaluri1:&lt;/href&gt;</value>
</arg>
</verify>
</request>
</test>
<test name='7'>
<description>Check for DAV:owner on other user's calendar</description>
<request print-response="no">
<method>PROPFIND</method>
<header>
<name>Depth</name>
<value>0</value>
</header>
<ruri>$pathprefix2:/</ruri>
<data>
<content-type>text/xml; charset=utf-8</content-type>
<filepath>Resource/privateevents/2.xml</filepath>
</data>
<verify>
<callback>propfindItems</callback>
<arg>
<name>okprops</name>
<value>DAV:owner$&lt;href&gt;$principaluri2:&lt;/href&gt;</value>
</arg>
</verify>
</request>
</test>
</test-suite>

<end/>

</caldavtest>

0 comments on commit c4f1457

Please sign in to comment.
You can’t perform that action at this time.