juergen     2002/06/26 01:33:37

  Added:       testsuite/testsuite/junit/xmltestcases/functional/multiplestores/code
                        moveFile.xml move.xml copyFile.xml copy.xml
  Log:
  Tests to check WebDAV commands across multiple stores.
  
  Revision  Changes    Path
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/multiplestores/code/moveFile.xml
  
  Index: moveFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
  
  <test>
        <specification>
                
                <abstract> A Move command is issued to move between two different 
stores. The Move is performed against a single file. </abstract>
                
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd. A secondary collection
                has been created on the server. This should have the name 
%globalVariableCollection%_secondCollection</pre-Requisite>
                
                <description>
                1) Put to place a resource to the server.
                2) Begin repeater.
                3) Move the resource from %globalVariableCollection% to 
%globalVariableCollection%_secondCollection.
                4) Move the resource from %globalVariableCollection%_secondCollection 
to %globalVariableCollection%.
                5) End repeater.
                6) Delete all resources.
                </description>
                
                <expectedResult>The Move commands copying between the two stores 
should work without error,
                returning 201 Created response codes.</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>
        
        
                
        <repeater repeatCount="10">
        
        
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName">MOVE 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
                                <header>Accept-Language: en-us</header>
                                <header>Overwrite: F</header>
                                <header 
varUsage="globalVariableCollection,globalVariableServerName">Destination: 
/%globalVariableServerName%/%globalVariableCollection%_secondCollection/test.xml</header>
                                <header>Translate: f</header>
                                <header>User-Agent: Microsoft Data Access Internet 
Publishing Provider DAV</header>
                                <header>Content-: 0</header>
                        </request>
                        <response>
                                <command>HTTP/1.0 201 Created</command>
                                <header>Date: Mon, 19 Mar 2001 17:24:08 
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">MOVE 
/%globalVariableServerName%/%globalVariableCollection%_secondCollection/test.xml 
HTTP/1.1</command>
                                <header>Accept-Language: en-us</header>
                                <header>Overwrite: F</header>
                                <header 
varUsage="globalVariableCollection,globalVariableServerName">Destination: 
/%globalVariableServerName%/%globalVariableCollection%/test.xml</header>
                                <header>Translate: f</header>
                                <header>User-Agent: Microsoft Data Access Internet 
Publishing Provider DAV</header>
                                <header>Content-: 0</header>
                        </request>
                        <response>
                                <command>HTTP/1.0 201 Created</command>
                                <header>Date: Mon, 19 Mar 2001 17:24:08 
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>
                
        
        </repeater>
        
        
        
        
        <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/functional/multiplestores/code/move.xml
  
  Index: move.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
  
  <test>
        <specification>
                
                <abstract> A Move command is issued to move between two different 
stores. </abstract>
                
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd. A secondary collection
                has been created on the server. This should have the name 
%globalVariableCollection%_secondCollection</pre-Requisite>
                
                <description>
                1) MKCol to create a 'level1' collection.
                2) MKCol to create a 'level1/level2' collection.
                3) MKCol to create a 'level1/level2/level3' collection. 
                4) Put to place a resource at level 1.
                5) Put to place a resource at level 2.
                6) Put to place a resource at level 3.
                7) Begin repeater.
                8) Move from %globalVariableCollection% to 
%globalVariableCollection%_secondCollection.
                9) Move from %globalVariableCollection%_secondCollection to 
%globalVariableCollection%.
                10) End repeater.
                11) Delete all resources.
                </description>
                
                <expectedResult>The Move commands moving between the two stores should 
work without error, 
                returning 201 Created response codes.</expectedResult>
                
        </specification>
        
        
        
        
        
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName"> MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/level1 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="globalVariableCollection,globalVariableServerName"> MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/level1/level2 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="globalVariableCollection,globalVariableServerName"> MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/level1/level2/level3 
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%/level1/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%/level1/level2/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%/level1/level2/level3/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>
        
                
        
        
        
        <repeater repeatCount="10">
        
        
                <step>
                        <request>
                                <command 
