juergen     2002/06/24 04:23:04

  Added:       
testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlProperties
                        PropFind-Supported-Privilege-Set.xml
                        PropFind-Principal-collection-set.xml
                        PropFind-Owner.xml
                        PropFind-Current-User-Privilege-Set.xml
                        PropFind-ACL.xml PropFind-ACL-Semantics.xml
  Log:
  New ACL test cases
  
  Revision  Changes    Path
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlProperties/PropFind-Supported-Privilege-Set.xml
  
  Index: PropFind-Supported-Privilege-Set.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract>Test to check Suported-privilege-set property on a 
collection</abstract>
                
                <description>1) Propfind on a collection to check for 
"Suported-privilege-set" property.</description>
                
                <expectedResult>Property found by propFind</expectedResult>
        </specification>
  
  <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND 
/%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:propfind xmlns:D="DAV:">
        <D:prop>
           <D:supported-privilege-set/>
        </D:prop>
     </D:propfind>]]>
     </body>
    </request>
    
    <response>
     <command>HTTP/1.0 207 Multi Status</command>
     <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
  <multistatus xmlns="DAV:">
    <response>
      <href>/%globalVariableServerName%/%globalVariableCollection%</href>
      <propstat>
        <prop>
          <supported-privilege-set>
            <supported-privilege>
              <privilege>
                <all />
              </privilege>
              <description>Any operation</description>
              <privilege>
                <read />
              </privilege>
              <description>Read any object</description>
            </supported-privilege>
            <supported-privilege>
              <privilege>
                <write />
              </privilege>
              <description>Write any object</description>
              <privilege>
                <read-acl />
              </privilege>
              <description>Read the ACL</description>
            </supported-privilege>
            <supported-privilege>
              <privilege>
                <write-acl />
              </privilege>
              <description>Write the ACL</description>
            </supported-privilege>
          </supported-privilege-set>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]>
  </body>
    </response>
   </step>
  
  </test>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlProperties/PropFind-Principal-collection-set.xml
  
  Index: PropFind-Principal-collection-set.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract>Test to check Principle-Collection property on a 
collection</abstract>
                
                <description>1) Propfind on a collection to check for 
"Principle-Collection" property.</description>
                
                <expectedResult>Property found by propFind</expectedResult>
        </specification>
  
  
  
  <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND 
/%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:propfind xmlns:D="DAV:">
        <D:prop>
           <D:principal-collection-set/>
         </D:prop>
      </D:propfind>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 207 Multi Status</command>
     <header>Content-Type: text/xml; charset=utf-8</header>
     <body 
varUsage="globalVariableCollection,userNumber,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
  <D:multistatus xmlns:D="DAV:">
    <D:response>
      <D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
      <D:propstat>
        <D:prop>
          <D:principal-collection-set>
            <D:href>/%globalVariableServerName%/administration/security/users</D:href>
          </D:principal-collection-set>
        </D:prop>
        <D:status>HTTP/1.1 200 OK</D:status>
      </D:propstat>
    </D:response>
  </D:multistatus>]]>
     </body>
    </response>
   </step>
  
  </test>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlProperties/PropFind-Owner.xml
  
  Index: PropFind-Owner.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract>Test to check Owner property on a collection</abstract>
                
                <description>1) Propfind on a collection to check for "Owner" 
property.</description>
                
                <expectedResult>Property found by propFind</expectedResult>
        </specification>
  
  
  
  <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND 
/%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:propfind xmlns:D="DAV:">
        <D:prop>
           <D:owner/>
         </D:prop>
      </D:propfind>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 207 Multi Status</command>
     <header>Content-Type: text/xml; charset=utf-8</header>
     <body 
varUsage="globalVariableCollection,userNumber,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
     <D:multistatus xmlns:D="DAV:">
    <D:response>
      <D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
      <D:propstat>
        <D:prop>
          <D:owner>
            <D:href>/administration/security/users/</D:href>
          </D:owner>
        </D:prop>
        <D:status>HTTP/1.1 200 OK</D:status>
      </D:propstat>
    </D:response>
    </D:multistatus>]]>
     </body>
    </response>
   </step>
  
  </test>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlProperties/PropFind-Current-User-Privilege-Set.xml
  
  Index: PropFind-Current-User-Privilege-Set.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract>Test to check Current-user-privilege-set property on a 
