juergen     2002/06/19 01:04:37

  Added:       testsuite/testsuite/junit/xmltestcases/DASL/functional/misc/DAV
                        simpleSearch.xml noLiteral.xml isCollectionNot.xml
                        invalidNotNoExp.xml invalidNotMultipleExp.xml
                        invalidEquality.xml eqNoArgSupplied.xml
  Log:
  Testcases to check miscellaneous areas within DASL Basic Search.
  
  Revision  Changes    Path
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/misc/DAV/simpleSearch.xml
  
  Index: simpleSearch.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
        <specification>
                
                <abstract> A basic search that looks for specified properties where 
the content length is greater than a specified integer. </abstract>
                
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
                
                <description>
                1) MKCol to create a collection for all resources to be Put into.
                2) A resource is Put to the server. This has a content length less 
than the specified content length of the search, 
                3) A resource is Put to the server. This has a content length equal to 
the specified content length of the search,
                4) A resource is Put to the server. This has a content length greater 
than the specified content length of the search. 
                5) PropFind to establish the content length of the second resource. 
                This is used by the Search as the value that the content length of a 
resource must be greater than.
                6) PropFind to establish the content length of the third resource. 
                Used by the Search to check the returned resource has the correct, 
expected content length.
                7) A Search is performed for specifed values within resources where 
the content length is greater than a specified value (in this case,
                greater than the content length of resource two).
                8) The resources are deleted.
                </description>
                
                <expectedResult>A 207 Multi-Status response code should be received as 
a result of the Search.
                
                The requested properties should only be returned for resource three.
                
                Inside the body, a 200 OK response code should be returned for each 
resource where the property has been discovered.
                </expectedResult>
                
        </specification>
        
        
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName"> MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
                </request>
                <response>
                        <command>HTTP/1.0 201 Created</command>
                        <header>Date: Wed, 21 Feb 2001 12:55:57 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%/test/test1.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><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  <ValidXML>
  <ValidXML2>This is a test Valid XML documen</ValidXML2>
  <ValidXML3>This is a test Valid XML document</ValidXML3>
  <ValidXML4>This is a test Valid XML document</ValidXML4>
  <ValidXML5>This is a test Valid XML document</ValidXML5>
  <ValidXML6>This is a test Valid XML document</ValidXML6>
  <ValidXML7>This is a test Valid XML document</ValidXML7>
  <ValidXML8>This is a test Valid XML document</ValidXML8>
  <ValidXML9>This is a test Valid XML document</ValidXML9>
  <ValidXML10>This is a test Valid XML document</ValidXML10>
  <ValidXML11>This is a test Valid XML document</ValidXML11>
  <ValidXML12>This is a test Valid XML document</ValidXML12>
  <ValidXML13>This is a test Valid XML document</ValidXML13>
  <ValidXML14>This is a test Valid XML document</ValidXML14>
  <ValidXML15>This is a test Valid XML document</ValidXML15>
  <ValidXML16>This is a test Valid XML document</ValidXML16>
  <ValidXML17>This is a test Valid XML document</ValidXML17>
  <ValidXML18>This is a test Valid XML document</ValidXML18>
  <ValidXML19>This is a test Valid XML document</ValidXML19>
  <ValidXML20>This is a test Valid XML document</ValidXML20>
  <ValidXML21>This is a test Valid XML document</ValidXML21>
  <ValidXML22>This is a test Valid XML document</ValidXML22>
  <ValidXML23>This is a test Valid XML document</ValidXML23>
  </ValidXML>]]>
                        </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%/test/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><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  <ValidXML>
  <ValidXML2>This is a test Valid XML document</ValidXML2>
  <ValidXML3>This is a test Valid XML document</ValidXML3>
  <ValidXML4>This is a test Valid XML document</ValidXML4>
  <ValidXML5>This is a test Valid XML document</ValidXML5>
  <ValidXML6>This is a test Valid XML document</ValidXML6>
  <ValidXML7>This is a test Valid XML document</ValidXML7>
  <ValidXML8>This is a test Valid XML document</ValidXML8>
  <ValidXML9>This is a test Valid XML document</ValidXML9>
  <ValidXML10>This is a test Valid XML document</ValidXML10>
  <ValidXML11>This is a test Valid XML document</ValidXML11>
  <ValidXML12>This is a test Valid XML document</ValidXML12>
  <ValidXML13>This is a test Valid XML document</ValidXML13>
  <ValidXML14>This is a test Valid XML document</ValidXML14>
  <ValidXML15>This is a test Valid XML document</ValidXML15>
  <ValidXML16>This is a test Valid XML document</ValidXML16>
  <ValidXML17>This is a test Valid XML document</ValidXML17>
  <ValidXML18>This is a test Valid XML document</ValidXML18>
  <ValidXML19>This is a test Valid XML document</ValidXML19>
  <ValidXML20>This is a test Valid XML document</ValidXML20>
  <ValidXML21>This is a test Valid XML document</ValidXML21>
  <ValidXML22>This is a test Valid XML document</ValidXML22>
  <ValidXML23>This is a test Valid XML document</ValidXML23>
  </ValidXML>]]>
                        </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%/test/test3.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><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  <ValidXML>
  <ValidXML2>This is a test Valid XML documentt</ValidXML2>
  <ValidXML3>This is a test Valid XML document</ValidXML3>
  <ValidXML4>This is a test Valid XML document</ValidXML4>
  <ValidXML5>This is a test Valid XML document</ValidXML5>
  <ValidXML6>This is a test Valid XML document</ValidXML6>
  <ValidXML7>This is a test Valid XML document</ValidXML7>
  <ValidXML8>This is a test Valid XML document</ValidXML8>
  <ValidXML9>This is a test Valid XML document</ValidXML9>
  <ValidXML10>This is a test Valid XML document</ValidXML10>
  <ValidXML11>This is a test Valid XML document</ValidXML11>
  <ValidXML12>This is a test Valid XML document</ValidXML12>
  <ValidXML13>This is a test Valid XML document</ValidXML13>
  <ValidXML14>This is a test Valid XML document</ValidXML14>
  <ValidXML15>This is a test Valid XML document</ValidXML15>
  <ValidXML16>This is a test Valid XML document</ValidXML16>
  <ValidXML17>This is a test Valid XML document</ValidXML17>
  <ValidXML18>This is a test Valid XML document</ValidXML18>
  <ValidXML19>This is a test Valid XML document</ValidXML19>
  <ValidXML20>This is a test Valid XML document</ValidXML20>
  <ValidXML21>This is a test Valid XML document</ValidXML21>
  <ValidXML22>This is a test Valid XML document</ValidXML22>
  <ValidXML23>This is a test Valid XML document</ValidXML23>
  </ValidXML>]]>
                        </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="globalVariableCollection,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/test/test2.xml 
