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:07:54 UTC
cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/lock locki18n_collection_zh.xml locki18n_collection_ja.xml locki18n_collection_en.xml
juergen 02/05/27 06:07:54
Added: testsuite/testsuite/junit/xmltestcases/I18N/lock
locki18n_collection_zh.xml
locki18n_collection_ja.xml
locki18n_collection_en.xml
Log:
Locking i18n root collection
Revision Changes Path
1.1 jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/lock/locki18n_collection_zh.xml
Index: locki18n_collection_zh.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Checks if Lock/Unlock of root collection having i18n characters works fine</abstract>
<pre-Requisite> The collection specified by the localVariableCollection must exist</pre-Requisite>
<description> The test case consist of following steps:LOCK the collection having i18N char, MKCOL under the unlocked collection (expected to fail 403 Forbidden), UNLOCK collection, MKCOL under the unlocked collection, DELETEs the created collection</description>
<expectedResult> Status code returned by LOCK Method must be 200 OK</expectedResult>
</specification>
<!-- Test Case Test Case Test Case Test Case -->
<step>
<assign varDefinition ="localVariableCollection">即可顯示Big5</assign>
<request>
<command varUsage="localVariableCollection,globalVariableServerName,subCollName">LOCK /%globalVariableServerName%/%localVariableCollection% 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">MKCOL /%globalVariableServerName%/%localVariableCollection%/test HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 403 Forbidden</command>
</response>
</step>
<step>
<request>
<command varUsage="localVariableCollection,globalVariableServerName">UNLOCK /%globalVariableServerName%/%localVariableCollection% 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="localVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%localVariableCollection%/test HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="localVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%localVariableCollection%/test HTTP/1.1</command>
<header>Destroy: NoUndelete</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
<!-- Test Case Test Case Test Case Test Case -->
</test>
1.1 jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/lock/locki18n_collection_ja.xml
Index: locki18n_collection_ja.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Checks if Lock/Unlock of root collection having i18n characters works fine</abstract>
<pre-Requisite> The collection specified by the localVariableCollection must exist</pre-Requisite>
<description> The test case consist of following steps:LOCK the collection having i18N char, MKCOL under the unlocked collection (expected to fail 403 Forbidden), UNLOCK collection, MKCOL under the unlocked collection, DELETEs the created collection</description>
<expectedResult> Status code returned by LOCK Method must be 200 OK</expectedResult>
</specification>
<!-- Test Case Test Case Test Case Test Case -->
<step>
<assign varDefinition ="localVariableCollection">製品番号shiftJIS</assign>
<request>
<command varUsage="localVariableCollection,globalVariableServerName,subCollName">LOCK /%globalVariableServerName%/%localVariableCollection% 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">MKCOL /%globalVariableServerName%/%localVariableCollection%/test HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 403 Forbidden</command>
</response>
</step>
<step>
<request>
<command varUsage="localVariableCollection,globalVariableServerName">UNLOCK /%globalVariableServerName%/%localVariableCollection% 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="localVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%localVariableCollection%/test HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="localVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%localVariableCollection%/test HTTP/1.1</command>
<header>Destroy: NoUndelete</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
<!-- Test Case Test Case Test Case Test Case -->
</test>
1.1 jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/lock/locki18n_collection_en.xml
Index: locki18n_collection_en.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Checks if Lock/Unlock of root collection having i18n characters works fine</abstract>
<pre-Requisite> The collection specified by the localVariableCollection must exist</pre-Requisite>
<description> The test case consist of following steps:LOCK the collection having i18N char, MKCOL under the unlocked collection (expected to fail 403 Forbidden), UNLOCK collection, MKCOL under the unlocked collection, DELETEs the created collection</description>
<expectedResult> Status code returned by LOCK Method must be 200 OK</expectedResult>
</specification>
<!-- Test Case Test Case Test Case Test Case -->
<step>
<assign varDefinition ="localVariableCollection">ßàçèéäöüÄÖÜiso8859</assign>
<request>
<command varUsage="localVariableCollection,globalVariableServerName,subCollName">LOCK /%globalVariableServerName%/%localVariableCollection% 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">MKCOL /%globalVariableServerName%/%localVariableCollection%/test HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 403 Forbidden</command>
</response>
</step>
<step>
<request>
<command varUsage="localVariableCollection,globalVariableServerName">UNLOCK /%globalVariableServerName%/%localVariableCollection% 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="localVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%localVariableCollection%/test HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="localVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%localVariableCollection%/test HTTP/1.1</command>
<header>Destroy: NoUndelete</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
<!-- Test Case Test Case Test Case Test Case -->
</test>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>