juergen     2003/09/03 08:46:17

  Modified:    testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/Write
                        ACLdenygrantWriteInheritancePRoppatchLockFile.xml
  Log:
  proppatch now allowed for getcontenttype property (Josef)
  
  Revision  Changes    Path
  1.9       +137 -125  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/Write/ACLdenygrantWriteInheritancePRoppatchLockFile.xml
  
  Index: ACLdenygrantWriteInheritancePRoppatchLockFile.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/Write/ACLdenygrantWriteInheritancePRoppatchLockFile.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ACLdenygrantWriteInheritancePRoppatchLockFile.xml 26 Aug 2003 08:17:34 -0000     
 1.8
  +++ ACLdenygrantWriteInheritancePRoppatchLockFile.xml 3 Sep 2003 15:46:17 -0000      
 1.9
  @@ -1,134 +1,146 @@
   <?xml version="1.0" encoding="utf-8"?>
  +<!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by jhd (Software AG) -->
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
   <test>
  -  <specification>
  -    <abstract>Test to check if deny write privilege with inheritance 
works.</abstract>
  -    <description>1) ACL command which denys write access to the user %user% 2) Put 
Command which creates a child File 3) ACL command which grants write access to the 
user %user% 2) PropPatch command attempted on child file 3) Lock command attempted on 
child file</description>
  -    <expectedResult>PropPatch and Lock should both complete 
succesfully</expectedResult>
  -  </specification>
  -  <step>
  -    <user varUsage="user">%user%2</user>
  -    <password varUsage="user">%user%2</password>
  -    <request>
  -      <command varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  -      <header>Content-Type: text/xml; charset=utf-8</header>
  -      <header>User-Agent: Jakarta HTTP Client/1.0</header>
  -      <body 
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:"> <D:ace> <D:principal> 
<D:href>%globalVariableUserPath%</D:href> </D:principal> <D:deny> 
<D:privilege><D:write /></D:privilege> </D:deny> </D:ace> </D:acl>]]></body>
  -    </request>
  -    <response>
  -      <command>HTTP/1.0 200 OK</command>
  -    </response>
  -  </step>
  -  <step>
  -    <user varUsage="user">%user%2</user>
  -    <password varUsage="user">%user%2</password>
  -    <request>
  -      <command varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  -      <header>Accept-Language: en-us</header>
  -      <header>Translate: f</header>
  -      <header>User-Agent: Microsoft Data Access Internet Publishing Provider 
DAV</header>
  -      <header>Connection: Keep-Alive</header>
  -      <body fileReference="../../../../contentDirectory/validXML.xm1" />
  -    </request>
  -    <response>
  -      <command>HTTP/1.0 201 Created</command>
  -    </response>
  -  </step>
  -  <step>
  -    <user varUsage="user">%user%2</user>
  -    <password varUsage="user">%user%2</password>
  -    <request>
  -      <command varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  -      <header>Content-Type: text/xml; charset=utf-8</header>
  -      <header>User-Agent: Jakarta HTTP Client/1.0</header>
  -      <body 
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:"> <D:ace> <D:principal> 
<D:href>%globalVariableUserPath%</D:href> </D:principal> <D:grant> 
<D:privilege><D:write /></D:privilege> </D:grant> </D:ace> </D:acl>]]></body>
  -    </request>
  -    <response>
  -      <command>HTTP/1.0 200 OK</command>
  -    </response>
  -  </step>
  -  <step>
  -    <request>
  -      <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  -      <header>Content-Type: text/xml</header>
  -      <header>User-Agent: Microsoft Data Access Internet Publishing Provider 
DAV</header>
  -      <header>Accept-Language: en-us</header>
  -      <header>Translate: f</header>
  -      <header>Pragma: no-cache</header>
  -      <header>Connection: close</header>
  -      <body>&lt;?xml version="1.0" ?&gt; &lt;D:propertyupdate xmlns:D="DAV:" 