HTTP/1.1</command>
                 <header>Accept-Language: en-us</header>
                 <header>Content-Type: text/xml</header>
                 <header>Translate: f</header>
                 <header>Depth: 1</header>
                 <header>User-Agent: Microsoft Data Access Internet Publishing 
Provider DAV</header>
                 <header>Connection: Keep-Alive</header>
                 <body><![CDATA[<?xml version="1.0"?>
                                        <D:propfind xmlns:D="DAV:">
                                                <D:prop>        
                                                        <D:getcontentlength/>
                                                </D:prop>
                                        </D:propfind>
                                        ]]></body>
              </request>
              <response>
                 <command>HTTP/1.0 207 Multi-Status</command>
                 <header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
                 <body varUsage="globalVariableCollection,globalVariableServerName" 
varDefinition="test2contentlength" 
varPath="multistatus/response/propstat/prop/getcontentlength"><![CDATA[
                                        <D:multistatus xmlns:D="DAV:">
                                                <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test/test2.xml</D:href>
                                                                <D:propstat>
                                                                        <D:prop>
                                                                                
<D:getcontentlength>*</D:getcontentlength>
                                                                        </D:prop>
                                                                        
<D:status>HTTP/1.1 200 OK</D:status>
                                                                </D:propstat>
                                                </D:response>
                                        </D:multistatus>
                 
                 ]]>
                 
                 
                 </body>
              </response>
        </step>
        
        
          <step>
              <request>
                 <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPFIND 
/%globalVariableServerName%/%globalVariableCollection%/test/test3.xml 
HTTP/1.1</command>
                 <header>Accept-Language: en-us</header>
                 <header>Content-Type: text/xml</header>
                 <header>Translate: f</header>
                 <header>Depth: 1</header>
                 <header>User-Agent: Microsoft Data Access Internet Publishing 