varUsage="globalVariableCollection,globalVariableServerName">MOVE 
/%globalVariableServerName%/%globalVariableCollection%/level1 HTTP/1.1</command>
                                <header>Accept-Language: en-us</header>
                                <header>Overwrite: F</header>
                                <header 
varUsage="globalVariableCollection,globalVariableServerName">Destination: 
/%globalVariableServerName%/%globalVariableCollection%_secondCollection/level1</header>
                                <header>Translate: f</header>
                                <header>User-Agent: Microsoft Data Access Internet 
Publishing Provider DAV</header>
                                <header>Content-: 0</header>
                        </request>
                        <response>
                                <command>HTTP/1.0 201 Created</command>
                                <header>Date: Mon, 19 Mar 2001 17:24:08 
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">MOVE 
/%globalVariableServerName%/%globalVariableCollection%_secondCollection/level1 
HTTP/1.1</command>
                                <header>Accept-Language: en-us</header>
                                <header>Overwrite: F</header>
                                <header 
varUsage="globalVariableCollection,globalVariableServerName">Destination: 
/%globalVariableServerName%/%globalVariableCollection%/level1</header>
                                <header>Translate: f</header>
                                <header>User-Agent: Microsoft Data Access Internet 
Publishing Provider DAV</header>
                                <header>Content-: 0</header>
                        </request>
                        <response>
                                <command>HTTP/1.0 201 Created</command>
                                <header>Date: Mon, 19 Mar 2001 17:24:08 
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>
                
        
        </repeater>
        
        
        
        
        <cleanup>
        
                <step>
                        <request>
                                        <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/level1 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/functional/multiplestores/code/copyFile.xml
  
  Index: copyFile.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
  
  <test>
        <specification>
                
                <abstract> A Copy command is issued to copy between two different 
stores. The copy is performed against a single file. </abstract>
                
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd. A secondary collection
                has been created on the server. This should have the name 
%globalVariableCollection%_secondCollection</pre-Requisite>
                
                <description>
                1) Put to place a resource onto the server.
                2) Initital copy command with overwrite set to F. No resources should 
exist at the destination so overwrite is not needed.
                   Copy from %globalVariableCollection% to 
%globalVariableCollection%_secondCollection.
                3) Begin repeater equal to 10.
                4) Copy from %globalVariableCollection%_secondCollection to 
%globalVariableCollection%. Overwrite set to True.
                5) Copy from %globalVariableCollection% to 
%globalVariableCollection%_secondCollection. Overwrite set to True.
                6) End repeater.
                7) Delete all resources.
                </description>
                
                <expectedResult>First copy should return a 201 Created response code. 
This is as a result of the overwrite flag
                being set to True. The copies within the repeater should return 204 No 
Content response codes.
                No errors should occur as a result of copying between root 
collections.</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="globalVariableCollection,globalVariableServerName">COPY 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
                        <header>Accept-Language: en-us</header>
                        <header 
varUsage="globalVariableCollection,globalVariableServerName">Destination: 
/%globalVariableServerName%/%globalVariableCollection%_secondCollection/test.xml</header>
                        <header>Overwrite: F</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: Mon, 19 Feb 2001 10:55:53 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>
        
        
        
        
        
        <repeater repeatCount="10">
        
        
                <step>
                        <request>
                                <command  
varUsage="globalVariableCollection,globalVariableServerName">COPY 
/%globalVariableServerName%/%globalVariableCollection%_secondCollection/test.xml 
HTTP/1.1</command>
                                <header>Accept-Language: en-us</header>
                                <header 
varUsage="globalVariableCollection,globalVariableServerName">Destination: 
/%globalVariableServerName%/%globalVariableCollection%/test.xml</header>
                                <header>Overwrite: T</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: Mon, 19 Feb 2001 10:55:53 
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">COPY 
/%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
                                <header>Accept-Language: en-us</header>
                                <header 