xmlns:Z="http://www.com/"&gt; &lt;D:remove&gt; &lt;D:prop&gt; 
&lt;D:getcontenttype/&gt; &lt;/D:prop&gt; &lt;/D:remove&gt; 
&lt;/D:propertyupdate&gt;</body>
  -    </request>
  -    <response>
  +     <specification>
  +             <abstract>Test to check if deny write privilege with inheritance 
works.</abstract>
  +             <description>1) ACL command which denys write access to the user 
%user% 2) Put Command which creates a child File 3) ACL command which grants write 
access to the user %user% 2) PropPatch command attempted on child file 3) Lock command 
attempted on child file</description>
  +             <expectedResult>PropPatch and Lock should both complete 
succesfully</expectedResult>
  +     </specification>
  +     <step>
  +             <user varUsage="user">%user%2</user>
  +             <password varUsage="user">%user%2</password>
  +             <request>
  +                     <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  +                     <header>Content-Type: text/xml; charset=utf-8</header>
  +                     <header>User-Agent: Jakarta HTTP Client/1.0</header>
  +                     <body 
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:"> <D:ace> <D:principal> 
<D:href>%globalVariableUserPath%</D:href> </D:principal> <D:deny> 
<D:privilege><D:write /></D:privilege> </D:deny> </D:ace> </D:acl>]]></body>
  +             </request>
  +             <response>
  +                     <command>HTTP/1.0 200 OK</command>
  +             </response>
  +     </step>
  +     <step>
  +             <user varUsage="user">%user%2</user>
  +             <password varUsage="user">%user%2</password>
  +             <request>
  +                     <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +                     <header>Accept-Language: en-us</header>
  +                     <header>Translate: f</header>
  +                     <header>User-Agent: Microsoft Data Access Internet Publishing 
Provider DAV</header>
  +                     <header>Connection: Keep-Alive</header>
  +                     <body 
fileReference="../../../../contentDirectory/validXML.xm1"/>
  +             </request>
  +             <response>
  +                     <command>HTTP/1.0 201 Created</command>
  +             </response>
  +     </step>
  +     <step>
  +             <user varUsage="user">%user%2</user>
  +             <password varUsage="user">%user%2</password>
  +             <request>
  +                     <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  +                     <header>Content-Type: text/xml; charset=utf-8</header>
  +                     <header>User-Agent: Jakarta HTTP Client/1.0</header>
  +                     <body 
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:"> <D:ace> <D:principal> 
<D:href>%globalVariableUserPath%</D:href> </D:principal> <D:grant> 
<D:privilege><D:write /></D:privilege> </D:grant> </D:ace> </D:acl>]]></body>
  +             </request>
  +             <response>
  +                     <command>HTTP/1.0 200 OK</command>
  +             </response>
  +     </step>
  +     <step>
  +             <request>
  +                     <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +                     <header>Content-Type: text/xml</header>
  +                     <header>User-Agent: Microsoft Data Access Internet Publishing 
Provider DAV</header>
  +                     <header>Accept-Language: en-us</header>
  +                     <header>Translate: f</header>
  +                     <header>Pragma: no-cache</header>
  +                     <header>Connection: close</header>
  +                     <body>&lt;?xml version="1.0" ?&gt; &lt;D:propertyupdate 
xmlns:D="DAV:" xmlns:Z="http://www.com/"&gt; &lt;D:remove&gt; &lt;D:prop&gt; 
&lt;D:getcontenttype/&gt; &lt;/D:prop&gt; &lt;/D:remove&gt; 
&lt;/D:propertyupdate&gt;</body>
  +             </request>
  +             <response>
                        <command>HTTP/1.0 207 Multi-Status</command>
                        <header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
                        <header>Content-Language: en</header>
                        <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; 
Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems 
Inc.)</header>
  -                     <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?><D:multistatus 
xmlns:D="DAV:"><D:response><D:href>/%globalVariableServerName%/%globalVariableCollection%/test.xml</D:href><D:propstat><D:prop><D:getcontenttype
 /></D:prop><D:status>HTTP/1.1 409 