Provider DAV</header>
                 <header>Connection: Keep-Alive</header>
                 <body><![CDATA[<?xml version="1.0"?>
                                        <D:propfind xmlns:D="DAV:">
                                                <D:prop>        
                                                        <D:getcontentlength/>
                                                </D:prop>
                                        </D:propfind>
                                        ]]></body>
              </request>
              <response>
                 <command>HTTP/1.0 207 Multi-Status</command>
                 <header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
                 <body varUsage="globalVariableCollection,globalVariableServerName" 
varDefinition="test3contentlength" 
varPath="multistatus/response/propstat/prop/getcontentlength"><![CDATA[
                                        <D:multistatus xmlns:D="DAV:">
                                                <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test/test3.xml</D:href>
                                                                <D:propstat>
                                                                        <D:prop>
                                                                                
<D:getcontentlength>*</D:getcontentlength>
                                                                        </D:prop>
                                                                        
<D:status>HTTP/1.1 200 OK</D:status>
                                                                </D:propstat>
                                                </D:response>
                                        </D:multistatus>
                 
                 ]]>
                 
                 
                 </body>
              </response>
        </step>
        
        
        
        
        
        <step> 
                <request>
                        <command varUsage ="globalVariableServerName">SEARCH 
/%globalVariableServerName% HTTP/1.1</command>
                        <body 
varUsage="globalVariableCollection,test2contentlength"><![CDATA[<?xml version="1.0" 
encoding="UTF-8"?>
                                                        <searchrequest xmlns:D="DAV:">
                                                                <D:basicsearch>
                                                                        <D:select>
                                                                                
<D:prop>
                                                                                       
 <D:displayname/>
                                                                                       
 <D:getcontentlength/>
                                                                                       
 <D:getcontenttype/>
                                                                                
</D:prop>
                                                                        </D:select>
                                                                        <D:from>
                                                                                
<D:scope>
                                                                                       
 <D:href>%globalVariableCollection%/test</D:href>
                                                                                
</D:scope>
                                                                        </D:from>
                                                                        <D:where>
                                                                                <D:gt>
                                                                                       
 <D:prop>
                                                                                       
                 <D:getcontentlength/>
                                                                                       
 </D:prop>
                                                                                       
 <D:literal>%test2contentlength%</D:literal>
                                                                                </D:gt>
                                                                        </D:where>
                                                                </D:basicsearch>
                                                        </searchrequest>
                        
                                ]]>                     
                        </body>
                </request>
                
                <response>
                        <command>HTTP/1.0 207 Multi-Status</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName,test3contentlength"><![CDATA[<?xml
 version="1.0" encoding="UTF-8"?>
                                                <D:multistatus xmlns:D="DAV:">
                                                        <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test/test3.xml</D:href>
                                                                <D:propstat>
                                                                        <D:prop>
                                                                                
<D:displayname>test3.xml</D:displayname>
                                                                                
<D:getcontentlength>%test3contentlength%</D:getcontentlength>
                                                                                
<D:getcontenttype>text/xml</D:getcontenttype>
                                                                        </D:prop>
                                                                        
<D:status>HTTP/1.1 200 OK</D:status>
                                                                </D:propstat>
                                                        </D:response>
                                                </D:multistatus>
                        
                        ]]>
                        </body>
                </response>     
        </step>
        
        
        <cleanup>
        
                <step>
                        <request>
                                        <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test 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>
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/misc/DAV/noLiteral.xml
  
  Index: noLiteral.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
        <specification>
                
                <abstract> Search peformed for specific properties. A 'where' element 
is defined. Within this an 'eq' element is 
                used on the property displayname. However, no value is provided for 
the equality to be tested against. </abstract>
                
                <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 Search is performed to find specified properties. A 'where' 
element is given containing an 'eq' element.
                However, no value is defined for the equality to be tested against.
                3) The resource is deleted.
                </description>
                
                <expectedResult>A 422 Unprocessable Entity error should be returned.
                Within the body of the Unprocessable Entity, should be a secondary 422 
error and a description as to the error.
                </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/validXML.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="globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                                <searchrequest xmlns:D="DAV:">
                                                        <D:basicsearch>
                                                                <D:select>
                                                                        <D:prop>
                                                                                
<D:displayname/>
                                                                                
<D:getcontentlength/>
                                                                                
<D:getcontenttype/>
                                                                        </D:prop>
                                                                </D:select>
                                                                <D:from>
                                                                        <D:scope>
                                                                                
<D:href>%globalVariableCollection%</D:href>
                                                                        </D:scope>
                                                                </D:from>
                                                                <D:where>
                                                                        <D:eq>
                                                                                
