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 2003/08/28 15:14:44 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/misc searchPropfindAllProp.xml

juergen     2003/08/28 06:14:44

  Added:       testsuite/testsuite/junit/xmltestcases/DASL/functional/misc
                        searchPropfindAllProp.xml
  Log:
  (fga) added SEARCH & PROPFIND with allProp.
  
  Revision  Changes    Path
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/misc/searchPropfindAllProp.xml
  
  Index: searchPropfindAllProp.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
  <test>
  	<specification>
  		<abstract> Check all properites received in PROPFIND and SEARCH</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) PropFind with allProp.
  		3) A Search is performed to find all properties.
  		4) The resource and associated history is deleted.
  		</description>
  		<expectedResult>The expected properties are received.</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/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"/>
  		</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/test.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:allprop/>
  					</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="testresourcecontentlength" varPath="multistatus/response/propstat/prop/getcontentlength"><![CDATA[
      		 			<D:multistatus xmlns:D="DAV:">
                  <D:response>
                      <D:href>/%globalVariableServerName%/%globalVariableCollection%/test/test.xml</D:href>
                      <D:propstat>
                          <D:prop>
                              <D:supportedlock>
                                  <D:lockentry>
                                      <D:lockscope>
                                          <D:exclusive />
                                      </D:lockscope>
                                      <D:locktype>
                                          <D:write />
                                      </D:locktype>
                                  </D:lockentry>
                                  <D:lockentry>
                                      <D:lockscope>
                                          <D:shared />
                                      </D:lockscope>
                                      <D:locktype>
                                          <D:write />
                                      </D:locktype>
                                  </D:lockentry>
                              </D:supportedlock>
                              <D:source />
                              <xsv:isXml xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav">true</xsv:isXml>
                              <D:creationdate>2002-08-07T15:28:11Z</D:creationdate>
                              <D:lockdiscovery />
                              <D:getcontentlength>*</D:getcontentlength>
                              <D:displayname>*</D:displayname>
                              <D:getcontenttype>text/xml</D:getcontenttype>
                              <D:getcontentlanguage>en</D:getcontentlanguage>
                              <D:resourcetype />
                              <xsv:xdavContentId xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav">*</xsv:xdavContentId>
                              <D:getlastmodified>Wed, 07 Aug 2002 15:28:11 GMT</D:getlastmodified>
                              <D:getetag>-732535229_48563_1349</D:getetag>
                          </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"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  						<searchrequest xmlns:D="DAV:">
  							<D:basicsearch>
  								<D:select>
    									<D:allprop/>
  								</D:select>
  								<D:from>
    									<D:scope>
      										<D:href>%globalVariableCollection%/test/test.xml</D:href>
    									</D:scope>
  								</D:from>
  							</D:basicsearch>
  						</searchrequest>
     				]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi-Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName" varDefinition="testresourcecheckout" varPath="multistatus/response/propstat/prop/checked-out/href"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  				<D:multistatus xmlns:D="DAV:">
  					<D:response>
  						<D:href>/%globalVariableServerName%/%globalVariableCollection%/test/test.xml</D:href>
  						<D:propstat>
  							<D:prop>
  								<D:supportedlock>
  									<D:lockentry>
  										<D:lockscope>
  											<D:exclusive/>
  										</D:lockscope>
  										<D:locktype>
  											<D:write/>
  										</D:locktype>
  									</D:lockentry>
  									<D:lockentry>
  										<D:lockscope>
  											<D:shared/>
  										</D:lockscope>
  										<D:locktype>
  											<D:write/>
  										</D:locktype>
  									</D:lockentry>
  								</D:supportedlock>
  								<D:source/>
  								<xsv:isXml xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav">true</xsv:isXml>
  								<D:creationdate>2002-08-12T08:41:04Z</D:creationdate>
  								<D:lockdiscovery/>
  								<D:getcontentlength>*</D:getcontentlength>
  								<D:displayname>test.xml</D:displayname>
  								<D:getcontenttype>text/xml</D:getcontenttype>
  								<D:getcontentlanguage>en</D:getcontentlanguage>
  								<D:resourcetype/>
  								<xsv:xdavContentId xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav">*</xsv:xdavContentId>
  								<D:getlastmodified>Mon, 12 Aug 2002 08:41:05 GMT</D:getlastmodified>
  								<D:getetag>*</D:getetag>
  							</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>