collection</abstract>
                
                <description>1) Propfind on a collection to check for 
"Current-user-privilege-set" property.</description>
                
                <expectedResult>Property found by propFind</expectedResult>
        </specification>
  
  <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND 
/%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:propfind xmlns:D="DAV:">
        <D:prop>
           <D:current-user-privilege-set/>
        </D:prop>
     </D:propfind>]]>
     </body>
    </request>
    
    <response>
     <command>HTTP/1.0 207 Multi Status</command>
     <header>Content-Type: text/xml; charset=utf-8</header>
     <body 
varUsage="globalVariableCollection,userNumber,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
  <D:multistatus xmlns:D="DAV:">
    <D:response>
      <D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
      <D:propstat>
        <D:prop>
          <D:current-user-privilege-set>
            <D:privilege>
              <D:read />
            </D:privilege>
            <D:privilege>
              <D:write />
            </D:privilege>
            <D:privilege>
              <D:read-acl />
            </D:privilege>
            <D:privilege>
              <D:write-acl />
            </D:privilege>
            <D:privilege>
              <D:all />
            </D:privilege>
          </D:current-user-privilege-set>
        </D:prop>
        <D:status>HTTP/1.1 200 OK</D:status>
      </D:propstat>
    </D:response>
  </D:multistatus>]]>
     </body>
    </response>
   </step>
  
  </test>
  
  
  
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlProperties/PropFind-ACL.xml
  
  Index: PropFind-ACL.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract>Test to check ACL property on a collection</abstract>
                
                <description>1) Propfind on a collection to check for "ACL" 
property.</description>
                
                <expectedResult>Property found by propFind</expectedResult>
        </specification>
  
  
  
  <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND 
/%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:propfind xmlns:D="DAV:">
        <D:prop>
           <D:acl />
         </D:prop>
      </D:propfind>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 207 Multi Status</command>
     <header>Content-Type: text/xml; charset=utf-8</header>
     <body 
varUsage="globalVariableCollection,userNumber,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
  <multistatus xmlns="DAV:">
    <response>
      <href>/%globalVariableServerName%/%globalVariableCollection%</href>
      <propstat>
        <prop>
          <acl>
            <ace>
              <principal>
                <all />
              </principal>
              <grant>
                <privilege>
                  <all />
                </privilege>
              </grant>
            </ace>
            <ace>
              <principal>
                <href>/%globalVariableServerName%/administration/security/users</href>
              </principal>
              <grant>
                <privilege>
                  <all />
                </privilege>
              </grant>
              <protected />
              <inherited>
                <href>/%globalVariableServerName%/</href>
              </inherited>
            </ace>
          </acl>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]>
     </body>
    </response>
   </step>
  
  </test>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlProperties/PropFind-ACL-Semantics.xml
  
  Index: PropFind-ACL-Semantics.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
      
  <test>
  
        <specification>
                <abstract>Test to check ACL-Semantics property on a 
collection</abstract>
                
                <description>1) Propfind on a collection to check for "ACL-Semantics" 
property.</description>
                
                <expectedResult>Property found by propFind</expectedResult>
        </specification>
  
  
  
  <step>
    <request>
     <command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND 
/%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:propfind xmlns:D="DAV:">
        <D:prop>
           <D:acl-semantics/>
         </D:prop>
      </D:propfind>]]>
     </body>
    </request>
    <response>
     <command>HTTP/1.0 207 Multi Status</command>
     <header>Content-Type: text/xml; charset=utf-8</header>
     <body 
varUsage="globalVariableCollection,userNumber,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8" ?>
  <multistatus xmlns="DAV:">
    <response>
      <href>/%globalVariableServerName%/%globalVariableCollection%</href>
      <propstat>
        <prop>
          <acl-semantics>
            <ace-combination>
              <all-grant-before-any-deny />
            </ace-combination>
            <required-principal>
              <all />
            </required-principal>
          </acl-semantics>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]>
     </body>
    </response>
   </step>
  
  </test>
  
  
  

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

Reply via email to