<D:prop>
                                                                                       
         <D:displayname/>
                                                                                
</D:prop>
                                                                        </D:eq>
                                                                </D:where>
                                                        </D:basicsearch>
                                                </searchrequest>
                        
                        
                                ]]>                     
                        </body>
                </request>
                
                <response>
                        <command>HTTP/1.1 422 Unprocessable Entity</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                        <D:multistatus xmlns:D="DAV:">
                                                <D:response>
                                                        
<D:href>/%globalVariableServerName%</D:href>
                                                        <D:status>HTTP/1.1 422 
Unprocessable Entity</D:status>
                                                        <D:responsedescription>No 
literal element supplied</D:responsedescription>
                                                </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>
                
      </cleanup>
        
        
        
        
        
        
        
  </test>
        
        
        
        
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/misc/DAV/isCollectionNot.xml
  
  Index: isCollectionNot.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
        <specification>
                
                <abstract> Search for specifed properties on resources that are NOT 
collections. Only the requested properties of the resource should be returned. 
</abstract>
                
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
                
                <description>
                1) A resource is Put to the Server. 
                2) A Search is performed to find specified properties on resources 
that are NOT collections.
                3) The resource is deleted.
                </description>
                
                <expectedResult>A 207 Multi-Status response should be returned as a 
result of the Search.
                The requested properties for the resource should be returned but NOT 
the properties for the collection.
                In the body of the response, a 200 OK response code should be returned 
for 
                the resources where the requested properties have been discovered.
                </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/validXML.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="globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                                <searchrequest xmlns:D="DAV:">
                                                        <D:basicsearch>
                                                                <D:select>
                                                                        <D:prop>       
 
                                                                                
<D:displayname/>
                                                                                
<D:getcontenttype/>
                                                                        </D:prop>
                                                                </D:select>
                                                                <D:from>
                                                                        <D:scope>
                                                                                
<D:href>%globalVariableCollection%</D:href>
                                                                        </D:scope>
                                                                </D:from>
                                                                <D:where>
                                                                        <D:not>
                                                                                
<D:is-collection/>
                                                                        </D:not>    
                                                                </D:where>
                                                        </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"?>
                                                <D:multistatus xmlns:D="DAV:">
                                                        <D:response>
                                                        
<D:href>/%globalVariableServerName%/%globalVariableCollection%/test.xml</D:href>
                                                                <D:propstat>
                                                                        <D:prop>
                                                                                
<D:displayname>test.xml</D:displayname>
                                                                                
<D:getcontenttype>text/xml</D:getcontenttype>
                                                                        </D:prop>
                                                                        
<D:status>HTTP/1.1 200 OK</D:status>
                                                                </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>
        </cleanup>
        
        
        
        
        
        
  </test>
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/misc/DAV/invalidNotNoExp.xml
  
  Index: invalidNotNoExp.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
        <specification>
                
                <abstract> A Search is issued for specified properties. A 'where' 
criteria is defined. Within this a 'not' element is included.
                However, no property or value is specified for the 'not' criteria to 
use. </abstract>
                
                <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 Search is performed to find specified resources. A 'where' 
element is specifed with a 'not' element. 
                No property or value is defined within the 'not' element.
                3) The resource is deleted.
                </description>
                
                <expectedResult>A 422 unprocessable entity code should be received.
                Within the body of the Unprocessable Entity, should be a secondary 422 
error and a description as to the error.
                </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/validXML.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="globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                                        <searchrequest xmlns:D="DAV:">
                                                                <D:basicsearch>
                                                                        <D:select>
                                                                                
<D:prop>
                                                                                       
 <D:displayname/>
                                                                                       
 <D:getcontentlength/>
                                                                                       
 <D:getcontenttype/>
                                                                                
</D:prop>
                                                                        </D:select>
                                                                        <D:from>
                                                                                
<D:scope>
                                                                                       
 <D:href>%globalVariableCollection%</D:href>
                                                                                
</D:scope>
                                                                        </D:from>
                                                                        <D:where>
                                                                                <D:not>
                                                                                
</D:not>
                                                                        </D:where>
                                                                </D:basicsearch>
                                                        </searchrequest>
                                ]]>                     
                        </body>
                </request>
                
                <response>
                        <command>HTTP/1.1 422 Unprocessable Entity</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                                        <D:multistatus xmlns:D="DAV:">
                                                                <D:response>
                                                                        