varUsage="globalVariableCollection,globalVariableServerName">Destination: 
/%globalVariableServerName%/%globalVariableCollection%_secondCollection/test.xml</header>
                                <header>Overwrite: T</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: Mon, 19 Feb 2001 10:55:53 
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>
  
                
        </repeater>
        
  
        
        <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%_secondCollection/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/functional/multiplestores/code/copy.xml
  
  Index: copy.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
  
  <test>
        <specification>
                
                <abstract> A Copy command is issued to copy between two different 
stores. This is iterated 10 times. </abstract>
                
                <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd. A secondary collection
                has been created on the server. This should have the name 
%globalVariableCollection%_secondCollection</pre-Requisite>
                
                <description>
                1) MKCol to create a 'level1' collection.
                2) MKCol to create a 'level1/level2' collection.
                3) MKCol to create a 'level1/level2/level3' collection. 
                4) Put to place a resource at level 1.
                5) Put to place a resource at level 2.
                6) Put to place a resource at level 3.
                7) Initital copy command with overwrite set to F. No resources should 
exist at the destination so overwrite is not needed. 
                   Copy %globalVariableCollection%/level1 to 
%globalVariableCollection%_secondCollection/level1.
                8) Begin repeater equal to 10.
                9) Copy from %globalVariableCollection%_secondCollection/level1 to 
%globalVariableCollection%/level1. Overwrite set to True.
                10) Copy from %globalVariableCollection%/level1 to 
%globalVariableCollection%_secondCollection/level1. Overwrite set to True.
                11) End repeater.
                12) Delete all resources.
                </description>
                
                <expectedResult>First copy should return a 201 Created response code. 
This is as a result of the overwrite flag
                being set to True. The copies within the repeater should return 204 No 
Content response codes.
                No errors should occur as a result of copying between root 
collections.</expectedResult>
                
        </specification>
        
        
  
        <step>
                <request>
                        <command 
varUsage="globalVariableCollection,globalVariableServerName"> MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/level1 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="globalVariableCollection,globalVariableServerName"> MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/level1/level2 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="globalVariableCollection,globalVariableServerName"> MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/level1/level2/level3 
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%/level1/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%/level1/level2/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%/level1/level2/level3/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="globalVariableCollection,globalVariableServerName">COPY 
/%globalVariableServerName%/%globalVariableCollection%/level1 HTTP/1.1</command>
                        <header>Accept-Language: en-us</header>
                        <header 
varUsage="globalVariableCollection,globalVariableServerName">Destination: 
/%globalVariableServerName%/%globalVariableCollection%_secondCollection/level1</header>
                        <header>Overwrite: F</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: Mon, 19 Feb 2001 10:55:53 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>
        
        
        
        
        
        <repeater repeatCount="10">
        
        
                <step>
                        <request>
                                <command  
varUsage="globalVariableCollection,globalVariableServerName">COPY 
/%globalVariableServerName%/%globalVariableCollection%_secondCollection/level1 
HTTP/1.1</command>
                                <header>Accept-Language: en-us</header>
                                <header 
varUsage="globalVariableCollection,globalVariableServerName">Destination: 
/%globalVariableServerName%/%globalVariableCollection%/level1</header>
                                <header>Overwrite: T</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: Mon, 19 Feb 2001 10:55:53 
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">COPY 
/%globalVariableServerName%/%globalVariableCollection%/level1 HTTP/1.1</command>
                                <header>Accept-Language: en-us</header>
                                <header 
varUsage="globalVariableCollection,globalVariableServerName">Destination: 
/%globalVariableServerName%/%globalVariableCollection%_secondCollection/level1</header>
                                <header>Overwrite: T</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: Mon, 19 Feb 2001 10:55:53 
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>
  
                
        </repeater>
        
        
        
        
        <cleanup>
        
                <step>
                        <request>
                                        <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/level1 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%_secondCollection/level1 
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