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 2002/05/27 15:11:00 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/lock lock_subcollection_zh.xml lock_subcollection_ja.xml lock_subcollection_en.xml

juergen     02/05/27 06:11:00

  Added:       testsuite/testsuite/junit/xmltestcases/I18N/lock
                        lock_subcollection_zh.xml lock_subcollection_ja.xml
                        lock_subcollection_en.xml
  Log:
  renaming the files collection to subcollection
  
  Revision  Changes    Path
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/lock/lock_subcollection_zh.xml
  
  Index: lock_subcollection_zh.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
  <test>
  <specification> 
   <abstract> Checks if Lock of collection works fine.</abstract> 
   
   <description> The test case consist of following steps: MKCOL  with collection name having i18N char, PUTs a file, tries to lock the created collection, unlocks collection file, DELETEs the collection</description>
   <expectedResult> Status code returned by Get Method must be 200 Not Modified </expectedResult>
   </specification>
  
   	<!--             Test Case       Test Case         Test Case          Test Case                                      -->	
  	
   	<step>
  	   	<assign varDefinition ="subCollName">即可顯示</assign>
    	   	<request>
      			<command  varUsage="globalVariableCollection,globalVariableServerName,subCollName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/%subCollName% HTTP/1.1</command>
    	   	</request>
    	   	<response>
     			<command>HTTP/1.0 201 Created</command>
   	   	</response>
   	</step>
   	<step>
    	   	<request>
     	      		<command varUsage="globalVariableCollection,globalVariableServerName,subCollName">PUT /%globalVariableServerName%/%globalVariableCollection%/%subCollName%/i18ndoc.xml HTTP/1.1</command>
  			<body fileReference="../../contentDirectory/I18N/schema_zh/Big5/none/inst_table_nonei18n_Big5JP.xm1"  fileEncoding='Big5'>
                			</body>
    	   	</request>
    	   	<response>
     	      		<command>HTTP/1.0 201 Created</command>
    	   	</response>
   	</step>
          	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName,subCollName">LOCK /%globalVariableServerName%/%globalVariableCollection%/%subCollName% HTTP/1.1</command>
     
    	 		<body><![CDATA[<?xml version="1.0"?><A:lockinfo xmlns:A="DAV:"><A:locktype><A:write/></A:locktype><A:lockscope><A:exclusive/></A:lockscope><A:owner><A:href></A:href></A:owner></A:lockinfo>]]>
  			</body>
   	 	</request>
    		<response>
     			<command>HTTP/1.0 200 OK</command>
        			<body varUsage="globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?><d:prop xmlns:d="DAV:"><d:lockdiscovery><d:activelock><d:locktype><d:write/></d:locktype><d:lockscope><d:exclusive/></d:lockscope><d:depth>infinity</d:depth><d:owner>/%globalVariableServerName%/administration/security/users</d:owner><d:timeout>Second-604800</d:timeout><d:locktoken><d:href></d:href></d:locktoken></d:activelock></d:lockdiscovery></d:prop>]]></body>
    		</response>
   	</step>
  
   	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName,subCollName">UNLOCK /%globalVariableServerName%/%globalVariableCollection%/%subCollName% HTTP/1.1</command>
    
     			<header varUsage="automaticVariable2">Lock-Token: %varUsage%</header>
    
    		</request>
    		<response>
     			<command>HTTP/1.0 204 No Content</command>
     			
    		</response>
   	</step>
  
  
    	<step>
    	   	<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName,subCollName">DELETE /%globalVariableServerName%/%globalVariableCollection%/%subCollName% HTTP/1.1</command>
     			<header>Destroy: NoUndelete</header>
    	   	</request>
    	   	<response>
     			<command>HTTP/1.0 204 No Content</command>
    	   	</response>
   	</step>
  
   	
  </test>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/lock/lock_subcollection_ja.xml
  
  Index: lock_subcollection_ja.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
  <test>
  <specification> 
   <abstract> Checks if Lock of collection works fine.</abstract> 
   
   <description> The test case consist of following steps: MKCOL  with collection name having i18N char, PUTs a file, tries to lock the created collection, unlocks collection file, DELETEs the collection</description>
   <expectedResult> Status code returned by Get Method must be 200 Not Modified </expectedResult>
   </specification>
  
   	<!--             Test Case       Test Case         Test Case          Test Case                                      -->	
  	
   	<step>
  	   	<assign varDefinition ="subCollName">製品番号</assign>
    	   	<request>
      			<command  varUsage="globalVariableCollection,globalVariableServerName,subCollName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/%subCollName% HTTP/1.1</command>
    	   	</request>
    	   	<response>
     			<command>HTTP/1.0 201 Created</command>
   	   	</response>
   	</step>
   	<step>
    	   	<request>
     	      		<command varUsage="globalVariableCollection,globalVariableServerName,subCollName">PUT /%globalVariableServerName%/%globalVariableCollection%/%subCollName%/i18ndoc.xml HTTP/1.1</command>
                			<body fileReference="../../contentDirectory/I18N/schema_ja/Shift_JIS/none/inst_table_nonei18n_Shift_JIS.xm1"  fileEncoding='Shift_JIS'>
                			</body>
    	   	</request>
    	   	<response>
     	      		<command>HTTP/1.0 201 Created</command>
    	   	</response>
   	</step>
          	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName,subCollName">LOCK /%globalVariableServerName%/%globalVariableCollection%/%subCollName% HTTP/1.1</command>
     
    	 		<body><![CDATA[<?xml version="1.0"?><A:lockinfo xmlns:A="DAV:"><A:locktype><A:write/></A:locktype><A:lockscope><A:exclusive/></A:lockscope><A:owner><A:href></A:href></A:owner></A:lockinfo>]]>
  			</body>
   	 	</request>
    		<response>
     			<command>HTTP/1.0 200 OK</command>
        			<body varUsage="globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?><d:prop xmlns:d="DAV:"><d:lockdiscovery><d:activelock><d:locktype><d:write/></d:locktype><d:lockscope><d:exclusive/></d:lockscope><d:depth>infinity</d:depth><d:owner>/%globalVariableServerName%/administration/security/users</d:owner><d:timeout>Second-604800</d:timeout><d:locktoken><d:href></d:href></d:locktoken></d:activelock></d:lockdiscovery></d:prop>]]></body>
    		</response>
   	</step>
  
   	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName,subCollName">UNLOCK /%globalVariableServerName%/%globalVariableCollection%/%subCollName% HTTP/1.1</command>
    
     			<header varUsage="automaticVariable2">Lock-Token: %varUsage%</header>
    
    		</request>
    		<response>
     			<command>HTTP/1.0 204 No Content</command>
     			
    		</response>
   	</step>
  
  
    	<step>
    	   	<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName,subCollName">DELETE /%globalVariableServerName%/%globalVariableCollection%/%subCollName% HTTP/1.1</command>
     			<header>Destroy: NoUndelete</header>
    	   	</request>
    	   	<response>
     			<command>HTTP/1.0 204 No Content</command>
    	   	</response>
   	</step>
  
   	
  </test>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/lock/lock_subcollection_en.xml
  
  Index: lock_subcollection_en.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
  <test>
  <specification> 
   <abstract> Checks if Lock of collection works fine.</abstract> 
   
   <description> The test case consist of following steps: MKCOL  with collection name having i18N char, PUTs a file, tries to lock the created collection, unlocks collection file, DELETEs the collection</description>
   <expectedResult> Status code returned by Get Method must be 200 Not Modified </expectedResult>
   </specification>
  
   	<!--             Test Case       Test Case         Test Case          Test Case                                      -->	
  	
   	<step>
  	   	<assign varDefinition ="subCollName">àçèéäöüÄÖÜ</assign> 
    	   	<request>
      			<command  varUsage="globalVariableCollection,globalVariableServerName,subCollName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/%subCollName% HTTP/1.1</command>
    	   	</request>
    	   	<response>
     			<command>HTTP/1.0 201 Created</command>
   	   	</response>
   	</step>
   	<step>
    	   	<request>
     	      		<command varUsage="globalVariableCollection,globalVariableServerName,subCollName">PUT /%globalVariableServerName%/%globalVariableCollection%/%subCollName%/i18ndoc.xml HTTP/1.1</command>
                			<body fileReference="../../contentDirectory/I18N/schema_en/ISO-8859-1/none/inst_table_nonei18n_iso-8859-1UE.xm1"  fileEncoding='ISO-8859-1'>
                			</body>
    	   	</request>
    	   	<response>
     	      		<command>HTTP/1.0 201 Created</command>
    	   	</response>
   	</step>
          	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName,subCollName">LOCK /%globalVariableServerName%/%globalVariableCollection%/%subCollName% HTTP/1.1</command>
     
    	 		<body><![CDATA[<?xml version="1.0"?><A:lockinfo xmlns:A="DAV:"><A:locktype><A:write/></A:locktype><A:lockscope><A:exclusive/></A:lockscope><A:owner><A:href></A:href></A:owner></A:lockinfo>]]>
  			</body>
   	 	</request>
    		<response>
     			<command>HTTP/1.0 200 OK</command>
        			<body varUsage="globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?><d:prop xmlns:d="DAV:"><d:lockdiscovery><d:activelock><d:locktype><d:write/></d:locktype><d:lockscope><d:exclusive/></d:lockscope><d:depth>infinity</d:depth><d:owner>/%globalVariableServerName%/administration/security/users</d:owner><d:timeout>Second-604800</d:timeout><d:locktoken><d:href></d:href></d:locktoken></d:activelock></d:lockdiscovery></d:prop>]]></body>
    		</response>
   	</step>
  
   	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName,subCollName">UNLOCK /%globalVariableServerName%/%globalVariableCollection%/%subCollName% HTTP/1.1</command>
    
     			<header varUsage="automaticVariable2">Lock-Token: %varUsage%</header>
    
    		</request>
    		<response>
     			<command>HTTP/1.0 204 No Content</command>
     			
    		</response>
   	</step>
  
  
    	<step>
    	   	<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName,subCollName">DELETE /%globalVariableServerName%/%globalVariableCollection%/%subCollName% HTTP/1.1</command>
     			<header>Destroy: NoUndelete</header>
    	   	</request>
    	   	<response>
     			<command>HTTP/1.0 204 No Content</command>
    	   	</response>
   	</step>
  
   	
  </test>
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>