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/12 13:14:57 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/BIND/functional/VCR VcrBindChoutChin.xml VcrBindChout.xml VcrBind_1.xml VcrBind.xml

juergen     2003/08/12 04:14:57

  Added:       testsuite/testsuite/junit/xmltestcases/BIND/functional/VCR
                        VcrBindChoutChin.xml VcrBindChout.xml VcrBind_1.xml
                        VcrBind.xml
  Log:
  kaz
  
  Revision  Changes    Path
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/BIND/functional/VCR/VcrBindChoutChin.xml
  
  Index: VcrBindChoutChin.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
  <test>
  	<specification>
  		<abstract> Test which checks that seconds version-history is different to first. </abstract>
  		<description>
  		1) Create three collection, test1,test2,test3
  		2) Create test2.xml under test2
  		3) VERSION-CONTROL command which puts the file test2.xml under version control
  		4) Report commmand which checks the version-history property
  		5) BIND command which binds test2.xml to test1, and test3
  		6) CHECKOUT command whichs check-out test2/test2.xml, 
  		7) CHECKIN command whichs check-in test3/test2.xml, a new version is created
  		8) Delete command which deletes the resources created by test
  		
  		</description>
  		<expectedResult> 2 report commands should return different version-history properties </expectedResult>
  	</specification>
  	
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
  		</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test2 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test3 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test2/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">VERSION-CONTROL /%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml HTTP/1.1</command>
  			<header>Content-type: text/xml; charset="utf-8"</header>
  		</request>
  		<response>
  			<command>HTTP/1.0 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">BIND /%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
  			<header>Overwrite: F</header>
  			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
  		            <bind>
  		              <segment>test2.xml</segment>
  		              <href>/%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml</href>
  		            </bind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.1 201 Created</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">BIND /%globalVariableServerName%/%globalVariableCollection%/test3 HTTP/1.1</command>
  			<header>Overwrite: F</header>
  			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
  		            <bind>
  		              <segment>test2.xml</segment>
  		              <href>/%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml</href>
  		            </bind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.1 201 Created</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">CHECKOUT /%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml HTTP/1.1</command>
  			<header>Content-type: text/xml; charset="utf-8"</header>
  		</request>
  		<response>
  			<command>HTTP/1.0 200 OK</command>
  		</response>
  	</step>
  	
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName">REPORT /%globalVariableServerName%/%globalVariableCollection%/test1/test2.xml HTTP/1.1</command>
  			<body><![CDATA[<D:version-tree xmlns:D="DAV:"><D:prop><D:version-history/></D:prop></D:version-tree>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName" varDefinition="VH" varPath="multistatus/response/propstat/prop/version-history/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  <multistatus xmlns="DAV:">
    <response>
      <href>*</href>
      <propstat>
        <prop>
          <version-history>
            <href>*</href>
          </version-history>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]></body>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName,VH">PROPFIND %VH%/1.0 HTTP/1.1</command>
  			<header>Depth: 1</header>
  			<body><![CDATA[<?xml version="1.0" ?><D:propfind xmlns:D="DAV:"><D:prop><D:successor-set/></D:prop></D:propfind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName,VH"  varPath="multistatus/response/propstat/prop/successor-set/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  	               <multistatus xmlns="DAV:">
  					  <response>
  					    <href>*</href>
  					    <propstat>
  					      <prop>
  					        <successor-set/>
  					      </prop>
  					      <status>HTTP/1.1 200 OK</status>
  					    </propstat>
  					  </response>
  					</multistatus>]]></body>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">CHECKIN  /%globalVariableServerName%/%globalVariableCollection%/test3/test2.xml HTTP/1.1</command>
  			<header>Content-type: text/xml; charset="utf-8"</header>
  		</request>
  		<response>
  			<command>HTTP/1.1 201 Created</command>
  			<header>Cache-Control: no-cache</header>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName,VH">PROPFIND %VH%/1.0 HTTP/1.1</command>
  			<header>Depth: 1</header>
  			<body><![CDATA[<?xml version="1.0" ?><D:propfind xmlns:D="DAV:"><D:prop><D:successor-set/></D:prop></D:propfind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName,VH,"  varPath="multistatus/response/propstat/prop/successor-set/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  	               <multistatus xmlns="DAV:">
  					  <response>
  					    <href>*</href>
  					    <propstat>
  					      <prop>
  					        <successor-set>
  					          <href>%VH%/1.1</href>
  					        </successor-set>
  					      </prop>
  					      <status>HTTP/1.1 200 OK</status>
  					    </propstat>
  					  </response>
  					</multistatus>]]></body>
  		</response>
  	</step>
  
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName,VH">DELETE %VH% HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test2 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test3 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/BIND/functional/VCR/VcrBindChout.xml
  
  Index: VcrBindChout.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
  <test>
  	<specification>
  		<abstract> Test which checks that seconds version-history is different to first. </abstract>
  		<description>
  		1) Create three collection, test1,test2,test3
  		2) Create test2.xml under test2
  		3) VERSION-CONTROL command which puts the file test2.xml under version control
  		4) Report commmand which checks the version-history property
  		5) BIND command which binds test2.xml to test1, and test3
  		6) CHECKOUT command whichs check-out test2/test2.xml, 
  		6) CHECKOUT command whichs tries to check-out test3/test2.xml, or test1/test2.xml not possible (precondition violation)
  		6) UNCHECKOUT command whichs uncheck-out test2/test2.xml, 
  		8) Delete command which deletes the resources created by test
  		
  		</description>
  		<expectedResult> 2 report commands should return different version-history properties </expectedResult>
  	</specification>
  	
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
  		</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test2 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test3 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test2/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">VERSION-CONTROL /%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml HTTP/1.1</command>
  			<header>Content-type: text/xml; charset="utf-8"</header>
  		</request>
  		<response>
  			<command>HTTP/1.0 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">BIND /%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
  			<header>Overwrite: F</header>
  			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
  		            <bind>
  		              <segment>test2.xml</segment>
  		              <href>/%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml</href>
  		            </bind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.1 201 Created</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">BIND /%globalVariableServerName%/%globalVariableCollection%/test3 HTTP/1.1</command>
  			<header>Overwrite: F</header>
  			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
  		            <bind>
  		              <segment>test2.xml</segment>
  		              <href>/%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml</href>
  		            </bind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.1 201 Created</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">CHECKOUT /%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml HTTP/1.1</command>
  			<header>Content-type: text/xml; charset="utf-8"</header>
  		</request>
  		<response>
  			<command>HTTP/1.0 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">CHECKOUT /%globalVariableServerName%/%globalVariableCollection%/test1/test2.xml HTTP/1.1</command>
  			<header>Content-type: text/xml; charset="utf-8"</header>
  		</request>
  		<response>
  			<command>HTTP/1.0 (403,409)</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
                  <D:error xmlns:D="DAV:">
                    <D:must-be-checked-in />
                  </D:error>
                 ]]>
  			</body>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">CHECKOUT /%globalVariableServerName%/%globalVariableCollection%/test3/test2.xml HTTP/1.1</command>
  			<header>Content-type: text/xml; charset="utf-8"</header>
  		</request>
  		<response>
  			<command>HTTP/1.0 (403,409)</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
                  <D:error xmlns:D="DAV:">
                    <D:must-be-checked-in />
                  </D:error>
                 ]]>
  			</body>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">UNCHECKOUT /%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml HTTP/1.1</command>
  			<header>Content-type: text/xml; charset="utf-8"</header>
  		</request>
  		<response>
  			<command>HTTP/1.0  200 Ok</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName">REPORT /%globalVariableServerName%/%globalVariableCollection%/test1/test2.xml HTTP/1.1</command>
  			<body><![CDATA[<D:version-tree xmlns:D="DAV:"><D:prop><D:version-history/></D:prop></D:version-tree>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName" varDefinition="VH" varPath="multistatus/response/propstat/prop/version-history/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  <multistatus xmlns="DAV:">
    <response>
      <href>*</href>
      <propstat>
        <prop>
          <version-history>
            <href>*</href>
          </version-history>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]></body>
  		</response>
  	</step>
  	
  
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName,VH">DELETE %VH% HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test2 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test3 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/BIND/functional/VCR/VcrBind_1.xml
  
  Index: VcrBind_1.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
  <test>
  	<specification>
  		<abstract> Test which checks that seconds version-history is different to first. </abstract>
  		<description>
  		1) Create three collection, test1,test2,test3
  		2) Create test2.xml under test2
  		3) VERSION-CONTROL command which puts the file test2.xml under version control
  		4) Report commmand which checks the version-history property
  		5) BIND command which binds test2.xml to test1, and test3
  		6) delete test2
  		6) PUT command which updates test1/test2.xml new version is created
  		7) Put command which updates test3/test2.xml and new version is created
  		8) Delete command which deletes the resources created by test
  		
  		</description>
  		<expectedResult> 2 report commands should return different version-history properties </expectedResult>
  	</specification>
  	
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
  		</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test2 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test3 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test2/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">VERSION-CONTROL /%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml HTTP/1.1</command>
  			<header>Content-type: text/xml; charset="utf-8"</header>
  		</request>
  		<response>
  			<command>HTTP/1.0 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">BIND /%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
  			<header>Overwrite: F</header>
  			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
  		            <bind>
  		              <segment>test2.xml</segment>
  		              <href>/%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml</href>
  		            </bind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.1 201 Created</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">BIND /%globalVariableServerName%/%globalVariableCollection%/test3 HTTP/1.1</command>
  			<header>Overwrite: F</header>
  			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
  		            <bind>
  		              <segment>test2.xml</segment>
  		              <href>/%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml</href>
  		            </bind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.1 201 Created</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test2 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName">REPORT /%globalVariableServerName%/%globalVariableCollection%/test1/test2.xml HTTP/1.1</command>
  			<body><![CDATA[<D:version-tree xmlns:D="DAV:"><D:prop><D:version-history/></D:prop></D:version-tree>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName" varDefinition="VH" varPath="multistatus/response/propstat/prop/version-history/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  <multistatus xmlns="DAV:">
    <response>
      <href>*</href>
      <propstat>
        <prop>
          <version-history>
            <href>*</href>
          </version-history>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]></body>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName,VH">PROPFIND %VH%/1.0 HTTP/1.1</command>
  			<header>Depth: 1</header>
  			<body><![CDATA[<?xml version="1.0" ?><D:propfind xmlns:D="DAV:"><D:prop><D:successor-set/></D:prop></D:propfind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName,VH"  varPath="multistatus/response/propstat/prop/successor-set/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  	               <multistatus xmlns="DAV:">
  					  <response>
  					    <href>*</href>
  					    <propstat>
  					      <prop>
  					        <successor-set/>
  					      </prop>
  					      <status>HTTP/1.1 200 OK</status>
  					    </propstat>
  					  </response>
  					</multistatus>]]></body>
  		</response>
  	</step>
  	
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName,VH">PUT  /%globalVariableServerName%/%globalVariableCollection%/test1/test2.xml  HTTP/1.1</command>
  			<body fileReference="../../../contentDirectory/validXML.xm1"/>
  		</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName,VH">PROPFIND %VH%/1.0 HTTP/1.1</command>
  			<header>Depth: 1</header>
  			<body><![CDATA[<?xml version="1.0" ?><D:propfind xmlns:D="DAV:"><D:prop><D:successor-set/></D:prop></D:propfind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName,VH,VH1" varDefinition="VH1" varPath="multistatus/response/propstat/prop/successor-set/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  	               <multistatus xmlns="DAV:">
  					  <response>
  					    <href>*</href>
  					    <propstat>
  					      <prop>
  					        <successor-set>
  					          <href>%VH%/1.1</href>
  					        </successor-set>
  					      </prop>
  					      <status>HTTP/1.1 200 OK</status>
  					    </propstat>
  					  </response>
  					</multistatus>]]></body>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName,VH">PROPFIND %VH%/1.1 HTTP/1.1</command>
  			<header>Depth: 1</header>
  			<body><![CDATA[<?xml version="1.0" ?><D:propfind xmlns:D="DAV:"><D:prop><D:successor-set/></D:prop></D:propfind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName,VH"  varPath="multistatus/response/propstat/prop/successor-set/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  	               <multistatus xmlns="DAV:">
  					  <response>
  					    <href>*</href>
  					    <propstat>
  					      <prop>
  					        <successor-set/>
  					      </prop>
  					      <status>HTTP/1.1 200 OK</status>
  					    </propstat>
  					  </response>
  					</multistatus>]]></body>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName,VH">PUT  /%globalVariableServerName%/%globalVariableCollection%/test3/test2.xml  HTTP/1.1</command>
  			<body fileReference="../../../contentDirectory/validXML.xm1"/>
  		</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName,VH">PROPFIND %VH%/1.1 HTTP/1.1</command>
  			<header>Depth: 1</header>
  			<body><![CDATA[<?xml version="1.0" ?><D:propfind xmlns:D="DAV:"><D:prop><D:successor-set/></D:prop></D:propfind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName,VH"  varPath="multistatus/response/propstat/prop/successor-set/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  	               <multistatus xmlns="DAV:">
  					  <response>
  					    <href>*</href>
  					    <propstat>
  					      <prop>
  					        <successor-set>
  					          <href>%VH%/1.2</href>
  					        </successor-set>
  					      </prop>
  					      <status>HTTP/1.1 200 OK</status>
  					    </propstat>
  					  </response>
  					</multistatus>]]></body>
  		</response>
  	</step>
  
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName,VH">DELETE %VH% HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test3 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/BIND/functional/VCR/VcrBind.xml
  
  Index: VcrBind.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
  <test>
  	<specification>
  		<abstract> Test which checks that seconds version-history is different to first. </abstract>
  		<description>
  		1) Create three collection, test1,test2,test3
  		2) Create test2.xml under test2
  		3) VERSION-CONTROL command which puts the file test2.xml under version control
  		4) Report commmand which checks the version-history property
  		5) BIND command which binds test2 to test1, and test3
  		6) PUT command which updates test1/test2/test2.xml new version is created
  		7) Put command which updates test3/test2/test2.xml and new version is created
  		8) Delete command which deletes the resources created by test
  		
  		</description>
  		<expectedResult> 2 report commands should return different version-history properties </expectedResult>
  	</specification>
  	
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
  		</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test2 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test3 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test2/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">VERSION-CONTROL /%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml HTTP/1.1</command>
  			<header>Content-type: text/xml; charset="utf-8"</header>
  		</request>
  		<response>
  			<command>HTTP/1.0 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">BIND /%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
  			<header>Overwrite: F</header>
  			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
  		            <bind>
  		              <segment>test2</segment>
  		              <href>/%globalVariableServerName%/%globalVariableCollection%/test2</href>
  		            </bind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.1 201 Created</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">BIND /%globalVariableServerName%/%globalVariableCollection%/test3 HTTP/1.1</command>
  			<header>Overwrite: F</header>
  			<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
  		            <bind>
  		              <segment>test2</segment>
  		              <href>/%globalVariableServerName%/%globalVariableCollection%/test2</href>
  		            </bind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.1 201 Created</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName">REPORT /%globalVariableServerName%/%globalVariableCollection%/test2/test2.xml HTTP/1.1</command>
  			<body><![CDATA[<D:version-tree xmlns:D="DAV:"><D:prop><D:version-history/></D:prop></D:version-tree>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName" varDefinition="VH" varPath="multistatus/response/propstat/prop/version-history/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  <multistatus xmlns="DAV:">
    <response>
      <href>*</href>
      <propstat>
        <prop>
          <version-history>
            <href>*</href>
          </version-history>
        </prop>
        <status>HTTP/1.1 200 OK</status>
      </propstat>
    </response>
  </multistatus>]]></body>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName,VH">PROPFIND %VH%/1.0 HTTP/1.1</command>
  			<header>Depth: 1</header>
  			<body><![CDATA[<?xml version="1.0" ?><D:propfind xmlns:D="DAV:"><D:prop><D:successor-set/></D:prop></D:propfind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName,VH"  varPath="multistatus/response/propstat/prop/successor-set/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  	               <multistatus xmlns="DAV:">
  					  <response>
  					    <href>*</href>
  					    <propstat>
  					      <prop>
  					        <successor-set/>
  					      </prop>
  					      <status>HTTP/1.1 200 OK</status>
  					    </propstat>
  					  </response>
  					</multistatus>]]></body>
  		</response>
  	</step>
  	
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName,VH">PUT  /%globalVariableServerName%/%globalVariableCollection%/test1/test2/test2.xml  HTTP/1.1</command>
  			<body fileReference="../../../contentDirectory/validXML.xm1"/>
  		</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName,VH">PROPFIND %VH%/1.0 HTTP/1.1</command>
  			<header>Depth: 1</header>
  			<body><![CDATA[<?xml version="1.0" ?><D:propfind xmlns:D="DAV:"><D:prop><D:successor-set/></D:prop></D:propfind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName,VH,VH1" varDefinition="VH1" varPath="multistatus/response/propstat/prop/successor-set/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  	               <multistatus xmlns="DAV:">
  					  <response>
  					    <href>*</href>
  					    <propstat>
  					      <prop>
  					        <successor-set>
  					          <href>%VH%/1.1</href>
  					        </successor-set>
  					      </prop>
  					      <status>HTTP/1.1 200 OK</status>
  					    </propstat>
  					  </response>
  					</multistatus>]]></body>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName,VH">PROPFIND %VH%/1.1 HTTP/1.1</command>
  			<header>Depth: 1</header>
  			<body><![CDATA[<?xml version="1.0" ?><D:propfind xmlns:D="DAV:"><D:prop><D:successor-set/></D:prop></D:propfind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName,VH"  varPath="multistatus/response/propstat/prop/successor-set/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  	               <multistatus xmlns="DAV:">
  					  <response>
  					    <href>*</href>
  					    <propstat>
  					      <prop>
  					        <successor-set/>
  					      </prop>
  					      <status>HTTP/1.1 200 OK</status>
  					    </propstat>
  					  </response>
  					</multistatus>]]></body>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName,VH">PUT  /%globalVariableServerName%/%globalVariableCollection%/test3/test2/test2.xml  HTTP/1.1</command>
  			<body fileReference="../../../contentDirectory/validXML.xm1"/>
  		</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,userNumber,globalVariableServerName,VH">PROPFIND %VH%/1.1 HTTP/1.1</command>
  			<header>Depth: 1</header>
  			<body><![CDATA[<?xml version="1.0" ?><D:propfind xmlns:D="DAV:"><D:prop><D:successor-set/></D:prop></D:propfind>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi Status</command>
  			<body varUsage="globalVariableCollection,globalVariableServerName,VH"  varPath="multistatus/response/propstat/prop/successor-set/href"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  	               <multistatus xmlns="DAV:">
  					  <response>
  					    <href>*</href>
  					    <propstat>
  					      <prop>
  					        <successor-set>
  					          <href>%VH%/1.2</href>
  					        </successor-set>
  					      </prop>
  					      <status>HTTP/1.1 200 OK</status>
  					    </propstat>
  					  </response>
  					</multistatus>]]></body>
  		</response>
  	</step>
  
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName,VH">DELETE %VH% HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test1 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test2 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test3 HTTP/1.1</command>
  			</request>
  		<response>
  			<command>HTTP/1.0 204 No Content</command>
  			</response>
  	</step>
  	
  </test>
  
  
  

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