juergen 2003/11/25 00:32:20
Modified:
testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/AccessControlProperties
05_PropFind-group-membership.xml
Log:
fixed test case and made test userdb independent (eckehard)
Revision Changes Path
1.3 +98 -28
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/AccessControlProperties/05_PropFind-group-membership.xml
Index: 05_PropFind-group-membership.xml
===================================================================
RCS file:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/AccessControlProperties/05_PropFind-group-membership.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- 05_PropFind-group-membership.xml 18 Nov 2003 10:13:57 -0000 1.2
+++ 05_PropFind-group-membership.xml 25 Nov 2003 08:32:20 -0000 1.3
@@ -2,43 +2,113 @@
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
- <abstract>Test to check Principle-Collection-set property on a group</abstract>
- <description>1) Propfind on a collection to check for "Principle-Collection"
property.</description>
+ <abstract>Test to check group-membership property of a principal</abstract>
+ <description>1) Propfind on a principal to check for "Group-memebrship"
property.</description>
<expectedResult>Property found by propFind</expectedResult>
</specification>
+
<step>
<request>
- <command
varUsage="globalVariableRootUserPath,globalVariableGroupsColl,globalVariableGroup,globalVariableServerName,user">PROPFIND
%globalVariableRootUserPath%/%globalVariableGroupsColl%/%globalVariableGroup%0/%user%
HTTP/1.1</command>
- <header>Content-Type: text/xml; charset=utf-8</header>
- <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
-<D:propfind xmlns:D="DAV:">
- <D:prop>
- <D:group-membership />
- </D:prop>
-</D:propfind>
+ <command
varUsage="globalVariableRootUserPath,globalVariableGroupsColl,globalVariableGroup,globalVariableServerName">MKCOL
%globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.0 201 Created</command>
+ </response>
+ </step>
+
+ <step>
+ <request>
+ <command
varUsage="globalVariableRootUserPath,globalVariableUsersColl,globalVariableGroup,globalVariableServerName">MKCOL
%globalVariableRootUserPath%/%globalVariableUsersColl%/tmpUser HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.0 201 Created</command>
+ </response>
+ </step>
+
+ <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>
+ ]]></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="globalVariableRootUserPath,globalVariableUsersColl,globalVariableGroup,globalVariableServerName,user">PROPFIND
%globalVariableRootUserPath%/%globalVariableUsersColl%/tmpUser HTTP/1.1</command>
+ <header>Content-Type: text/xml; charset=utf-8</header>
+ <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
+ <D:propfind xmlns:D="DAV:">
+ <D:prop>
+ <D:group-membership />
+ </D:prop>
+ </D:propfind>
+ ]]></body>
+ </request>
+ <response>
<command>HTTP/1.0 207 Multi Status</command>
- <body
varUsage="globalVariableRootUserPath,globalVariableGroupsColl,globalVariableGroup,globalVariableCollection,userNumber,globalVariableServerName,user,host"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
-<D:multistatus xmlns:D="DAV:">
- <D:response>
-
<D:href>%globalVariableRootUserPath%/%globalVariableGroupsColl%/%globalVariableGroup%0/%user%</D:href>
- <D:propstat>
- <D:prop>
- <D:group-membership>
- <D:href>%globalVariableRootUserPath%/users</D:href>
-
<D:href>%globalVariableRootUserPath%/%globalVariableGroupsColl%/%globalVariableGroup%0</D:href>
- </D:group-membership>
- </D:prop>
- <D:status>HTTP/1.1 200 OK</D:status>
- </D:propstat>
- </D:response>
-</D:multistatus>
-
-]]></body>
+ <body
varUsage="globalVariableRootUserPath,globalVariableGroupsColl,globalVariableUsersColl,globalVariableGroup,globalVariableCollection,userNumber,globalVariableServerName,user,host"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
+ <D:multistatus xmlns:D="DAV:">
+ <D:response>
+
<D:href>%globalVariableRootUserPath%/%globalVariableUsersColl%/tmpUser</D:href>
+ <D:propstat>
+ <D:prop>
+ <D:group-membership>
+
<D:href>%globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup</D:href>
+ </D:group-membership>
+ </D:prop>
+ <D:status>HTTP/1.1 200 OK</D:status>
+ </D:propstat>
+ </D:response>
+ </D:multistatus>
+ ]]></body>
</response>
</step>
+
+ <step>
+ <request>
+ <command
varUsage="globalVariableRootUserPath,globalVariableGroupsColl,globalVariableGroup,globalVariableServerName">DELETE
%globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.0 204 No Content</command>
+ </response>
+ </step>
+
+ <step>
+ <request>
+ <command
varUsage="globalVariableRootUserPath,globalVariableUsersColl,globalVariableGroup,globalVariableServerName">DELETE
%globalVariableRootUserPath%/%globalVariableUsersColl%/tmpUser HTTP/1.1</command>
+ </request>
+ <response>
+ <command>HTTP/1.0 204 No Content</command>
+ </response>
+ </step>
</test>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]