juergen     2003/07/04 06:28:50

  Added:       
testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite
                        01_ACLdenyReadForGroup_GetColFile.xml
                        02_ACLgrantReadForGroup_GetColFile.xml
                        03_ACLdenyReadForOneUserOfGroup_GetColFile.xml
                        04_ACLgrantReadForOneUserOfGroup_GetColFile.xml
                        05_ACLdenyWriteForGroup_PutColFile.xml
                        06_ACLgrantWriteForGroup_PutColFile.xml
                        07_ACLdenyWriteForOneUserOfGroup_PutColFile.xml
                        08_ACLgrantWriteForOneUserOfGroup_PutColFile.xml
                        09_ACLdenyWriteForGroup_DeleteColFile.xml
                        10_ACLgrantWriteForGroup_DeleteColFile.xml
                        11_ACLdenyWriteForOneUserOfGroup_DeleteColFile.xml
                        12_ACLgrantWriteForOneUserOfGroup_DeleteColFile.xml
  Log:
  Initial version
  (Josef)
  
  Revision  Changes    Path
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite/01_ACLdenyReadForGroup_GetColFile.xml
  
  Index: 01_ACLdenyReadForGroup_GetColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Test to check if possible to get file and collection 
without read privilege for a group</abstract>
                <description>
                1) Prepare test: MKCOL /test,  PUT /test/test.xml
                2) ACL command which denys read access to %globalVariableGroup%1 on 
the /test collection
                3) %globalVariableGroup%2/%user% gets  file /test/test.xml
                4) %globalVariableGroup%1/%user% gets  file /test/test.xml
                5) %globalVariableGroup%1/%user% gets collection /test
                6) cleanup
                </description>
                <expectedResult> Two commands should return 200 OK and two 403 
Forbidden </expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/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>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Content-Type: text/xml; charset=utf-8</header>
                        <header>User-Agent: Jakarta HTTP Client/1.0</header>
                        <body 
varUsage="globalVariableGroup,globalVariableUsersPath,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]></body>
                </request>
                <response>
                        <command>HTTP/1.0 200 OK</command>
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%2%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%2%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
                        <header>Accept: */*</header>
                        <header>Accept-Language: en-us</header>
                        <header>Accept-Encoding: gzip, deflate</header>
                        <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 
NT 4.0)</header>
                        <header>Connection: Keep-Alive</header>
                </request>
             <response>
                        <command>HTTP/1.0 200 OK</command>
                        <header>Content-Type: text/xml</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 
fileReference="../../../contentDirectory/html.html"/-->
                </response>
  
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
                        <header>Accept: */*</header>
                        <header>Accept-Language: en-us</header>
                        <header>Accept-Encoding: gzip, deflate</header>
                        <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 
NT 4.0)</header>
                        <header>Connection: Keep-Alive</header>
                </request>
                <response>
                        <command>HTTP/1.0 403 Forbidden</command>
                        <body/>
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Accept: */*</header>
                        <header>Accept-Language: en-us</header>
                        <header>Accept-Encoding: gzip, deflate</header>
                        <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 
NT 4.0)</header>
                        <header>Connection: Keep-Alive</header>
                </request>
                <response>
                        <command>HTTP/1.0 403 Forbidden</command>
                        <body/>
                </response>
        </step>
        <cleanup>
                <step>
                        <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>
                        <request>
                                <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite/02_ACLgrantReadForGroup_GetColFile.xml
  
  Index: 02_ACLgrantReadForGroup_GetColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Test to check if possible to get file and collection with 
read privilege for a group</abstract>
                <description>
                1) Prepare test: MKCOL /test,  PUT /test/test.xml
                2) ACL command which grants read access to %globalVariableGroup%1 on 
the /test collection
                3) %globalVariableGroup%1/%user% gets  file /test/test.xml
                4) %globalVariableGroup%1/%user% gets collection /test
                </description>
                <expectedResult> Two Get commands should both return 200 OK 
</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/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>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Content-Type: text/xml; charset=utf-8</header>
                        <header>User-Agent: Jakarta HTTP Client/1.0</header>
                        <body 
varUsage="globalVariableGroup,globalVariableUsersPath,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1</D:href>
              </D:principal>
              <D:grant>
                 <D:privilege><D:read /></D:privilege>
              </D:grant>
           </D:ace>
        </D:acl>]]></body>
                </request>
                <response>
                        <command>HTTP/1.0 200 OK</command>
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
                        <header>Accept: */*</header>
                        <header>Accept-Language: en-us</header>
                        <header>Accept-Encoding: gzip, deflate</header>
                        <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 