Conflict</D:status><D:responsedescription><D:error><D:cannot-modify-protected-property 
/></D:error></D:responsedescription></D:propstat></D:response></D:multistatus>]]></body>
  +                     <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[
  +                     <?xml version="1.0" encoding="UTF-8"?>
  +                     <D:multistatus xmlns:D="DAV:">
  +                     <D:response>
  +                     
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test.xml</D:href>
  +                     <D:propstat>
  +               <D:prop>
  +               <D:getcontenttype />
  +             </D:prop>
  +             <D:status>HTTP/1.1 200 OK</D:status>
  +                     </D:propstat>
  +                     </D:response>
  +                     </D:multistatus>
  +                     ]]></body>
  +             </response>
  +     </step>
  +     <step>
  +             <request>
  +                     <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">LOCK 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +                     <header>Connection: Keep-Alive, TE</header>
  +                     <header>TE: trailers, deflate, gzip, compress</header>
  +                     <header>User-Agent: UCI DAV Explorer/0.70 
RPT-HTTPClient/0.3-2E</header>
  +                     <header>Timeout: Second-604800</header>
  +                     <header>Accept-Encoding: deflate, gzip, x-gzip, compress, 
x-compress</header>
  +                     <header>Content-type: text/xml</header>
  +                     <body><![CDATA[<?xml version="1.0"?><A:lockinfo 
xmlns:A="DAV:"><A:locktype><A:write/></A:locktype><A:lockscope><A:exclusive/></A:lockscope><A:owner><A:href></A:href></A:owner></A:lockinfo>]]></body>
  +             </request>
  +             <response>
  +                     <command>HTTP/1.0 200 OK</command>
  +                     <body 
varUsage="globalVariableUserPath,globalVariableServerName,user,host"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?> <D:prop xmlns:D="DAV:"> <D:lockdiscovery> 
<D:activelock> <D:locktype> <D:write /> </D:locktype> <D:lockscope> <D:exclusive /> 
</D:lockscope> <D:depth>infinity</D:depth> <D:owner 
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><A:href
 xmlns:A="DAV:" /></D:owner> <D:timeout>*</D:timeout> <D:locktoken> <D:href>*</D:href> 
</D:locktoken> <d:principal-URL 
xmlns:d="DAV:"><d:href>%globalVariableUserPath%</d:href></d:principal-URL></D:activelock>
 </D:lockdiscovery> </D:prop>]]></body>
  +             </response>
  +     </step>
  +     <step>
  +             <request>
  +                     <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">UNLOCK 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +                     <header>Connection: Keep-Alive, TE</header>
  +                     <header>TE: trailers, deflate, gzip, compress</header>
  +                     <header>User-Agent: UCI DAV Explorer/0.70 
RPT-HTTPClient/0.3-2E</header>
  +                     <header varUsage="automaticVariable1">Lock-Token: 
%automaticVariable1%</header>
  +                     <header>Accept-Encoding: deflate, gzip, x-gzip, compress, 
x-compress</header>
  +             </request>
  +             <response>
  +                     <command>HTTP/1.0 204 No Content</command>
  +                     <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; 
Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems 
Inc.)</header>
                </response>
  -    
  -  </step>
  -  <step>
  -    <request>
  -      <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">LOCK 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  -      <header>Connection: Keep-Alive, TE</header>
  -      <header>TE: trailers, deflate, gzip, compress</header>
  -      <header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
  -      <header>Timeout: Second-604800</header>
  -      <header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
  -      <header>Content-type: text/xml</header>
  -      <body><![CDATA[<?xml version="1.0"?><A:lockinfo 
xmlns:A="DAV:"><A:locktype><A:write/></A:locktype><A:lockscope><A:exclusive/></A:lockscope><A:owner><A:href></A:href></A:owner></A:lockinfo>]]></body>
  -    </request>
  -    <response>
  -      <command>HTTP/1.0 200 OK</command>
  -      <body 
