juergen 2002/10/01 04:40:06
Added: testsuite/testsuite/junit/xmltestcases/I18N/ACL
ACL2UserDenyAllGrantRead_collection_en.xml
ACL2UserDenyAllGrantRead_collection_ja.xml
ACL2UserDenyAllGrantRead_collection_zh.xml
ACLGrantReadACL_ja.xml ACLGrantReadACL_zh.xml
Log:
ACL i18n Test
Revision Changes Path
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/ACL/ACL2UserDenyAllGrantRead_collection_en.xml
Index: ACL2UserDenyAllGrantRead_collection_en.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check ACL command </abstract>
<pre-Requisite> The collection specified by the
localVariableCollection must exist.</pre-Requisite>
<description>
1) MKCOL command which creates a child collection
(/àçèéäöüÄÖÜ)
2) ACL command which denies all access to the user %user% on the
collection /àçèéäöüÄÖÜ
3) ACL command which grants read access to the all users
4) Head command carried out
</description>
<expectedResult> Two ACL and Head commands should all return 200 OK
</expectedResult>
</specification>
<step>
<assign
varDefinition="localVariableCollection">ßàçèéäöüÄÖÜiso8859</assign>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<body
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>%globalVariableUserPath%</D:href>
</D:principal>
<D:deny>
<D:privilege><D:all /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<body
varUsage="localVariableCollection,globalVariableServerName"><![CDATA[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:all></D:all>
</D:principal>
<D:grant>
<D:privilege><D:read /></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">HEAD
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
<header>Connection: Keep-Alive</header>
<header>Translate: f</header>
<body/>
</request>
<response>
<command>HTTP/1.1 200 OK</command>
<body/>
</response>
</step>
<!-- input test of read privilege -->
<cleanup>
<step>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%localVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<body
varUsage="localVariableCollection,globalVariableServerName"><![CDATA[
<D:acl xmlns:D="DAV:">
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="repeatCounter,localVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Destroy: NoUndelete</header>
<header>Translate: f</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
</cleanup>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/ACL/ACL2UserDenyAllGrantRead_collection_ja.xml
Index: ACL2UserDenyAllGrantRead_collection_ja.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check ACL command </abstract>
<pre-Requisite> The collection specified by the
localVariableCollection must exist.</pre-Requisite>
<description>
1) MKCOL command which creates a child collection
(/àçèéäöüÄÖÜ)
2) ACL command which denies all access to the user %user% on the
collection /àçèéäöüÄÖÜ
3) ACL command which grants read access to the all users
4) Head command carried out
</description>
<expectedResult> Two ACL and Head commands should all return 200 OK
</expectedResult>
</specification>
<step>
<assign
varDefinition="localVariableCollection">製品番号shiftJIS</assign>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<body
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>%globalVariableUserPath%</D:href>
</D:principal>
<D:deny>
<D:privilege><D:all /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<body
varUsage="localVariableCollection,globalVariableServerName"><![CDATA[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:all></D:all>
</D:principal>
<D:grant>
<D:privilege><D:read /></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">HEAD
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
<header>Connection: Keep-Alive</header>
<header>Translate: f</header>
<body/>
</request>
<response>
<command>HTTP/1.1 200 OK</command>
<body/>
</response>
</step>
<!-- input test of read privilege -->
<cleanup>
<step>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%localVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<body
varUsage="localVariableCollection,globalVariableServerName"><![CDATA[
<D:acl xmlns:D="DAV:">
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="repeatCounter,localVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Destroy: NoUndelete</header>
<header>Translate: f</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
</cleanup>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/ACL/ACL2UserDenyAllGrantRead_collection_zh.xml
Index: ACL2UserDenyAllGrantRead_collection_zh.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check ACL command </abstract>
<pre-Requisite> The collection specified by the
localVariableCollection must exist.</pre-Requisite>
<description>
1) MKCOL command which creates a child collection
(/àçèéäöüÄÖÜ)
2) ACL command which denies all access to the user %user% on the
collection /àçèéäöüÄÖÜ
3) ACL command which grants read access to the all users
4) Head command carried out
</description>
<expectedResult> Two ACL and Head commands should all return 200 OK
</expectedResult>
</specification>
<step>
<assign
varDefinition="localVariableCollection">即可顯示Big5</assign>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">MKCOL
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<body
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>%globalVariableUserPath%</D:href>
</D:principal>
<D:deny>
<D:privilege><D:all /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<body
varUsage="localVariableCollection,globalVariableServerName"><![CDATA[
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:all></D:all>
</D:principal>
<D:grant>
<D:privilege><D:read /></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">HEAD
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
<header>Connection: Keep-Alive</header>
<header>Translate: f</header>
<body/>
</request>
<response>
<command>HTTP/1.1 200 OK</command>
<body/>
</response>
</step>
<!-- input test of read privilege -->
<cleanup>
<step>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="localVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%localVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<body
varUsage="localVariableCollection,globalVariableServerName"><![CDATA[
<D:acl xmlns:D="DAV:">
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<user varUsage="user">2xdavxdavxdav</user>
<password varUsage="user">2xdavxdavxdav</password>
<request>
<command
varUsage="repeatCounter,localVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%localVariableCollection%/àçèéäöüÄÖÜ
HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Destroy: NoUndelete</header>
<header>Translate: f</header>
<header>Connection: Keep-Alive</header>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
</cleanup>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/ACL/ACLGrantReadACL_ja.xml
Index: ACLGrantReadACL_ja.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check if possible to grant read-acl while having
read privilege. </abstract>
<description>
1) ACL command which grants read access to the user
製品番号shiftJIS
2) ACL command which denies read-acl access to the user
製品番号shiftJIS
3) ACL command which grants read-acl access to the user
製品番号shiftJIS
</description>
<expectedResult> All ACL Methods should return 200 OK
</expectedResult>
</specification>
<step>
<user varUsage="user">2製品番号shiftJIS</user>
<password varUsage="user">2製品番号shiftJIS</password>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
version="1.0" encoding="utf-8" ?>
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>%globalVariableUserPath%</D:href>
</D:principal>
<D:grant>
<D:privilege><D:read/></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<user varUsage="user">2製品番号shiftJIS</user>
<password varUsage="user">2製品番号shiftJIS</password>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
version="1.0" encoding="utf-8" ?>
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>%globalVariableUserPath%</D:href>
</D:principal>
<D:deny>
<D:privilege><D:read-acl /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
version="1.0" encoding="utf-8" ?>
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>%globalVariableUserPath%</D:href>
</D:principal>
<D:grant>
<D:privilege><D:read-acl/></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<cleanup>
<step>
<user varUsage="user">製品番号shiftJIS</user>
<password varUsage="user">製品番号shiftJIS</password>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml
version="1.0" encoding="utf-8" ?>
<D:acl xmlns:D="DAV:">
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
</cleanup>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/I18N/ACL/ACLGrantReadACL_zh.xml
Index: ACLGrantReadACL_zh.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Test to check if possible to grant read-acl while having
read privilege. </abstract>
<description>
1) ACL command which grants read access to the user 即可顯示Big5
2) ACL command which denies read-acl access to the user
即可顯示Big5
3) ACL command which grants read-acl access to the user
即可顯示Big5
</description>
<expectedResult> All ACL Methods should return 200 OK
</expectedResult>
</specification>
<step>
<user varUsage="user">2即可顯示Big5</user>
<password varUsage="user">2即可顯示Big5</password>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
version="1.0" encoding="utf-8" ?>
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>%globalVariableUserPath%</D:href>
</D:principal>
<D:grant>
<D:privilege><D:read/></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<user varUsage="user">2即可顯示Big5</user>
<password varUsage="user">2即可顯示Big5</password>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
version="1.0" encoding="utf-8" ?>
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>%globalVariableUserPath%</D:href>
</D:principal>
<D:deny>
<D:privilege><D:read-acl /></D:privilege>
</D:deny>
</D:ace>
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml
version="1.0" encoding="utf-8" ?>
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
<D:href>%globalVariableUserPath%</D:href>
</D:principal>
<D:grant>
<D:privilege><D:read-acl/></D:privilege>
</D:grant>
</D:ace>
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
<cleanup>
<step>
<user varUsage="user">2即可顯示Big5</user>
<password varUsage="user">2即可顯示Big5</password>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">ACL
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<body
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml
version="1.0" encoding="utf-8" ?>
<D:acl xmlns:D="DAV:">
</D:acl>]]></body>
</request>
<response>
<command>HTTP/1.0 200 OK</command>
</response>
</step>
</cleanup>
</test>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>