NT 4.0)</header>
                        <header>Connection: Keep-Alive</header>
                </request>
                <response>
                        <command>HTTP/1.0 200 OK</command>
                        <header>Content-Type: text/xml</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 
fileReference="../../../contentDirectory/html.html"/-->
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Accept: */*</header>
                        <header>Accept-Language: en-us</header>
                        <header>Accept-Encoding: gzip, deflate</header>
                        <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 
NT 4.0)</header>
                        <header>Connection: Keep-Alive</header>
                </request>
                <response>
                        <command>HTTP/1.0 200 OK</command>
                        <header>Content-Type: text/html; charset="UTF-8"</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 
fileReference="../../../contentDirectory/html.html"/-->
                </response>
        </step>
        <cleanup>
                <step>
                        <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>
                        <request>
                                <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite/03_ACLdenyReadForOneUserOfGroup_GetColFile.xml
  
  Index: 03_ACLdenyReadForOneUserOfGroup_GetColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Test to check if possible to get file and collection 
without read privilege for a member of a group</abstract>
                <description>
                1) Prepare test: MKCOL /test,  PUT /test/test.xml
                2) ACL command which grants read access to %globalVariableGroup%1 and 
denys read access to the user %globalVariableGroup%1/%user% on the /test collection
                3) %globalVariableGroup%1/%user% gets  file /test/test.xml
                4) %globalVariableGroup%1/%user% gets collection /test
                </description>
                <expectedResult> Two Get commands should both return 403 Forbidden 
</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/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>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Content-Type: text/xml; charset=utf-8</header>
                        <header>User-Agent: Jakarta HTTP Client/1.0</header>
                        <body 
varUsage="globalVariableGroup,globalVariableUsersPath,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
        
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1/%globalVariableGroup%1%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
           
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1</D:href>
              </D:principal>
              <D:grant>
                 <D:privilege><D:read /></D:privilege>
              </D:grant>
           </D:ace>
           
        </D:acl>]]></body>
                </request>
                <response>
                        <command>HTTP/1.0 200 OK</command>
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
                        <header>Accept: */*</header>
                        <header>Accept-Language: en-us</header>
                        <header>Accept-Encoding: gzip, deflate</header>
                        <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 
NT 4.0)</header>
                        <header>Connection: Keep-Alive</header>
                </request>
                <response>
                        <command>HTTP/1.0 403 Forbidden</command>
                        <body/>
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Accept: */*</header>
                        <header>Accept-Language: en-us</header>
                        <header>Accept-Encoding: gzip, deflate</header>
                        <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 
NT 4.0)</header>
                        <header>Connection: Keep-Alive</header>
                </request>
                <response>
                        <command>HTTP/1.0 403 Forbidden</command>
                        <body/>
                </response>
        </step>
        <cleanup>
                <step>
                        <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>
                        <request>
                                <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite/04_ACLgrantReadForOneUserOfGroup_GetColFile.xml
  
  Index: 04_ACLgrantReadForOneUserOfGroup_GetColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Test to check if possible to get file and collection with 
read privilege for a member of a group</abstract>
                <description>
                1) Prepare test: MKCOL /test,  PUT /test/test.xml
                2) ACL command which grants read access to %globalVariableGroup%1 and 
denys read access to the user %globalVariableGroup%1/%user% on the /test collection
                3) %globalVariableGroup%1/%user% gets  file /test/test.xml
                4) %globalVariableGroup%1/%user% gets collection /test
                </description>
                <expectedResult> Two Get commands should both return 200 OK 
</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/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>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Content-Type: text/xml; charset=utf-8</header>
                        <header>User-Agent: Jakarta HTTP Client/1.0</header>
                        <body 
varUsage="globalVariableGroup,globalVariableUsersPath,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
                <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1/%globalVariableGroup%1%user%</D:href>
              </D:principal>
              <D:grant>
                 <D:privilege><D:read /></D:privilege>
              </D:grant>
           </D:ace>
           
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
  
        </D:acl>]]></body>
                </request>
                <response>
                        <command>HTTP/1.0 200 OK</command>
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
                        <header>Accept: */*</header>
                        <header>Accept-Language: en-us</header>
                        <header>Accept-Encoding: gzip, deflate</header>
                        <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 