<D:href>/%globalVariableServerName%</D:href>
                                                                        
<D:status>HTTP/1.1 422 Unprocessable Entity</D:status>
                                                                        
<D:responsedescription>not expression must contain exactly one nested 
expression</D:responsedescription>
                                                                </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>
        </cleanup>
        
        
        
                
        
  </test>
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/misc/DAV/invalidNotMultipleExp.xml
  
  Index: invalidNotMultipleExp.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
        <specification>
                
                <abstract> Search for specific properties. A where criteria is stated. 
A 'not' element is defined.
                However, more than one expression is defined within the not element. 
</abstract>
                
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
                
                <description>
                1) A resource is Put on to the Server. This is XML.
                2) A resource is Put on to the Server. This is TEXT.
                3) A Search is performed for specified properties. A 'where' criteria 
is stated with a 'not' element.
                More than one expression is defined within the not element. if the not 
criteria were evaluated correctly, resource two would be returned.
                3) The resource is deleted.
                </description>
                
                <expectedResult>A 422 Unprocessable Entity response code is returned. 
No properties should be returned.
                Within the body of the Unprocessable Entity, should be a secondary 422 
error and a description as to the error.
                </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/validXML.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.txt 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/txt.txt">
                        </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="globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                                        <searchrequest xmlns:D="DAV:">
                                                                <D:basicsearch>
                                                                        <D:select>
                                                                                       
 <D:prop>
                                                                                       
 <D:displayname/>
                                                                                       
 <D:getcontentlength/>
                                                                                       
 <D:getcontenttype/>
                                                                                       
 </D:prop>
                                                                        </D:select>
                                                                        <D:from>
                                                                                       
 <D:scope>
                                                                                       
 <D:href>%globalVariableCollection%</D:href>
                                                                                       
 </D:scope>
                                                                        </D:from>
                                                                        <D:where>
                                                                                       
 <D:not>
                                                                                       
 <D:eq>
                                                                                       
         <D:prop>
                                                                                       
                 <D:displayname/>
                                                                                       
         </D:prop>
                                                                                       
         <D:literal>test.xml</D:literal>
                                                                                       
 </D:eq>
                                                                                       
 <D:eq>
                                                                                       
         <D:prop>
                                                                                       
                 <D:getcontenttype/>
                                                                                       
         </D:prop>
                                                                                       
         <D:literal>text/xml</D:literal>
                                                                                       
 </D:eq>
                                                                                       
 </D:not>
                                                                        </D:where>
                                                                </D:basicsearch>
                                                        </searchrequest>
                        
                                ]]>                     
                        </body>
                </request>
                
                <response>
                        <command>HTTP/1.1 422 Unprocessable Entity</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                                <D:multistatus xmlns:D="DAV:">
                                                        <D:response>
                                                                
<D:href>/%globalVariableServerName%</D:href>
                                                                <D:status>HTTP/1.1 422 
Unprocessable Entity</D:status>
                                                                
<D:responsedescription>not expression must contain exactly one nested 
expression</D:responsedescription>
                                                        </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.txt 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>
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/misc/DAV/invalidEquality.xml
  
  Index: invalidEquality.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
        <specification>
                
                <abstract> Search for specified properties. The Search body does not 
define a logical operator - AND,OR,NOT. </abstract>
                
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
                
                <description>
                1) A resource is Put on to the Server. This is XML.
                2) A resource is Put on to the Server. This is TXT and greater in size 
to the first doc.
                3) A Search is peformed. The body contains a 'where' element. Within 
this 'where' element are 2 comparison operators.
                These comparison operators are not enclosed by logical operators.
                4) Delete all created resources.
                </description>
                
                <expectedResult>A 422 unprocessable entity response code should be 
