juergen 2002/06/24 04:24:41
Added: testsuite/testsuite/junit/xmltestcases/ACL/functional/propfind
propfindAclAllR.xml propfindAclAllF.xml
propfindAclAllC.xml
Log:
New ACL test cases
Revision Changes Path
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/propfind/propfindAclAllR.xml
Index: propfindAclAllR.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Test to check acl property on a collection</abstract>
<pre-Requisite></pre-Requisite>
<description>1) Propfind on the Root directory with depth '0' to check
for "acl" property.</description>
<expectedResult>Property found by propFind .
</expectedResult>
</specification>
<step>
<request>
<command varUsage="globalVariableServerName">PROPFIND
/%globalVariableServerName%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<header>Depth: 0</header>
<body varUsage="globalVariableServerName"><![CDATA[<?xml version="1.0"
encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:acl/>
</D:prop>
</D:propfind>]]>
</body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body varUsage="globalVariableServerName">
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:S="http://jakarta.apache.org/slide/"
>
<response>
<href>/%globalVariableServerName%/</href>
<propstat>
<prop>
<acl>
<ace>
<principal>
<href>/%globalVariableServerName%/administration/security/users</href>
</principal>
<grant>
<privilege><all/></privilege>
</grant>
</ace>
</acl>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
</body>
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/propfind/propfindAclAllF.xml
Index: propfindAclAllF.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract> Checks if Propfind Method with Status code 207 works fine. </abstract>
<description>Does a series of PropFinds on the root directory and 2 different
files.</description>
<expectedResult> Status code returned by Propfind Method must be multi-status
207</expectedResult>
</specification>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/patient_1.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
1.1</header>
<header>Connection: Keep-Alive</header>
<body><patient>
<name>
<surname>pat rec 1</surname>
<firstname>1</firstname>
</name>
</patient>
</body>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
<body />
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND
/%globalVariableServerName%/ HTTP/1.1</command>
<header>Accept-Language: en-us</header>
<header>Content-Type: text/xml</header>
<header>Translate: f</header>
<header>Depth: 1</header>
<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV
1.1</header>
<header>Connection: Keep-Alive</header>
<body><?xml version="1.0" ?>
<propfind xmlns="DAV:">
</propfind>
</body>
</request>
<response>
<command>HTTP/1.1 207 Multi-Status</command>
<body varUsage="globalVariableCollection,globalVariableServerName">
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:S="http://jakarta.apache.org/slide/" >
<response>
<href>/taminowebdavserver/</href>
<propstat>
<prop>
<supportedlock>
<lockentry>
<lockscope>
<exclusive/>
</lockscope>
<locktype>
<write/>
</locktype>
</lockentry>
<lockentry>
<lockscope>
<shared/>
</lockscope>
<locktype>
<write/>
</locktype>
</lockentry>
</supportedlock>
<supported-privilege-set>
<supported-privilege>
<privilege><all/></privilege>
<description>Any operation</description>
<supported-privilege>
<privilege>
<read/>
</privilege>
<description>Read any object</description>
</supported-privilege>
<supported-privilege>
<privilege>
<write/>
</privilege>
<description>Write any object</description>
</supported-privilege>
<supported-privilege>
<privilege>
<read-acl/>
</privilege>
<description>Read the ACL</description>
</supported-privilege>
<supported-privilege>
<privilege>
<write-acl/>
</privilege>
<description>Write the ACL</description>
</supported-privilege>
</supported-privilege>
</supported-privilege-set>
<current-user-privilege-set>
<privilege>
<read/>
</privilege>
<privilege>
<write/>
</privilege>
<privilege>
<read-acl/>
</privilege>
<privilege><write-acl/></privilege>
<privilege><all/></privilege>
</current-user-privilege-set>
<acl>
<ace>
<principal><href>/taminowebdavserver/administration/security/users</href></principal>
<grant>
<privilege>
<all/>
</privilege>
</grant>
</ace>
</acl>
<acl-semantics><acl-sem>
<ace-combination>
<all-grant-before-any-deny/>
</ace-combination>
</acl-sem>
<acl-sem>
<required-principal>
<all/>
</required-principal>
</acl-sem>
</acl-semantics>
<principal-collection-set>
<href>/taminowebdavserver/administration/security/users</href>
</principal-collection-set>
<owner>
<href>/administration/security/users/</href>
</owner>
<resourcetype>
<collection/>
</resourcetype>
<source/>
<displayname>
<![CDATA[]]>
</displayname>
<getlastmodified>Mon, 11 Feb 2002 10:09:03 GMT</getlastmodified>
<getcontentlength>0</getcontentlength>
<creationdate>2002-02-11T10:09:03Z</creationdate>
</prop><status>HTTP/1.1 200 OK</status></propstat>
</response>
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%</href>
<propstat>
<prop>
<supportedlock>
<lockentry>
<lockscope><exclusive/>
</lockscope>
<locktype>
<write/>
</locktype>
</lockentry>
<lockentry>
<lockscope>
<shared/>
</lockscope>
<locktype>
<write/></locktype>
</lockentry>
</supportedlock>
<supported-privilege-set>
<supported-privilege>
<privilege><all/></privilege>
<description>Any operation</description>
<supported-privilege>
<privilege>
<read/>
</privilege>
<description>Read any object</description>
</supported-privilege>
<supported-privilege>
<privilege>
<write/>
</privilege>
<description>Write any object</description>
</supported-privilege>
<supported-privilege>
<privilege>
<read-acl/>
</privilege>
<description>Read the ACL</description>
</supported-privilege>
<supported-privilege>
<privilege>
<write-acl/>
</privilege>
<description>Write the ACL</description>
</supported-privilege>
</supported-privilege>
</supported-privilege-set>
<current-user-privilege-set><privilege><read/></privilege>
<privilege>
<write/>
</privilege>
<privilege>
<read-acl/>
</privilege>
<privilege><write-acl/></privilege>
<privilege><all/></privilege>
</current-user-privilege-set>
<acl>
<ace>
<principal>
<href>/taminowebdavserver/administration/security/users</href>
</principal>
<grant>
<privilege><all/></privilege>
</grant>
<protected/>
<inherited>
<href>/taminowebdavserver/</href></inherited>
</ace>
</acl>
<acl-semantics>
<acl-sem>
<ace-combination>
<all-grant-before-any-deny/>
</ace-combination>
</acl-sem>
<acl-sem>
<required-principal>
<all/>
</required-principal>
</acl-sem>
</acl-semantics>
<principal-collection-set>
<href>/taminowebdavserver/administration/security/users</href>
</principal-collection-set>
<owner>
<href>/administration/security/users/</href>
</owner>
<getcontentlength>0</getcontentlength>
<resourcetype>
<collection/>
</resourcetype>
<source/>
<getlastmodified>Tue, 05 Feb 2002 09:48:12 GMT</getlastmodified>
<displayname>%globalVariableCollection%</displayname>
<creationdate>2002-02-05T09:48:12Z</creationdate>
<%globalVariableCollection%ContentId>*empty*</%globalVariableCollection%ContentId>
<modCount>18</modCount>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat></response>
<response>
<href>/taminowebdavserver/administration</href>
<propstat>
<prop>
<supportedlock>
<lockentry>
<lockscope>
<exclusive/>
</lockscope>
<locktype>
<write/>
</locktype>
</lockentry>
<lockentry>
<lockscope>
<shared/>
</lockscope>
<locktype>
<write/>
</locktype>
</lockentry>
</supportedlock>
<supported-privilege-set>
<supported-privilege>
<privilege><all/>
</privilege>
<description>Any operation</description>
<supported-privilege>
<privilege>
<read/>
</privilege>
<description>Read any object</description>
</supported-privilege>
<supported-privilege>
<privilege>
<write/>
</privilege>
<description>Write any object</description>
</supported-privilege>
<supported-privilege>
<privilege>
<read-acl/>
</privilege>
<description>Read the ACL</description>
</supported-privilege>
<supported-privilege>
<privilege>
<write-acl/>
</privilege>
<description>Write the ACL</description>
</supported-privilege>
</supported-privilege>
</supported-privilege-set>
<current-user-privilege-set>
<privilege><read/></privilege>
<privilege><write/></privilege>
<privilege><read-acl/></privilege>
<privilege><write-acl/></privilege>
<privilege><all/></privilege>
</current-user-privilege-set>
<acl>
<ace>
<principal><href>/taminowebdavserver/administration/security/users</href>
</principal>
<grant>
<privilege><all/></privilege>
</grant>
<protected/>
<inherited>
<href>/taminowebdavserver/</href>
</inherited>
</ace>
</acl>
<acl-semantics>
<acl-sem>
<ace-combination>
<all-grant-before-any-deny/>
</ace-combination>
</acl-sem><acl-sem>
<required-principal><all/></required-principal>
</acl-sem>
</acl-semantics>
<principal-collection-set>
<href>/taminowebdavserver/administration/security/users</href>
</principal-collection-set>
<owner>
<href>/administration/security/users/</href>
</owner>
<resourcetype>
<collection/>
</resourcetype>
<source/>
<displayname><![CDATA[administration]]></displayname>
<getlastmodified>Mon, 11 Feb 2002 10:09:03 GMT</getlastmodified>
<getcontentlength>0</getcontentlength>
<creationdate>2002-02-11T10:09:03Z</creationdate>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
</body>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">DELETE
/%globalVariableServerName%/%globalVariableCollection%/patient_1.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
1.1</header>
<header>Connection: Keep-Alive</header>
<body />
</request>
<response>
<command>HTTP/1.1 204 No Content</command>
<body />
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/propfind/propfindAclAllC.xml
Index: propfindAclAllC.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Test to check acl property on a collection</abstract>
<pre-Requisite></pre-Requisite>
<description>1) Propfind on a collection with depth '0' to check for
"acl" property.</description>
<expectedResult>Property found by propFind .
</expectedResult>
</specification>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">PROPFIND
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>User-Agent: Jakarta HTTP Client/1.0</header>
<header>Depth: 0</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml
version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:acl/>
</D:prop>
</D:propfind>]]>
</body>
</request>
<response>
<command>HTTP/1.0 207 Multi-Status</command>
<header>Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet
2.2; Java 1.3.0_02; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
<body varUsage="globalVariableCollection,globalVariableServerName">
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:S="http://jakarta.apache.org/slide/"
>
<response>
<href>/%globalVariableServerName%/%globalVariableCollection%</href>
<propstat>
<prop>
<acl>
<ace>
<principal>
<href>/%globalVariableServerName%/administration/security/users</href>
</principal>
<grant>
<privilege><all/></privilege>
</grant>
<protected/>
<inherited>
<href>/%globalVariableServerName%/</href>
</inherited>
</ace>
</acl>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>
</body>
</response>
</step>
</test>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>