juergen 2003/11/18 00:33:47
Added:
testsuite/testsuite/junit/xmltestcases/ACL/functional/usersGroupsRoles/CRUD
44_Add_user_to_2_groups_And_2_roles.xml
Log:
new mixed CRUD tests
Revision Changes Path
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/usersGroupsRoles/CRUD/44_Add_user_to_2_groups_And_2_roles.xml
Index: 44_Add_user_to_2_groups_And_2_roles.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Thorsten Raab
(Software AG) -->
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Check group-membership in a user that belongs to different
groups/roles.</abstract>
<description>
1) Create a user.
2) Create two groups and two roles.
3) Get the group membership of the
User.
4) Add the user to all the created
groups and roles.
5) Get the group membership of the
User.
Cleanup</description>
<expectedResult>
In 5) User belongs to all the created
groups and roles. In 3) it does not.
</expectedResult>
</specification>
<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%/tmpGroup0 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableRootUserPath,globalVariableGroupsColl">MKCOL
%globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup1 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableRootUserPath,globalVariableRolesColl">MKCOL
%globalVariableRootUserPath%/%globalVariableRolesColl%/tmpRole0 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableRootUserPath,globalVariableRolesColl">MKCOL
%globalVariableRootUserPath%/%globalVariableRolesColl%/tmpRole1 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableRootUserPath,globalVariableUsersColl,user,group">PROPFIND
%globalVariableRootUserPath%/%globalVariableUsersColl%/tmpUser HTTP/1.1</command>
<header>Depth: 0</header>
<body
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![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,globalVariableServerName,user,group,host,globalVariableCollection,globalVariableUsersColl,globalVariableRolesColl,globalVariableGroupsColl,globalVariableUsersColl,globalVariableGroup,globalVariableUserPath"><![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:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
]]></body>
</response>
</step>
<!-- add user tmpUser0 to tmpGroup0-->
<step>
<request>
<command
varUsage="globalVariableRootUserPath,globalVariableGroupsColl">PROPPATCH
%globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup0 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%/tmpGroup0</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,globalVariableGroupsColl">PROPPATCH
%globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup1 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%/tmpGroup1</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,globalVariableRolesColl">PROPPATCH
%globalVariableRootUserPath%/%globalVariableRolesColl%/tmpRole0 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%/%globalVariableRolesColl%/tmpRole0</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,globalVariableRolesColl">PROPPATCH
%globalVariableRootUserPath%/%globalVariableRolesColl%/tmpRole1 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%/%globalVariableRolesColl%/tmpRole1</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,user,group">PROPFIND
%globalVariableRootUserPath%/%globalVariableUsersColl%/tmpUser HTTP/1.1</command>
<header>Depth: 0</header>
<body
varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![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,globalVariableServerName,user,group,host,globalVariableCollection,globalVariableUsersColl,globalVariableRolesColl,globalVariableGroupsColl,globalVariableUsersColl,globalVariableGroup,globalVariableUserPath"><![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%/tmpGroup0</D:href>
<D:href>%globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup1</D:href>
<D:href>%globalVariableRootUserPath%/%globalVariableRolesColl%/tmpRole1</D:href>
<D:href>%globalVariableRootUserPath%/%globalVariableRolesColl%/tmpRole0</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>
<!-- delete user-->
<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>
<!-- delete groups-->
<step>
<request>
<command
varUsage="globalVariableRootUserPath,globalVariableGroupsColl">DELETE
%globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup0 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 204 No Content</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableRootUserPath,globalVariableGroupsColl">DELETE
%globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup1 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 204 No Content</command>
</response>
</step>
<!-- delete roles-->
<step>
<request>
<command
varUsage="globalVariableRootUserPath,globalVariableRolesColl">DELETE
%globalVariableRootUserPath%/%globalVariableRolesColl%/tmpRole0 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 204 No Content</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableRootUserPath,globalVariableRolesColl">DELETE
%globalVariableRootUserPath%/%globalVariableRolesColl%/tmpRole1 HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.1 204 No Content</command>
</response>
</step>
</test>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]