received.</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><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  <ValidXML>
  <ValidXML2>This is a test Valid XML document</ValidXML2>
  <ValidXML3>This is a test Valid XML document</ValidXML3>
  <ValidXML4>This is a test Valid XML document</ValidXML4>
  <ValidXML5>This is a test Valid XML document</ValidXML5>
  <ValidXML6>This is a test Valid XML document</ValidXML6>
  <ValidXML7>This is a test Valid XML document</ValidXML7>
  <ValidXML8>This is a test Valid XML document</ValidXML8>
  <ValidXML9>This is a test Valid XML document</ValidXML9>
  <ValidXML10>This is a test Valid XML document</ValidXML10>
  <ValidXML11>This is a test Valid XML document</ValidXML11>
  <ValidXML12>This is a test Valid XML document</ValidXML12>
  <ValidXML13>This is a test Valid XML document</ValidXML13>
  <ValidXML14>This is a test Valid XML document</ValidXML14>
  <ValidXML15>This is a test Valid XML document</ValidXML15>
  <ValidXML16>This is a test Valid XML document</ValidXML16>
  <ValidXML17>This is a test Valid XML document</ValidXML17>
  <ValidXML18>This is a test Valid XML document</ValidXML18>
  <ValidXML19>This is a test Valid XML document</ValidXML19>
  <ValidXML20>This is a test Valid XML document</ValidXML20>
  <ValidXML21>This is a test Valid XML document</ValidXML21>
  <ValidXML22>This is a test Valid XML document</ValidXML22>
  <ValidXML23>This is a test Valid XML document</ValidXML23>
  </ValidXML>]]>
                        </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.txt 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><![CDATA[This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document
  This is a test TXT Document]]>
                        </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="globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                                <searchrequest xmlns:D="DAV:">
                                                        <D:basicsearch>
                                                                <D:select>
                                                                        <D:prop>
                                                                                
<D:displayname/>
                                                                                
<D:getcontentlength/>
                                                                                
<D:getcontenttype/>
                                                                        </D:prop>
                                                                </D:select>
                                                                <D:from>        
                                                                        <D:scope>
                                                                                
<D:href>%globalVariableCollection%</D:href>
                                                                        </D:scope>
                                                                </D:from>
                                                                <D:where>
                                                                        <D:eq>
                                                                                
<D:prop>
                                                                                       
         <D:displayname/>
                                                                                
</D:prop>
                                                                                
<D:literal>test.xml</D:literal>
                                                                        </D:eq>
                                                                        <D:gt>
                                                                                
<D:prop>
                                                                                       
         <D:getcontentlength/>
                                                                                
</D:prop>
                                                                                
<D:literal>1300</D:literal>
                                                                        </D:gt>
                                                                </D:where>
                                                        </D:basicsearch>
                                                </searchrequest>
                                ]]>                     
                        </body>
                </request>
                
                <response>
                        <command>HTTP/1.0 422 Unprocessable Entity</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                                <D:multistatus xmlns:D="DAV:">
                                                        <D:response>
                                                                
<D:href>/%globalVariableServerName%</D:href>
                                                                <D:status>HTTP/1.1 422 
Unprocessable Entity</D:status>
                                                                
<D:responsedescription></D:responsedescription>
                                                        </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.txt 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>
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/misc/DAV/eqNoArgSupplied.xml
  
  Index: eqNoArgSupplied.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
        <specification>
                
                <abstract> The 'eq' element of the 'where' element does not define a 
property to test against. </abstract>
                
                <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 Search is performed for specified properties. The 'eq' element is 
empty.
                3) The resource is deleted.
                </description>
                
                <expectedResult>A 422 Unprocessable Entity response code should be 
received. No properties for any resources should be returned.</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/validXML.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="globalVariableCollection"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                                <searchrequest xmlns:D="DAV:">
                                                        <D:basicsearch>
                                                                <D:select>
                                                                        <D:prop>
                                                                                
<D:displayname/>
                                                                                
<D:getcontentlength/>
                                                                                
<D:getcontenttype/>
                                                                        </D:prop>
                                                                </D:select>
                                                                <D:from>
                                                                        <D:scope>
                                                                                
<D:href>%globalVariableCollection%</D:href>
                                                                        </D:scope>
                                                                </D:from>
                                                                <D:where>
                                                                        <D:eq>
                                                                        </D:eq>
                                                                </D:where>
                                                        </D:basicsearch>
                                                </searchrequest>
                                ]]>                     
                        </body>
                </request>
                
                <response>
                        <command>HTTP/1.0 422 Unprocessable Entity</command>
                        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="UTF-8"?>
                                                <D:multistatus xmlns:D="DAV:">
                                                        <D:response>
                                                                
<D:href>/%globalVariableServerName%</D:href>
                                                                <D:status>HTTP/1.1 422 
Unprocessable Entity</D:status>
                                                                
<D:responsedescription>No property element supplied</D:responsedescription>
                                                        </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>
                
        </cleanup>
  
  
  
  
  
  
  
  
  
  </test>
  
  

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

Reply via email to