juergen     2003/12/03 00:13:57

  Modified:    
testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/Principle/EitherReadorWrite
                        06_ACLgrantWriteForGroup_PutColFile.xml
  Log:
  adapted to URM (Josef)
  
  Revision  Changes    Path
  1.4       +145 -71   
jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/Principle/EitherReadorWrite/06_ACLgrantWriteForGroup_PutColFile.xml
  
  Index: 06_ACLgrantWriteForGroup_PutColFile.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/groups/Principle/EitherReadorWrite/06_ACLgrantWriteForGroup_PutColFile.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- 06_ACLgrantWriteForGroup_PutColFile.xml   20 Nov 2003 09:17:22 -0000      1.3
  +++ 06_ACLgrantWriteForGroup_PutColFile.xml   3 Dec 2003 08:13:57 -0000       1.4
  @@ -1,34 +1,93 @@
   <?xml version="1.0" encoding="utf-8"?>
   <!DOCTYPE test SYSTEM "../../../../../../Tprocessor.dtd">
   <test>
  -  <specification>
  -    <abstract> Test to check if possible to put file and collection with write 
privilege for a group</abstract>
  -    <description>
  -             1) prepare test: MKCOL /test
  -             2) ACL command which grants write access to the group 
%globalVariableGroupsColl,globalVariableGroup,%1 on the /test collection
  -             3) user %globalVariableGroupsColl,globalVariableGroup,%1%user% puts 
file /test/test.xml
  -             4) user %globalVariableGroupsColl,globalVariableGroup,%1%user% puts 
collection /test/myCollection
  -             5) cleanup
  +     <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 
  +             3) tmpUser puts  file /test/test.xml
  +             4) Cleanup
                </description>
  -    <expectedResult> Two put 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">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%/%globalVariableGroup%/%globalVariableGroup%1</D:href>
  +      
<D:href>%globalVariableRootUserPath%/%globalVariableGroupsColl%/tmpGroup</D:href>
       </D:principal>
       <D:grant>
         <D:privilege>
  @@ -39,54 +98,69 @@
   </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,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>
  -    <user 
varUsage="globalVariableGroupsColl,globalVariableGroup,user">%globalVariableGroup%1%user%</user>
  -    <password 
varUsage="globalVariableGroupsColl,globalVariableGroup,user">%globalVariableGroup%1%user%</password>
  -    <request>
  -      <command varUsage="globalVariableCollection,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test/myCollection 
HTTP/1.1</command>
  -    </request>
  -    <response>
  -      <command>HTTP/1.0 201 Created</command>
  -    </response>
  -  </step>
  -  <cleanup>
  -    <step>
  -      <request>
  -        <command varUsage="globalVariableCollection,globalVariableServerName">ACL 
/%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  -        <header>Content-Type: text/xml; charset=utf-8</header>
  -        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  +             </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,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test/tmpColl HTTP/1.1</command>
  +             </request>
  +             <response>
  +                     <command>HTTP/1.0 201 Created</command>
  +             </response>
  +     </step>
  +
  +     <cleanup>
  +             <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="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
   <D:acl xmlns:D="DAV:" />
   
   ]]></body>
  -      </request>
  -      <response>
  -        <command>HTTP/1.0 200 OK</command>
  -      </response>
  -    </step>
  -    <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>
  +                     <request>
  +                             <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test/tmpColl HTTP/1.1</command>
  +                     </request>
  +                     <response>
  +                             <command>HTTP/1.0 204 No Content</command>
  +                     </response>
  +             </step>
   
  +             <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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to