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 2003/12/02 16:44:22 UTC
cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/Principle/EitherReadorWrite 02_ACLgrantReadForGroup_GetColFile.xml
juergen 2003/12/02 07:44:22
Modified: testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/Principle/EitherReadorWrite
02_ACLgrantReadForGroup_GetColFile.xml
Log:
adapted to URM (Josef)
Revision Changes Path
1.5 +141 -73 jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/Principle/EitherReadorWrite/02_ACLgrantReadForGroup_GetColFile.xml
Index: 02_ACLgrantReadForGroup_GetColFile.xml
===================================================================
RCS file: /home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/Principle/EitherReadorWrite/02_ACLgrantReadForGroup_GetColFile.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- 02_ACLgrantReadForGroup_GetColFile.xml 26 Nov 2003 14:08:45 -0000 1.4
+++ 02_ACLgrantReadForGroup_GetColFile.xml 2 Dec 2003 15:44:22 -0000 1.5
@@ -1,42 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../../../../Tprocessor.dtd">
<test>
- <specification>
- <abstract> Test to check if possible to get file and collection with read privilege for a group</abstract>
- <description>
- 1) Prepare test: MKCOL /test, PUT /test/test.xml
- 2) ACL command which grants read access to %globalVariableGroupsColl,globalVariableGroup,%1 on the /test collection
- 3) %globalVariableGroupsColl,globalVariableGroup,%1/%user% gets file /test/test.xml
- 4) %globalVariableGroupsColl,globalVariableGroup,%1/%user% gets collection /test
+ <specification>
+ <abstract> Test to check if possible to get file and collection with read privilege for a group</abstract>
+ <description>
+ 1) Prepare test: MKCOL /test, PUT /test/test.xml, MKCOL userdb/group/tmpGroup, MKCOL userdb/users/tmpUser, Put tmpUser to tmpGroup
+ 2) ACL command which grants read access to tmpGroup on the /test collection
+ 3) tmpUser gets file /test/test.xml
+ 4) tmpUser gets collection /test
+ 5) Cleanup
</description>
- <expectedResult> Two Get commands should both return 200 OK </expectedResult>
- </specification>
- <step>
- <request>
- <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
- </request>
- <response>
- <command>HTTP/1.0 201 Created</command>
- </response>
- </step>
- <step>
- <request>
- <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
- <body fileReference="../../../../../contentDirectory/validXML.xm1" />
- </request>
- <response>
- <command>HTTP/1.0 201 Created</command>
- </response>
- </step>
- <step>
- <request>
- <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
- <header>Content-Type: text/xml; charset=utf-8</header>
- <body varUsage="globalVariableGroupsColl,globalVariableGroup,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
+ <expectedResult> Two Get commands should both return 200 OK </expectedResult>
+ </specification>
+ <step>
+ <request>
+ <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.0 201 Created</command>
+ </response>
+ </step>
+ <step>
+ <request>
+ <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
+ <body fileReference="../../../../../contentDirectory/validXML.xm1"/>
+ </request>
+ <response>
+ <command>HTTP/1.0 201 Created</command>
+ </response>
+ </step>
+ <step>
+ <request>
+ <command varUsage="globalVariableRootUserPath,globalVariableUsersColl">MKCOL %globalVariableRootUserPath%/%globalVariableUsersColl%/tmpUser HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.1 201 Created</command>
+ </response>
+ </step>
+ <step>
+ <request>
+ <command varUsage="globalVariableRootUserPath,globalVariableGroupsColl">MKCOL %globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.1 201 Created</command>
+ </response>
+ </step>
+ <!-- new Adding of a user to a group-->
+ <step>
+ <request>
+ <command varUsage="globalVariableRootUserPath,globalVariableGroupsColl">PROPPATCH %globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup HTTP/1.1</command>
+ <body varUsage="globalVariableUserPath,globalVariableUsersColl,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
+<D:propertyupdate xmlns:D="DAV:" xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav">
+ <D:set>
+ <D:prop>
+ <D:group-member-set>
+ <D:href>%globalVariableRootUserPath%/%globalVariableUsersColl%/tmpUser</D:href>
+ </D:group-member-set>
+ </D:prop>
+ </D:set>
+</D:propertyupdate>
+
+]]></body>
+ </request>
+ <response>
+ <command>HTTP/1.0 207 Multi-Status</command>
+ <body varUsage="globalVariableRootUserPath,globalVariableServerName,user,group,host,globalVariableCollection,globalVariableUsersColl,globalVariableGroupsColl,globalVariableRolesColl,globalVariableGroup"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
+<D:multistatus xmlns:D="DAV:">
+ <D:response>
+ <D:href>%globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup</D:href>
+ <D:propstat>
+ <D:prop>
+ <D:group-member-set />
+ </D:prop>
+ <D:status>HTTP/1.1 200 OK</D:status>
+ </D:propstat>
+ </D:response>
+</D:multistatus>
+
+]]></body>
+ </response>
+ </step>
+
+ <step>
+ <request>
+ <command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
+ <header>Content-Type: text/xml; charset=utf-8</header>
+ <body varUsage="globalVariableGroupsColl,globalVariableGroup,globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<D:acl xmlns:D="DAV:">
<D:ace>
<D:principal>
- <D:href>%globalVariableRootUserPath%/%globalVariableGroupsColl%/%globalVariableGroup%1</D:href>
+ <D:href>%globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup</D:href>
</D:principal>
<D:grant>
<D:privilege>
@@ -47,45 +100,60 @@
</D:acl>
]]></body>
- </request>
- <response>
- <command>HTTP/1.0 200 OK</command>
- </response>
- </step>
- <step>
- <user varUsage="globalVariableGroupsColl,globalVariableGroup,user">%globalVariableGroup%1%user%</user>
- <password varUsage="globalVariableGroupsColl,globalVariableGroup,user">%globalVariableGroup%1%user%</password>
- <request>
- <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
- </request>
- <response>
- <command>HTTP/1.0 200 OK</command>
- <header>Content-Type: text/xml</header>
- <!--body fileReference="../../../contentDirectory/html.html"/-->
- </response>
- </step>
- <step>
- <user varUsage="globalVariableGroupsColl,globalVariableGroup,user">%globalVariableGroup%1%user%</user>
- <password varUsage="globalVariableGroupsColl,globalVariableGroup,user">%globalVariableGroup%1%user%</password>
- <request>
- <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
- </request>
- <response>
- <command>HTTP/1.0 200 OK</command>
- <header>Content-Type: text/html; charset="UTF-8"</header>
- <!--body fileReference="../../../contentDirectory/html.html"/-->
- </response>
- </step>
- <cleanup>
-
- <step>
- <request>
- <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
- </request>
- <response>
- <command>HTTP/1.0 204 No Content</command>
- </response>
- </step>
- </cleanup>
-</test>
+ </request>
+ <response>
+ <command>HTTP/1.0 200 OK</command>
+ </response>
+ </step>
+ <step>
+ <user varUsage="globalVariableGroupsColl,globalVariableGroup,user">tmpUser</user>
+ <password varUsage="globalVariableGroupsColl,globalVariableGroup,user">Administrator</password>
+ <request>
+ <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.0 200 OK</command>
+ <header>Content-Type: text/xml</header>
+ <!--body fileReference="../../../contentDirectory/html.html"/-->
+ </response>
+ </step>
+ <step>
+ <user varUsage="globalVariableGroupsColl,globalVariableGroup,user">tmpUser</user>
+ <password varUsage="globalVariableGroupsColl,globalVariableGroup,user">Administrator</password>
+ <request>
+ <command varUsage="globalVariableCollection,userNumber,globalVariableServerName">GET /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.0 200 OK</command>
+ <header>Content-Type: text/html; charset="UTF-8"</header>
+ <!--body fileReference="../../../contentDirectory/html.html"/-->
+ </response>
+ </step>
+ <cleanup>
+ <step>
+ <request>
+ <command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.0 204 No Content</command>
+ </response>
+ </step>
+ <step>
+ <request>
+ <command varUsage="globalVariableRootUserPath,globalVariableGroupsColl">DELETE %globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.1 204 No Content</command>
+ </response>
+ </step>
+ <step>
+ <request>
+ <command varUsage="globalVariableRootUserPath,globalVariableUsersColl">DELETE %globalVariableRootUserPath%/%globalVariableUsersColl%/tmpUser HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.1 204 No Content</command>
+ </response>
+ </step>
+ </cleanup>
+</test>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org