varUsage="globalVariableUserPath,globalVariableServerName,user,host"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?> <D:prop xmlns:D="DAV:"> <D:lockdiscovery> 
<D:activelock> <D:locktype> <D:write /> </D:locktype> <D:lockscope> <D:exclusive /> 
</D:lockscope> <D:depth>infinity</D:depth> <D:owner 
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><A:href
 xmlns:A="DAV:" /></D:owner> <D:timeout>*</D:timeout> <D:locktoken> <D:href>*</D:href> 
</D:locktoken> <d:principal-URL 
xmlns:d="DAV:"><d:href>%globalVariableUserPath%</d:href></d:principal-URL></D:activelock>
 </D:lockdiscovery> </D:prop>]]></body>
  -    </response>
  -  </step>
  -  <step>
  -    <request>
  -      <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">UNLOCK 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  -      <header>Connection: Keep-Alive, TE</header>
  -      <header>TE: trailers, deflate, gzip, compress</header>
  -      <header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
  -      <header varUsage="automaticVariable1">Lock-Token: 
%automaticVariable1%</header>
  -      <header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
  -    </request>
  -    <response>
  -      <command>HTTP/1.0 204 No Content</command>
  -      <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; 
Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
  -    </response>
  -  </step>
  -  <cleanup>
  -    <step>
  -      <user varUsage="user">%user%2</user>
  -      <password varUsage="user">%user%2</password>
  -      <request>
  -        <command varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  -        <header>Content-Type: text/xml; charset=utf-8</header>
  -        <header>User-Agent: Jakarta HTTP Client/1.0</header>
  -        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:"> </D:acl>]]></body>
  -      </request>
  -      <response>
  -        <command>HTTP/1.0 200 OK</command>
  -      </response>
  -    </step>
  -    <step>
  -      <user varUsage="user">%user%2</user>
  -      <password varUsage="user">%user%2</password>
  -      <request>
  -        <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  -        <header>Accept-Language: en-us</header>
  -        <header>Destroy: NoUndelete</header>
  -        <header>Translate: f</header>
  -        <header>User-Agent: Microsoft Data Access Internet Publishing Provider 
DAV</header>
  -        <header>Connection: Keep-Alive</header>
  -      </request>
  -      <response>
  -        <command>HTTP/1.0 204 No Content</command>
  -        <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
  -        <header>Content-Language: en</header>
  -        <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; 
Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
  -      </response>
  -    </step>
  -  </cleanup>
  +     </step>
  +     <cleanup>
  +             <step>
  +                     <user varUsage="user">%user%2</user>
  +                     <password varUsage="user">%user%2</password>
  +                     <request>
  +                             <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  +                             <header>Content-Type: text/xml; charset=utf-8</header>
  +                             <header>User-Agent: Jakarta HTTP Client/1.0</header>
  +                             <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?> <D:acl xmlns:D="DAV:"> </D:acl>]]></body>
  +                     </request>
  +                     <response>
  +                             <command>HTTP/1.0 200 OK</command>
  +                     </response>
  +             </step>
  +             <step>
  +                     <user varUsage="user">%user%2</user>
  +                     <password varUsage="user">%user%2</password>
  +                     <request>
  +                             <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +                             <header>Accept-Language: en-us</header>
  +                             <header>Destroy: NoUndelete</header>
  +                             <header>Translate: f</header>
  +                             <header>User-Agent: Microsoft Data Access Internet 
Publishing Provider DAV</header>
  +                             <header>Connection: Keep-Alive</header>
  +                     </request>
  +                     <response>
  +                             <command>HTTP/1.0 204 No Content</command>
  +                             <header>Date: Tue, 13 Feb 2001 17:14:41 
GMT+01:00</header>
  +                             <header>Content-Language: en</header>
  +                             <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 
(JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems 
Inc.)</header>
  +                     </response>
  +             </step>
  +     </cleanup>
   </test>
  -
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to