juergen     2003/11/18 00:38:13

  Added:       
testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/AccessControlMethods/ACLExamples
                        01_ACL2DenyAllForGroupGrantRead.xml
                        02_ACL2DenyAllForGroupGrantWrite.xml
  Log:
  add existing functional group tests to new location
  
  Revision  Changes    Path
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/AccessControlMethods/ACLExamples/01_ACL2DenyAllForGroupGrantRead.xml
  
  Index: 01_ACL2DenyAllForGroupGrantRead.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Test to check ACL command </abstract>
      <description>
                1) MKCOL command which creates a child collection (/test)
                2) ACL command which denies all access to the group groups/%group% on 
the collection /test
                3) ACL command which grants read access to the all users
                4) Head command carried out
                </description>
      <expectedResult> Two ACL and Head commands should all return 200 OK  
</expectedResult>
    </specification>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
      </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>
        <body 
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,group,user,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8"?>
  <D:acl xmlns:D="DAV:">
    <D:ace>
      <D:principal>
        <D:href>%globalVariableRootUserPath%/groups/%group%</D:href>
      </D:principal>
      <D:deny>
        <D:privilege>
          <D:all />
        </D:privilege>
      </D:deny>
    </D:ace>
  </D:acl>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 200 OK</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>
        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <D:acl xmlns:D="DAV:">
    <D:ace>
      <D:principal>
        <D:all />
      </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>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">HEAD  
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
      </request>
      <response>
        <command>HTTP/1.1 200 OK</command>
      </response>
    </step>
    <!-- input test of read privilege -->
    <cleanup>
      <step>
        <request>
          <command varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
          <header>Content-Type: text/xml; charset=utf-8</header>
          <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <D:acl xmlns:D="DAV:" />
  
  ]]></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>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/AccessControlMethods/ACLExamples/02_ACL2DenyAllForGroupGrantWrite.xml
  
  Index: 02_ACL2DenyAllForGroupGrantWrite.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Test to check ACL command </abstract>
      <description>
                1) MKCOL command which creates a child collection (/test)
                2) ACL command which denies all access to the group %group% on the 
collection /test
                3) ACL command which grants write access to the all users
                4) PUT command carried out
                </description>
      <expectedResult> Both ACL commands should return 200 OK, PUT command should 
return 201 Created  </expectedResult>
    </specification>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
      </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>
        <body 
varUsage="globalVariableRootUserPath,globalVariableServerName,group,host"><![CDATA[<?xml
 version="1.0" encoding="utf-8"?>
  <D:acl xmlns:D="DAV:">
    <D:ace>
      <D:principal>
        <D:href>%globalVariableRootUserPath%/groups/%group%</D:href>
      </D:principal>
      <D:deny>
        <D:privilege>
          <D:all />
        </D:privilege>
      </D:deny>
    </D:ace>
  </D:acl>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 200 OK</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>
        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <D:acl xmlns:D="DAV:">
    <D:ace>
      <D:principal>
        <D:all />
      </D:principal>
      <D:grant>
        <D:privilege>
          <D:write />
        </D:privilege>
      </D:grant>
    </D:ace>
  </D:acl>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 200 OK</command>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </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>
          <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <D:acl xmlns:D="DAV:" />
  
  ]]></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>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  

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

Reply via email to