juergen     2003/11/21 05:10:22

  Modified:    testsuite/testsuite/junit/xmltestcases/ACL/functional/users/Report
                        ACLPrincipalMatchPrincipal-PropertyReport.xml
  Log:
  (fga) improved test description.
  
  Revision  Changes    Path
  1.4       +84 -83    
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/users/Report/ACLPrincipalMatchPrincipal-PropertyReport.xml
  
  Index: ACLPrincipalMatchPrincipal-PropertyReport.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/users/Report/ACLPrincipalMatchPrincipal-PropertyReport.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ACLPrincipalMatchPrincipal-PropertyReport.xml     20 Nov 2003 09:42:08 -0000     
 1.3
  +++ ACLPrincipalMatchPrincipal-PropertyReport.xml     21 Nov 2003 13:10:22 -0000     
 1.4
  @@ -1,91 +1,92 @@
   <?xml version="1.0" encoding="utf-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
   <test>
  -  <specification>
  -    <abstract> Test to check REPORT command </abstract>
  -    <description>
  -             1) MKCOL command which creates a child collection (/test)
  -             2) PUT command which creates a file in the collection /test
  -             3) REPORT command which obtains information about the resource
  +     <specification>
  +             <abstract> Test to check REPORT command for 
DAV:principal-report.</abstract>
  +             <description>
  +                     1) MKCOL command which creates a child collection (/test).
  +                     2) PUT command which creates a file in the collection /test.
  +                     3) REPORT on the collection for the DAV:principal-match.
  +                     4) Cleanup.
                </description>
  -    <expectedResult> The (principal-match) Report returning a Dav:response element 
for each member of the collection that matchs the %user% (the %user% is owner of it) 
</expectedResult>
  -  </specification>
  -  <step>
  -    <user varUsage="user">%user%</user>
  -    <password varUsage="user">%user%</password>
  -    <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>
  -    <user varUsage="user">%user%</user>
  -    <password varUsage="user">%user%</password>
  -    <request>
  -      <command varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/files.xml 
HTTP/1.1</command>
  -      <body fileReference="../../../../contentDirectory/validXML.xm1" />
  -    </request>
  -    <response>
  -      <command>HTTP/1.0 201 Created</command>
  -    </response>
  -  </step>
  -  <step>
  -    <user varUsage="user">%user%2</user>
  -    <password varUsage="user">%user%2</password>
  -    <request>
  -      <command varUsage="globalVariableCollection,globalVariableServerName">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>
  -  <step>
  -    <user varUsage="user">%user%</user>
  -    <password varUsage="user">%user%</password>
  -    <request>
  -      <command varUsage="globalVariableCollection,globalVariableServerName">REPORT 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.0</command>
  -      <header>Content-Type: text/xml; charset="utf-8"</header>
  -      <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  -<D:principal-match xmlns:D="DAV:">
  -  <D:principal-property>
  -    <D:owner />
  -  </D:principal-property>
  -</D:principal-match>
  -
  +             <expectedResult>
  +                     The response contains the created collection and the resource.
  +             </expectedResult>
  +     </specification>
  +     <step>
  +             <user varUsage="user">%user%</user>
  +             <password varUsage="user">%user%</password>
  +             <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>
  +             <user varUsage="user">%user%</user>
  +             <password varUsage="user">%user%</password>
  +             <request>
  +                     <command 
varUsage="globalVariableCollection,globalVariableServerName">PUT 
/%globalVariableServerName%/%globalVariableCollection%/test/files.xml 
HTTP/1.1</command>
  +                     <body 
fileReference="../../../../contentDirectory/validXML.xm1"/>
  +             </request>
  +             <response>
  +                     <command>HTTP/1.0 201 Created</command>
  +             </response>
  +     </step>
  +     <step>
  +             <user varUsage="user">%user%2</user>
  +             <password varUsage="user">%user%2</password>
  +             <request>
  +                     <command 
varUsage="globalVariableCollection,globalVariableServerName">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>
  +     <step>
  +             <user varUsage="user">%user%</user>
  +             <password varUsage="user">%user%</password>
  +             <request>
  +                     <command 
varUsage="globalVariableCollection,globalVariableServerName">REPORT 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.0</command>
  +                     <header>Content-Type: text/xml; charset="utf-8"</header>
  +                     <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  +                             <D:principal-match xmlns:D="DAV:">
  +                                     <D:principal-property>
  +                                             <D:owner/>
  +                                     </D:principal-property>
  +                             </D:principal-match>
   ]]></body>
  -    </request>
  -    <response>
  -      <command>HTTP/1.0 207 Multi-Status</command>
  -      <body 
varUsage="host,user,globalVariableServerName,globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  -<D:multistatus xmlns:D="DAV:">
  -  <D:response>
  -    
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test/files.xml</D:href>
  -    <D:status>HTTP/1.1 200 OK</D:status>
  -  </D:response>
  -  <D:response>
  -    <D:href>/%globalVariableServerName%/%globalVariableCollection%/test</D:href>
  -    <D:status>HTTP/1.1 200 OK</D:status>
  -  </D:response>
  -</D:multistatus>
  -
  +             </request>
  +             <response>
  +                     <command>HTTP/1.0 207 Multi-Status</command>
  +                     <body 
varUsage="host,user,globalVariableServerName,globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  +                             <D:multistatus xmlns:D="DAV:">
  +                                     <D:response>
  +                                             
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test/files.xml</D:href>
  +                                             <D:status>HTTP/1.1 200 OK</D:status>
  +                                     </D:response>
  +                                     <D:response>
  +                                             
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test</D:href>
  +                                             <D:status>HTTP/1.1 200 OK</D:status>
  +                                     </D:response>
  +                             </D:multistatus>
   ]]></body>
  -    </response>
  -  </step>
  -  <!-- input test of read privilege -->
  -  <cleanup>
  -    <step>
  -      <user varUsage="user">%user%2</user>
  -      <password varUsage="user">%user%2</password>
  -      <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>
  +             </response>
  +     </step>
  +     <!-- input test of read privilege -->
  +     <cleanup>
  +             <step>
  +                     <user varUsage="user">%user%2</user>
  +                     <password varUsage="user">%user%2</password>
  +                     <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