NT 4.0)</header>
                        <header>Connection: Keep-Alive</header>
                </request>
                <response>
                        <command>HTTP/1.0 200 OK</command>
                        <header>Content-Type: text/xml</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 
fileReference="../../../contentDirectory/html.html"/-->
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Accept: */*</header>
                        <header>Accept-Language: en-us</header>
                        <header>Accept-Encoding: gzip, deflate</header>
                        <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 
NT 4.0)</header>
                        <header>Connection: Keep-Alive</header>
                </request>
                <response>
                        <command>HTTP/1.0 200 OK</command>
                </response>
        </step>
        <cleanup>
                <step>
                        <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>
                        <request>
                                <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite/05_ACLdenyWriteForGroup_PutColFile.xml
  
  Index: 05_ACLdenyWriteForGroup_PutColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Test to check if possible to put file and collection 
without write privilege for a group</abstract>
                <description>
                1) prepare test: MKCOL /test
                2) ACL command which denys write access to the group 
%globalVariableGroup%1 on the /test collection
                3) user %globalVariableGroup%1%user% puts file /test/test.xml
                4) user %globalVariableGroup%1%user% puts collection /test/myCollection
                5) cleanup
                </description>
                <expectedResult> Two put commands should both return 403 Forbidden 
</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Content-Type: text/xml; charset=utf-8</header>
                        <header>User-Agent: Jakarta HTTP Client/1.0</header>
                        <body 
varUsage="globalVariableGroup,globalVariableUsersPath,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1</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="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/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 403 Forbidden</command>
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test/myCollection 
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>
                </request>
                <response>
                        <command>HTTP/1.0 403 Forbidden</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
                        <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>
                        <request>
                                <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite/06_ACLgrantWriteForGroup_PutColFile.xml
  
  Index: 06_ACLgrantWriteForGroup_PutColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Test to check if possible to put file and collection with 
write privilege for a group</abstract>
                <description>
                1) prepare test: MKCOL /test
                2) ACL command which grants write access to the group 
%globalVariableGroup%1 on the /test collection
                3) user %globalVariableGroup%1%user% puts file /test/test.xml
                4) user %globalVariableGroup%1%user% puts collection /test/myCollection
                5) cleanup
                </description>
                <expectedResult> Two put commands should both return 200 OK 
</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Content-Type: text/xml; charset=utf-8</header>
                        <header>User-Agent: Jakarta HTTP Client/1.0</header>
                        <body 
varUsage="globalVariableGroup,globalVariableUsersPath,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1</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>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/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="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test/myCollection 
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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
                        <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>
                        <request>
                                <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite/07_ACLdenyWriteForOneUserOfGroup_PutColFile.xml
  
  Index: 07_ACLdenyWriteForOneUserOfGroup_PutColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Test to check if possible to put file and collection 
without write privilege for a member of a group</abstract>
                <description>
                1) prepare test: MKCOL /test
                2) ACL command which grants write acces to  %globalVariableGroup%1 and 
denys write access to the user %globalVariableGroup%1/%globalVariableGroup%/%user% on 
the /test collection
                3) user %globalVariableGroup%1%user% puts file /test/test.xml
                4) user %globalVariableGroup%1%user% makes collection 
/test/myCollection
                5) cleanup
                </description>
                <expectedResult> Two put commands should both return 403 Forbidden 
</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Content-Type: text/xml; charset=utf-8</header>
                        <header>User-Agent: Jakarta HTTP Client/1.0</header>
                        <body 
varUsage="globalVariableGroup,globalVariableUsersPath,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
        
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1/%globalVariableGroup%1%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:write /></D:privilege>
              </D:deny>
           </D:ace>
           
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1</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>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/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 403 Forbidden</command>
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test/myCollection 
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>
                </request>
                <response>
                        <command>HTTP/1.0 403 Forbidden</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
                        <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>
                        <request>
                                <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite/08_ACLgrantWriteForOneUserOfGroup_PutColFile.xml
  
  Index: 08_ACLgrantWriteForOneUserOfGroup_PutColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Test to check if possible to put file and collection with 
write privilege for a member of a group</abstract>
                <description>
                1) prepare test: MKCOL /test
                2) ACL command which denys write acces to  %globalVariableGroup%1 and 
grants write access to the user %globalVariableGroup%1/%globalVariableGroup%/%user% on 
the /test collection
                3) user %globalVariableGroup%1%user% puts file /test/test.xml
                4) user %globalVariableGroup%1%user% makes collection 
/test/myCollection
                5) cleanup
                </description>
                <expectedResult> Two put commands should both return 201 Created 
</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Content-Type: text/xml; charset=utf-8</header>
                        <header>User-Agent: Jakarta HTTP Client/1.0</header>
                        <body 
varUsage="globalVariableGroup,globalVariableUsersPath,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
                 
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1/%globalVariableGroup%1%user%</D:href>
              </D:principal>
              <D:grant>
                 <D:privilege><D:write /></D:privilege>
              </D:grant>
           </D:ace>
  
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1</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="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/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="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test/myCollection 
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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                </response>
        </step>
        <cleanup>
                <step>
                        <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>
                        <request>
                                <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite/09_ACLdenyWriteForGroup_DeleteColFile.xml
  
  Index: 09_ACLdenyWriteForGroup_DeleteColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Test to check if possible to delete file and collection 
without wrtie privilege for a group</abstract>
                <description>
                1) Prepare the test: MKCOL /test, PUT /test/test.xml
                2) ACL command which denys write access to the %globalVariableGroup%1 
on the test collection
                3) user %globalVariableGroup%1%user% deletes file /test/test.xml
                4) user %globalVariableGroup%1%user% deletes collection /test
                5) cleanup
                </description>
                <expectedResult> Two Delete commands should both return 403 Forbidden 
</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/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>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Content-Type: text/xml; charset=utf-8</header>
                        <header>User-Agent: Jakarta HTTP Client/1.0</header>
                        <body 
varUsage="globalVariableGroup,globalVariableUsersPath,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1</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="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test/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 403 Forbidden</command>
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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 207 Multi Status</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
  <D:multistatus xmlns:D="DAV:">
    <D:response>
      
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test/test.xml</D:href>
      <D:status>HTTP/1.1 403 Forbidden</D:status>
    </D:response>
    <D:response>
      <D:href>/%globalVariableServerName%/%globalVariableCollection%/test</D:href>
      <D:status>HTTP/1.1 403 Forbidden</D:status>
    </D:response>
  </D:multistatus>]]></body>
                </response>
        </step>
        <cleanup>
                <step>
                        <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>
                        <request>
                                <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite/10_ACLgrantWriteForGroup_DeleteColFile.xml
  
  Index: 10_ACLgrantWriteForGroup_DeleteColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Test to check if possible to delete file and collection 
with wrtie privilege for a group</abstract>
                <description>
                1) Prepare the test: MKCOL /test, PUT /test/test.xml
                2) ACL command which grants write access to the %globalVariableGroup%1 
on the test collection
                3) user %globalVariableGroup%1%user% deletes file /test/test.xml
                4) user %globalVariableGroup%1%user% deletes collection /test
                5) cleanup
                </description>
                <expectedResult> Two Delete commands should both return 403 Forbidden 
</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/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>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Content-Type: text/xml; charset=utf-8</header>
                        <header>User-Agent: Jakarta HTTP Client/1.0</header>
                        <body 
varUsage="globalVariableGroup,globalVariableUsersPath,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1</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>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test/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>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                        <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>
                        <request>
                                <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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 404 Not Found</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>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite/11_ACLdenyWriteForOneUserOfGroup_DeleteColFile.xml
  
  Index: 11_ACLdenyWriteForOneUserOfGroup_DeleteColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Test to check if possible to delete file and collection 
without wrtie privilege for a member of group</abstract>
                <description>
                1) Prepare the test: MKCOL /test, PUT /test/test.xml
                2) ACL command which grants write access to %globalVariableGroup%1 and 
denys write access to the user %globalVariableGroup%1%user% on the test collection
                3) %globalVariableGroup%1%user% deletes file /test/test.xml
                4) %globalVariableGroup%1%user% deletes collection /test
                5) cleanup
                </description>
                <expectedResult> Two Delete commands should both return 403 Forbidden 
</expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/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>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Content-Type: text/xml; charset=utf-8</header>
                        <header>User-Agent: Jakarta HTTP Client/1.0</header>
                        <body 
varUsage="globalVariableGroup,globalVariableUsersPath,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
  
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1/%globalVariableGroup%1%user%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:write /></D:privilege>
              </D:deny>
           </D:ace>
           
           <D:ace>
            <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1</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>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test/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 403 Forbidden</command>
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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 207 Multi Status</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
  <D:multistatus xmlns:D="DAV:">
    <D:response>
      
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test/test.xml</D:href>
      <D:status>HTTP/1.1 403 Forbidden</D:status>
    </D:response>
    <D:response>
      <D:href>/%globalVariableServerName%/%globalVariableCollection%/test</D:href>
      <D:status>HTTP/1.1 403 Forbidden</D:status>
    </D:response>
  </D:multistatus>]]></body>
                </response>
        </step>
        <cleanup>
                <step>
                        <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>
                        <request>
                                <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/groupFunctional/Principle/EitherReadorWrite/12_ACLgrantWriteForOneUserOfGroup_DeleteColFile.xml
  
  Index: 12_ACLgrantWriteForOneUserOfGroup_DeleteColFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
        <specification>
                <abstract> Test to check if possible to delete file and collection 
with wrtie privilege for a member of a group</abstract>
                <description>
                1) Prepare test: MKCOL /test,   PUT file /test/test.xml
                3) ACL command which denys write access to %globalVariableGroup%1 and 
grants write access to the user %globalVariableGroup%1/%user% on test collection
                4) user %globalVariableGroup%1%user%2 deletes file /test/test.xml
                5) user %globalVariableGroup%1%user% deletes file /test/test.xml
                6) user %globalVariableGroup%1%user% deletes collection /test
                7) cleanup
                </description>
                <expectedResult> Two commands should return 403 Forbidden, 204 No 
Content and 204 No Content </expectedResult>
        </specification>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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>
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/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>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
                        <header>Content-Type: text/xml; charset=utf-8</header>
                        <header>User-Agent: Jakarta HTTP Client/1.0</header>
                        <body 
varUsage="globalVariableGroup,globalVariableUsersPath,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
                     
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1/%globalVariableGroup%1%user%</D:href>
              </D:principal>
              <D:grant>
                 <D:privilege><D:write /></D:privilege>
              </D:grant>
           </D:ace>
           
           <D:ace>
              <D:principal>
                 
<D:href>/%globalVariableServerName%%globalVariableUsersPath%/groups/%globalVariableGroup%1</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="globalVariableGroup,user">%globalVariableGroup%1%user%2</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%2</password>
                <request>
                        <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test/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 403 Forbidden</command>
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test/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>
                </response>
        </step>
        <step>
                <user 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</user>
                <password 
varUsage="globalVariableGroup,user">%globalVariableGroup%1%user%</password>
                <request>
                        <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </response>
        </step>
        <cleanup>
                <step>
                        <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>
                        <request>
                                <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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 404 Not Found</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