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 ju...@apache.org on 2002/08/02 14:24:05 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Version_control_features/Version_Control_Resource_Properties/Auto_Versioning VcLckPropp.xml

juergen     2002/08/02 05:24:05

  Modified:    testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Version_control_features/Version_Control_Resource_Properties/Auto_Versioning
                        VcLckPropp.xml
  Log:
  added missing expected body for lock.
  
  Revision  Changes    Path
  1.2       +102 -112  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Version_control_features/Version_Control_Resource_Properties/Auto_Versioning/VcLckPropp.xml
  
  Index: VcLckPropp.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/DeltaV/functional/Version_control_features/Version_Control_Resource_Properties/Auto_Versioning/VcLckPropp.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- VcLckPropp.xml	31 Jul 2002 09:06:29 -0000	1.1
  +++ VcLckPropp.xml	2 Aug 2002 12:24:05 -0000	1.2
  @@ -1,76 +1,76 @@
   <?xml version="1.0" encoding="UTF-8"?>
  - <!DOCTYPE test SYSTEM "../../../../../../Tprocessor.dtd">
  -    
  +<!DOCTYPE test SYSTEM "../../../../../../Tprocessor.dtd">
   <test>
  -
   	<specification>
   		<abstract> Test to check if possible to modify locked resource </abstract>
  -		
   		<description>
   		1) PUT command creates a file
   		2) VERSION-CONTROL command which puts the file under version control
   		3) Lock command locks file
   		3) Proppatch command which attempts to change the comment property
   		</description>
  -		
   		<expectedResult> Proppatch command should return 423 Locked </expectedResult>
   	</specification>
  -  
  -  <step>
  -  <request>
  -   <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/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">
  -   </body>
  -  </request>
  -  <response>
  -   <command>HTTP/1.0 201 Created</command>
  -   <header>Date: Wed, 14 Mar 2001 15:45:51 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">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 ="userNumber,globalVariableCollection,globalVariableServerName">LOCK /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  -   			<header>Connection: Keep-Alive, TE</header>
  -   			<header>TE: trailers, deflate, gzip, compress</header>
  -   			<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
  -   			<header>Timeout: Second-604800</header>
  -   			<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
  -   			<header>Content-type: text/xml</header>
  -   			<body><![CDATA[<?xml version="1.0"?><A:lockinfo xmlns:A="DAV:"><A:locktype><A:write/></A:locktype><A:lockscope><A:exclusive/></A:lockscope><A:owner><A:href></A:href></A:owner></A:lockinfo>]]></body>
  -  		</request>
  -  		<response>
  -   			<command>HTTP/1.0 200 OK</command>
  -   			<body/>
  -  		</response>
  -  	</step>
  -  	
  - <step>
  -  <request>
  -   <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  -   <header>Content-Type: text/xml</header>
  -   <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
  -   <header>Accept-Language: en-us</header>
  -   <header>Translate: f</header>
  -   <header>Pragma: no-cache</header>
  -   <header>Connection: close</header>
  -   <body>&lt;?xml version="1.0" ?&gt;
  +	<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>
  +		</response>
  +	</step>
  +	<step>
  +		<request>
  +			<command varUsage="globalVariableCollection,globalVariableServerName">VERSION-CONTROL /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +		</request>
  +		<response>
  +			<command>HTTP/1.0 200 OK</command>
  +		</response>
  +	</step>
  +	<step>
  +		<request>
  +			<command varUsage="userNumber,globalVariableCollection,globalVariableServerName">LOCK /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +			<header>Timeout: Second-604800</header>
  +			<header>Content-type: text/xml</header>
  +			<body><![CDATA[<?xml version="1.0"?><A:lockinfo xmlns:A="DAV:"><A:locktype><A:write/></A:locktype><A:lockscope><A:exclusive/></A:lockscope><A:owner><A:href></A:href></A:owner></A:lockinfo>]]></body>
  +		</request>
  +		<response>
  +			<command>HTTP/1.0 200 OK</command>
  +			<body><![CDATA[<?xml version="1.0"?>
  +			
  +				<D:prop xmlns:D="DAV:">
  +				  <D:lockdiscovery>
  +				    <D:activelock>
  +				      <D:locktype>
  +				        <D:write />
  +				      </D:locktype>
  +				      <D:lockscope>
  +				        <D:exclusive />
  +				      </D:lockscope>
  +				      <D:depth>infinity</D:depth>
  +				      <D:owner>*</D:owner>
  +				      <D:timeout>*</D:timeout>
  +				      <D:locktoken>
  +				        <D:href>*</D:href>
  +				      </D:locktoken>
  +				    </D:activelock>
  +				  </D:lockdiscovery>
  +				</D:prop>			
  +			
  +			]]></body>
  +		</response>
  +	</step>
  +	<step>
  +		<request>
  +			<command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +			<header>Content-Type: text/xml</header>
  +			<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
  +			<header>Accept-Language: en-us</header>
  +			<header>Translate: f</header>
  +			<header>Pragma: no-cache</header>
  +			<header>Connection: close</header>
  +			<body>&lt;?xml version="1.0" ?&gt;
      &lt;D:propertyupdate xmlns:D="DAV:"&gt;
      	&lt;D:set&gt;
      		&lt;D:prop&gt;
  @@ -78,55 +78,45 @@
      		&lt;/D:prop&gt;
      	&lt;/D:set&gt;
      	&lt;/D:propertyupdate&gt;</body>
  -  </request>
  -  <response>
  -   <command>HTTP/1.0 423 Locked</command>
  -   <header>Date: Tue, 13 Feb 2001 12:45:26 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>
  -   <body/>
  -  </response>
  - </step>
  - 	   
  -
  -
  -       
  -
  -  <cleanup>
  -  
  -  	<step>
  -  		<request>
  -   			<command varUsage ="userNumber,globalVariableCollection,globalVariableServerName">UNLOCK /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  -   			<header>Connection: Keep-Alive, TE</header>
  -   			<header>TE: trailers, deflate, gzip, compress</header>
  -   			<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
  -   			<header varUsage="automaticVariable1">Lock-Token: %automaticVariable1%</header>
  -   			<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
  -  		</request>
  -  		<response>
  -   			<command>HTTP/1.0 204 No Content</command>
  -   			<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="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/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>
  - 
  - </cleanup>
  -
  -
  +		</request>
  +		<response>
  +			<command>HTTP/1.0 423 Locked</command>
  +			<header>Date: Tue, 13 Feb 2001 12:45:26 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>
  +			<body/>
  +		</response>
  +	</step>
  +	<cleanup>
  +		<step>
  +			<request>
  +				<command varUsage="userNumber,globalVariableCollection,globalVariableServerName">UNLOCK /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  +				<header>Connection: Keep-Alive, TE</header>
  +				<header>TE: trailers, deflate, gzip, compress</header>
  +				<header>User-Agent: UCI DAV Explorer/0.70 RPT-HTTPClient/0.3-2E</header>
  +				<header varUsage="automaticVariable1">Lock-Token: %automaticVariable1%</header>
  +				<header>Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress</header>
  +			</request>
  +			<response>
  +				<command>HTTP/1.0 204 No Content</command>
  +				<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="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/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>
  +	</cleanup>
   </test>
  
  
  

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