You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by pn...@apache.org on 2002/08/05 16:20:23 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Working_resource_feature/Checkout_Method ChoutParentVsnChoutforkForbid.xml

pnever      2002/08/05 07:20:23

  Modified:    testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Working_resource_feature/Checkout_Method
                        ChoutParentVsnChoutforkForbid.xml
  Log:
  Fixed error in expected value of REPORT step.
  
  Revision  Changes    Path
  1.4       +76 -99    jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Working_resource_feature/Checkout_Method/ChoutParentVsnChoutforkForbid.xml
  
  Index: ChoutParentVsnChoutforkForbid.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Working_resource_feature/Checkout_Method/ChoutParentVsnChoutforkForbid.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ChoutParentVsnChoutforkForbid.xml	5 Aug 2002 08:22:08 -0000	1.3
  +++ ChoutParentVsnChoutforkForbid.xml	5 Aug 2002 14:20:23 -0000	1.4
  @@ -1,125 +1,102 @@
   <?xml version="1.0" encoding="UTF-8"?>
  - <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  -    
  +<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
   <test>
  -
   	<specification>
   		<abstract> Test to check if auto-update property exists on a workingresource </abstract>
  -		
   		<description>
   		1) PUT command creates a file
   		2) VERSION-CONTROL command which puts the file under version control
   		3) PUT command creates another version
   		4) Checkout command which attempts to check out the parent version
   		</description>
  -		
   		<expectedResult> Checkout command should return 403 Forbidden </expectedResult>
   	</specification>
  -  
  -  <step>
  -  <request>
  -   <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  -
  -
  -
  -   <body fileReference="../../../../contentDirectory/validXML.xm1">
  -   </body>
  -  </request>
  -  <response>
  -   <command>HTTP/1.0 201 Created</command>
  -   <header>Date: Wed, 14 Mar 2001 15:45:51 GMT+01:00</header>
  -
  -
  -  </response>
  - </step>
  - 
  - 
  -<step>
  -  <request>
  -     <command varUsage="globalVariableCollection,globalVariableServerName">VERSION-CONTROL /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>   
  -     <header>Content-type: text/xml; charset="utf-8"</header>
  -  </request>
  -  <response>
  -   <command>HTTP/1.0 200 OK</command>
  -  </response>
  - </step>
  - 
  - 
  -   <step>
  -  <request>
  -   <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  -
  -
  -
  -   <body fileReference="../../../../contentDirectory/validXML.xm1">
  -   </body>
  -  </request>
  +	<step>
  +		<request>
  +			<command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +			<body fileReference="../../../../contentDirectory/validXML.xm1"/>
  +		</request>
  +		<response>
  +			<command>HTTP/1.0 201 Created</command>
  +			<header>Date: Wed, 14 Mar 2001 15:45:51 GMT+01:00</header>
  +		</response>
  +	</step>
  +	<step>
  +		<request>
  +			<command varUsage="globalVariableCollection,globalVariableServerName">VERSION-CONTROL /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +			<header>Content-type: text/xml; charset="utf-8"</header>
  +		</request>
  +		<response>
  +			<command>HTTP/1.0 200 OK</command>
  +		</response>
  +	</step>
  +	<step>
  +		<request>
  +			<command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +			<body fileReference="../../../../contentDirectory/validXML.xm1"/>
  +		</request>
  +		<response>
  +			<command>HTTP/1.0 204 No Content</command>
  +		</response>
  +	</step>
  +	<step>
  +		<request>
  +			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName">REPORT /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +			<header>Content-Type: text/xml</header>
  +			<body><![CDATA[<D:version-tree xmlns:D="DAV:"><D:prop><D:version-history/></D:prop></D:version-tree>]]></body>
  +		</request>
  +		<response>
  +			<command>HTTP/1.0 207 Multi Status</command>
  +			<body varUsage="globalVariableCollection,globalVariableServerName,VH" varDefinition="VH" varPath="multistatus/response/propstat/prop/version-history/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  +<multistatus xmlns="DAV:">
     <response>
  -   <command>HTTP/1.0 204 No Content</command>
  +    <href>%VH%/1.0</href>
  +    <propstat>
  +      <prop>
  +        <version-history>
  +          <href>%VH%</href>
  +        </version-history>
  +      </prop>
  +      <status>HTTP/1.1 200 OK</status>
  +    </propstat>
     </response>
  - </step>
  - 
  -      	   <step>
  - 	      <request>
  -   	         <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">REPORT /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  -
  -   		 <header>Content-Type: text/xml</header>
  -   		 <body><![CDATA[<D:version-tree xmlns:D="DAV:"><D:prop><D:version-history/></D:prop></D:version-tree>]]></body>
  -  	      </request>
  -  	      <response>
  -   	         <command>HTTP/1.0 207 Multi Status</command>
  -   		 
  -    		    <body varUsage="globalVariableCollection,globalVariableServerName" varDefinition="VH" varPath="multistatus/response/propstat/prop/version-history/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  -<multistatus xmlns="DAV:">
     <response>
  -    <href>*</href>
  +    <href>%VH%/1.1</href>
       <propstat>
         <prop>
           <version-history>
  -          <href>*</href>
  +          <href>%VH%</href>
           </version-history>
         </prop>
         <status>HTTP/1.1 200 OK</status>
       </propstat>
     </response>
  -</multistatus>]]>
  -                  </body>
  -  	      </response>
  - 	   </step>
  -    
  -<step>
  -  <request>
  -     <command varUsage="VH">CHECKOUT %VH%/1.0 HTTP/1.1</command>   
  -     <header>Content-type: text/xml; charset="utf-8"</header>
  -     <body><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  +</multistatus>]]></body>
  +		</response>
  +	</step>
  +	<step>
  +		<request>
  +			<command varUsage="VH">CHECKOUT %VH%/1.0 HTTP/1.1</command>
  +			<header>Content-type: text/xml; charset="utf-8"</header>
  +			<body><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
           <D:checkout xmlns:D="DAV:" xmlns:R="http://www.com/">
              <D:apply-to-version/>
  -        </D:checkout>]]>
  -     </body>    
  -  </request>
  -  <response>
  -   <command>HTTP/1.0 (403,409)</command>
  -  </response>
  - </step>       
  -
  -  <cleanup>
  -  
  -<step>
  -  <request>
  -   <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  -
  -   <header>Destroy: NoUndelete</header>
  -
  -
  -  </request>
  -  <response>
  -   <command>HTTP/1.0 204 No Content</command>
  -   <header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
  -
  -
  -  </response>
  - </step>
  - 
  - </cleanup>
  -
  +        </D:checkout>]]></body>
  +		</request>
  +		<response>
  +			<command>HTTP/1.0 (403,409)</command>
  +		</response>
  +	</step>
  +	<cleanup>
  +		<step>
  +			<request>
  +				<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +				<header>Destroy: NoUndelete</header>
  +			</request>
  +			<response>
  +				<command>HTTP/1.0 204 No Content</command>
  +				<header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
  +			</response>
  +		</step>
  +	</cleanup>
   </test>
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>