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 wa...@apache.org on 2002/08/02 14:22:47 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/select/XPATH 70_filterInSelect.xml

wam         2002/08/02 05:22:47

  Modified:    testsuite/testsuite/junit/xmltestcases/DASL/functional/select/XPATH
                        70_filterInSelect.xml
  Log:
  bugfix: supress collection
  
  Revision  Changes    Path
  1.2       +90 -118   jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/select/XPATH/70_filterInSelect.xml
  
  Index: 70_filterInSelect.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/select/XPATH/70_filterInSelect.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- 70_filterInSelect.xml	22 Jul 2002 13:12:10 -0000	1.1
  +++ 70_filterInSelect.xml	2 Aug 2002 12:22:46 -0000	1.2
  @@ -1,78 +1,59 @@
   <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  -
   <test>
  -	<specification>
  -		
  -		<abstract> Search for properties specified by an XPath query.
  +  <specification>
  +    <abstract> Search for properties specified by an XPath query.
   		A filter is defined within the select.
   		</abstract>
  -		
  -		<pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
  -		
  -		<description>
  +    <pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
  +    <description>
   		1) A resource is Put on to the Server. 
   		2) A second resource is put on to the server.
   		2) A Search is performed to find the properties defined by the XPath.
   		3) The resource is deleted.
   		</description>
  -		
  -		<expectedResult>The XPath is evaluated correctly. The filter in the Select should mean
  +    <expectedResult>The XPath is evaluated correctly. The filter in the Select should mean
   		only the requested property of the first resource should be returned. A 207 Multi-Status response 
   		code should be returned. Inside the body should be a 200 OK response code for each discovered resource.
   		Within these, the first should contain the requested value from the first resource. The second should
   		contain an empty XPath element.</expectedResult>
  -		
  -	</specification>
  -
  -	
  -	<step> 
  -  		<request>
  -   			<command varUsage ="userNumber,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/XPath.xm1">
  -    			</body>
  -		</request>
  -  		
  -  		<response>
  -   			<command>HTTP/1.0 201 Created</command>
  -   			<header>Date: Mon, 12 Mar 2001 17:21:35 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 ="userNumber,globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test2.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/XPath2.xm1">
  -    			</body>
  -		</request>
  -  		
  -  		<response>
  -   			<command>HTTP/1.0 201 Created</command>
  -   			<header>Date: Mon, 12 Mar 2001 17:21:35 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 ="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command>
  -   			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  +  </specification>
  +  <step>
  +    <request>
  +      <command varUsage="userNumber,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/XPath.xm1"/>
  +    </request>
  +    <response>
  +      <command>HTTP/1.0 201 Created</command>
  +      <header>Date: Mon, 12 Mar 2001 17:21:35 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="userNumber,globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test2.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/XPath2.xm1"/>
  +    </request>
  +    <response>
  +      <command>HTTP/1.0 201 Created</command>
  +      <header>Date: Mon, 12 Mar 2001 17:21:35 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="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command>
  +      <body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
   					<searchrequest xmlns:D="DAV:" xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav">
   						<D:basicsearch>
   							<D:select>
  @@ -85,6 +66,11 @@
       									<D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
     								</D:scope>
   							</D:from>
  +							<D:where>
  +							  <D:not>
  +							    <D:is-collection/>
  +							  </D:not>
  +							</D:where>
   							<D:orderby>
         								<D:order>
           								<D:prop>
  @@ -94,13 +80,11 @@
       							</D:orderby>
   							</D:basicsearch>
   					</searchrequest>
  -   				]]> 			
  -    			</body>
  -		</request>
  -  		
  -  		<response>
  -   			<command>HTTP/1.0 207 Multi-Status</command>
  -   			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  +   				]]></body>
  +    </request>
  +    <response>
  +      <command>HTTP/1.0 207 Multi-Status</command>
  +      <body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
   					<D:multistatus xmlns:D="DAV:">
       						<D:response>
           						<D:href>/%globalVariableServerName%/%globalVariableCollection%/test.xml</D:href>
  @@ -129,53 +113,41 @@
           						</D:propstat>
       						</D:response>
   					</D:multistatus>
  -			]]>
  -			</body>
  -  		</response>	
  - 	</step>	
  -	
  -	
  -	<cleanup>
  -    
  -   
  -    		<step>
  -     			<request>
  -      				<command varUsage="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: Wed, 14 Mar 2001 14:47:37 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"> DELETE /%globalVariableServerName%/%globalVariableCollection%/test2.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: Wed, 14 Mar 2001 14:47:37 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>
  \ No newline at end of file
  +			]]></body>
  +    </response>
  +  </step>
  +  <cleanup>
  +    <step>
  +      <request>
  +        <command varUsage="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: Wed, 14 Mar 2001 14:47:37 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"> DELETE /%globalVariableServerName%/%globalVariableCollection%/test2.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: Wed, 14 Mar 2001 14:47:37 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>