juergen 2003/11/18 00:38:26
Added:
testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/AccessControlProperties
01_PropFind-Principal-collection-set.xml
03_PropFind-principal-URL.xml
05_PropFind-group-membership.xml
Log:
add existing functional group tests to new location
Revision Changes Path
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/AccessControlProperties/01_PropFind-Principal-collection-set.xml
Index: 01_PropFind-Principal-collection-set.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!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>
<expectedResult>Property found by propFind</expectedResult>
</specification>
<step>
<request>
<command
varUsage="globalVariableRootUserPath,globalVariableGroupsColl,globalVariableGroup,globalVariableServerName">PROPFIND
%globalVariableRootUserPath%/%globalVariableGroupsColl%/%globalVariableGroup%0
HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<body
varUsage="globalVariableGroupsColl,globalVariableServerName,user"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:principal-collection-set />
</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</D:href>
<D:propstat>
<D:prop>
<D:principal-collection-set>
<D:href>%globalVariableRootUserPath%</D:href>
</D:principal-collection-set>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>%globalVariableRootUserPath%/%globalVariableGroupsColl%/%globalVariableGroup%0/2%user%</D:href>
<D:propstat>
<D:prop>
<D:principal-collection-set>
<D:href>%globalVariableRootUserPath%</D:href>
</D:principal-collection-set>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>%globalVariableRootUserPath%/%globalVariableGroupsColl%/%globalVariableGroup%0/%user%2</D:href>
<D:propstat>
<D:prop>
<D:principal-collection-set>
<D:href>%globalVariableRootUserPath%</D:href>
</D:principal-collection-set>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>%globalVariableRootUserPath%/%globalVariableGroupsColl%/%globalVariableGroup%0/%user%</D:href>
<D:propstat>
<D:prop>
<D:principal-collection-set>
<D:href>%globalVariableRootUserPath%</D:href>
</D:principal-collection-set>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
]]></body>
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/AccessControlProperties/03_PropFind-principal-URL.xml
Index: 03_PropFind-principal-URL.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!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>
<expectedResult>Property found by propFind</expectedResult>
</specification>
<step>
<request>
<command
varUsage="globalVariableRootUserPath,globalVariableGroupsColl,globalVariableUsersColl,globalVariableGroup,globalVariableServerName,user">PROPFIND
%globalVariableRootUserPath%/%globalVariableUsersColl%/%user% HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>Depth: 0</header>
<body
varUsage="globalVariableGroupsColl,globalVariableUsersColl,globalVariableServerName,user"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:principal-URL />
</D:prop>
</D:propfind>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi Status</command>
<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%/%user%</D:href>
<D:propstat>
<D:prop>
<D:principal-URL>
<D:href>%globalVariableRootUserPath%/%globalVariableUsersColl%/%user%</D:href>
</D:principal-URL>
</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,globalVariableUsersColl,globalVariableGroup,globalVariableServerName,user">PROPFIND
%globalVariableRootUserPath%/%globalVariableGroupsColl%/%globalVariableGroup%0/%user%
HTTP/1.1</command>
<header>Content-Type: text/xml; charset=utf-8</header>
<header>Depth: 0</header>
<body
varUsage="globalVariableGroupsColl,globalVariableUsersColl,globalVariableServerName,user"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:principal-URL />
</D:prop>
</D:propfind>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi Status</command>
<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%/%globalVariableGroupsColl%/%globalVariableGroup%0/%user%</D:href>
<D:propstat>
<D:prop>
<D:principal-URL>
<D:href>%globalVariableRootUserPath%/%globalVariableUsersColl%/%user%</D:href>
</D:principal-URL>
</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,globalVariableUsersColl,globalVariableGroup,globalVariableServerName">PROPFIND
%globalVariableRootUserPath%/%globalVariableGroupsColl%/%globalVariableGroup%0
HTTP/1.1</command>
<header>Content-Type: text/html; charset=utf-8</header>
<header>Depth: 0</header>
<body
varUsage="globalVariableGroupsColl,globalVariableUsersColl,globalVariableServerName,user"><![CDATA[<?xml
version="1.0" encoding="utf-8"?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:principal-URL />
</D:prop>
</D:propfind>
]]></body>
</request>
<response>
<command>HTTP/1.0 207 Multi Status</command>
<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%/%globalVariableGroupsColl%/%globalVariableGroup%0</D:href>
<D:propstat>
<D:prop>
<D:principal-URL>
<D:href>%globalVariableRootUserPath%/%globalVariableGroupsColl%/%globalVariableGroup%0</D:href>
</D:principal-URL>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
]]></body>
</response>
</step>
</test>
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/AccessControlProperties/05_PropFind-group-membership.xml
Index: 05_PropFind-group-membership.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!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>
<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>
]]></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>
</response>
</step>
</test>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]