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 lu...@apache.org on 2004/11/16 15:31:12 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/where/log_ops userdefinedAndDisplayname.xml userdefinedOrDisplayname.xml

luetzkendorf    2004/11/16 06:31:12

  Added:       testsuite/testsuite/junit/xmltestcases/DASL/functional/propContains
                        displayName.xml
               testsuite/testsuite/junit/xmltestcases/DASL/functional/where/eq
                        userdefined.xml
               testsuite/testsuite/junit/xmltestcases/DASL/functional/where/log_ops
                        userdefinedAndDisplayname.xml
                        userdefinedOrDisplayname.xml
  Log:
  testcases
  
  Revision  Changes    Path
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/propContains/displayName.xml
  
  Index: displayName.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Search for specified Properties on resources where the property matches a specified string. </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. The test property matches the one being sought.
  		2) A second resource is Put to the Server. The properties of this file should NOT be returned as its test property
  		does not match the specified string.
  		3) A Search is performed. The specified properties are only returned where the test property matches the given
  		string. Case sensitivity is not stated.
  		4) The resources are deleted.
  		</description>
      <expectedResult>A 207 Multi-Status response code should be returned by the Search. 
  		Within the body the requested properties should be returned for the first file 'test.xml' only. 
  		This is the only resource where the  property is 'FOO'.
  		The first two properties should be discovered with a 200 OK response code,
  		the third property 'test' does not exist and should return a 404 Not Found error response code.
  		</expectedResult>
    </specification>
    <step>
      <request>
        <command varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
        <body fileReference="../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>FOOBAR</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></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/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
    </d:response>
  </d:multistatus>
  
  ]]></body>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT %globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
        <body fileReference="../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH %globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>different value</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></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%/test2.xml</d:href>
      <d:propstat>
        <d:prop>
          <d:displayname/>
        </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,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
          <searchrequest xmlns:D="DAV:" xmlns:S="http://jakarta.apache.org/slide/">
    <D:basicsearch>
      <D:select>
        <D:prop>
          <D:getcontenttype />
          <D:this />
        </D:prop>
      </D:select>
      <D:from>
        <D:scope>
          <D:href>%globalVariableServerName%/%globalVariableCollection%/</D:href>
        </D:scope>
      </D:from>
      <D:where>
        <S:propcontains>
          <D:prop>
            <D:displayname/>
          </D:prop>
          <D:literal>OBA</D:literal>
        </S:propcontains>
      </D:where>
    </D:basicsearch>
  </searchrequest>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <body varUsage="globalVariableServerName,globalVariableCollection"><![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:getcontenttype>text/xml</D:getcontenttype>
        </D:prop>
        <D:status>HTTP/1.1 200 OK</D:status>
      </D:propstat>
      <D:propstat>
        <D:prop>
          <D:this />
        </D:prop>
        <D:status>HTTP/1.1 404 Not Found</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>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
      <step>
        <request>
          <command varUsage="globalVariableCollection,globalVariableServerName"> DELETE %globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/where/eq/userdefined.xml
  
  Index: userdefined.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Search for specified Properties on resources where the property matches a specified string. </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. The test property matches the one being sought.
  		2) A second resource is Put to the Server. The properties of this file should NOT be returned as its test property
  		does not match the specified string.
  		3) A Search is performed. The specified properties are only returned where the test property matches the given
  		string. Case sensitivity is not stated.
  		4) The resources are deleted.
  		</description>
      <expectedResult>A 207 Multi-Status response code should be returned by the Search. 
  		Within the body the requested properties should be returned for the first file 'test.xml' only. 
  		This is the only resource where the  property is 'FOO'.
  		The first two properties should be discovered with a 200 OK response code,
  		the third property 'test' does not exist and should return a 404 Not Found error response code.
  		</expectedResult>
    </specification>
    <step>
      <request>
        <command varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:" xmlns:R="http://www.com/">
    <D:set>
      <D:prop>
        <R:test>FOO</R:test>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></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" xmlns:R="http://www.com/">
    <d:response>
      <d:href>%globalVariableServerName%/%globalVariableCollection%/test.xml</d:href>
      <d:propstat>
        <d:prop>
          <R:test />
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
    </d:response>
  </d:multistatus>
  
  ]]></body>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT %globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH %globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:" xmlns:R="http://www.com/">
    <D:set>
      <D:prop>
        <R:test>different value</R:test>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></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" xmlns:R="http://www.com/">
    <d:response>
      <d:href>%globalVariableServerName%/%globalVariableCollection%/test2.xml</d:href>
      <d:propstat>
        <d:prop>
          <R:test />
        </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,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <searchrequest xmlns:D="DAV:" xmlns:R="http://www.com/">
    <D:basicsearch>
      <D:select>
        <D:prop>
          <D:getcontenttype />
          <D:this />
        </D:prop>
      </D:select>
      <D:from>
        <D:scope>
          <D:href>%globalVariableServerName%/%globalVariableCollection%/</D:href>
        </D:scope>
      </D:from>
      <D:where>
        <D:eq>
          <D:prop>
            <R:test />
          </D:prop>
          <D:literal>FOO</D:literal>
        </D:eq>
      </D:where>
    </D:basicsearch>
  </searchrequest>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:multistatus xmlns:D="DAV:" xmlns:R="http://www.com/">
    <D:response>
      <D:href>%globalVariableServerName%/%globalVariableCollection%/test.xml</D:href>
      <D:propstat>
        <D:prop>
          <D:getcontenttype>text/xml</D:getcontenttype>
        </D:prop>
        <D:status>HTTP/1.1 200 OK</D:status>
      </D:propstat>
      <D:propstat>
        <D:prop>
          <D:this />
        </D:prop>
        <D:status>HTTP/1.1 404 Not Found</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>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
      <step>
        <request>
          <command varUsage="globalVariableCollection,globalVariableServerName"> DELETE %globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/where/log_ops/userdefinedAndDisplayname.xml
  
  Index: userdefinedAndDisplayname.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract>Test for Lucene Indexer. Tests mixed usage of indexed and not indexed properties</abstract>
      <pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
      <description>
      </description>
  		<expectedResult>
  		</expectedResult>
    </specification>
    <step>
      <request>
        <command varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:" xmlns:X="extra">
    <D:set>
      <D:prop>
        <D:displayname>FOO</D:displayname>
      </D:prop>
    </D:set>
    <D:set>
      <D:prop>
        <X:user-defined>BAR</X:user-defined>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></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" xmlns:x="extra">
    <d:response>
      <d:href>%globalVariableServerName%/%globalVariableCollection%/test.xml</d:href>
      <d:propstat>
        <d:prop>
          <d:displayname/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
      <d:propstat>
        <d:prop>
          <x:user-defined/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
    </d:response>
  </d:multistatus>
  
  ]]></body>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT %globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH %globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:" xmlns:X="extra">
    <D:set>
      <D:prop>
        <D:displayname>different value</D:displayname>
      </D:prop>
    </D:set>
    <D:set>
      <D:prop>
        <X:user-defined>ditto</X:user-defined>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></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" xmlns:x="extra">
    <d:response>
      <d:href>%globalVariableServerName%/%globalVariableCollection%/test2.xml</d:href>
      <d:propstat>
        <d:prop>
          <d:displayname/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
      <d:propstat>
        <d:prop>
          <x:user-defined/>
        </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,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <searchrequest xmlns:D="DAV:" xmlns:X="extra">
    <D:basicsearch>
      <D:select>
        <D:prop> <D:displayname/> </D:prop>
      </D:select>
      <D:from>
        <D:scope>
          <D:href>%globalVariableServerName%/%globalVariableCollection%/</D:href>
        </D:scope>
      </D:from>
      <D:where>
        <D:and>
          <D:eq>
            <D:prop> <D:displayname/> </D:prop>
            <D:literal>FOO</D:literal>
          </D:eq>
          <D:eq>
            <D:prop> <X:user-defined/> </D:prop>
            <D:literal>BAR</D:literal>
          </D:eq>
        </D:and>
      </D:where>
    </D:basicsearch>
  </searchrequest>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <body varUsage="globalVariableServerName,globalVariableCollection"><![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>FOO</D:displayname>
        </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>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
      <step>
        <request>
          <command varUsage="globalVariableCollection,globalVariableServerName">DELETE %globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/where/log_ops/userdefinedOrDisplayname.xml
  
  Index: userdefinedOrDisplayname.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract>Test for Lucene Indexer. Tests mixed usage of indexed and not indexed properties</abstract>
      <pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
      <description>
      </description>
  		<expectedResult>
  		</expectedResult>
    </specification>
    <step>
      <request>
        <command varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:" xmlns:X="extra">
    <D:set>
      <D:prop>
        <D:displayname>FOO</D:displayname>
      </D:prop>
    </D:set>
    <D:set>
      <D:prop>
        <X:user-defined>any</X:user-defined>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></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" xmlns:x="extra">
    <d:response>
      <d:href>%globalVariableServerName%/%globalVariableCollection%/test.xml</d:href>
      <d:propstat>
        <d:prop>
          <d:displayname/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
      <d:propstat>
        <d:prop>
          <x:user-defined/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
    </d:response>
  </d:multistatus>
  
  ]]></body>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT %globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH %globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:" xmlns:X="extra">
    <D:set>
      <D:prop>
        <D:displayname>different value</D:displayname>
      </D:prop>
    </D:set>
    <D:set>
      <D:prop>
        <X:user-defined>BAR</X:user-defined>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></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" xmlns:x="extra">
    <d:response>
      <d:href>%globalVariableServerName%/%globalVariableCollection%/test2.xml</d:href>
      <d:propstat>
        <d:prop>
          <d:displayname/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
      <d:propstat>
        <d:prop>
          <x:user-defined/>
        </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,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <searchrequest xmlns:D="DAV:" xmlns:X="extra">
    <D:basicsearch>
      <D:select>
        <D:prop/> 
      </D:select>
      <D:from>
        <D:scope>
          <D:href>%globalVariableServerName%/%globalVariableCollection%/</D:href>
        </D:scope>
      </D:from>
      <D:where>
        <D:or>
          <D:eq>
            <D:prop> <D:displayname/> </D:prop>
            <D:literal>FOO</D:literal>
          </D:eq>
          <D:eq>
            <D:prop> <X:user-defined/> </D:prop>
            <D:literal>BAR</D:literal>
          </D:eq>
        </D:or>
      </D:where>
    </D:basicsearch>
  </searchrequest>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:multistatus xmlns:D="DAV:">
    <D:response>
      <D:href>%globalVariableServerName%/%globalVariableCollection%/test.xml</D:href>
    </D:response>
    <D:response>
      <D:href>%globalVariableServerName%/%globalVariableCollection%/test2.xml</D:href>
    </D:response>
  </D:multistatus>
  
  ]]></body>
      </response>
    </step>
    <cleanup>
      <step>
        <request>
          <command varUsage="globalVariableCollection,globalVariableServerName">DELETE %globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
      <step>
        <request>
          <command varUsage="globalVariableCollection,globalVariableServerName">DELETE %globalVariableServerName%/%globalVariableCollection%/test2.xml HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org