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/11/26 10:38:28 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/general/CRUD 501_createColectionInUserDB.xml 502_getUsersGroupsAndRoles.xml 503_renameRolesFolder.xml

juergen     2003/11/26 01:38:28

  Added:       testsuite/testsuite/junit/xmltestcases/ACL/functional/general/CRUD
                        501_createColectionInUserDB.xml
                        502_getUsersGroupsAndRoles.xml
                        503_renameRolesFolder.xml
  Log:
  add the new existing tests
  
  Revision  Changes    Path
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/general/CRUD/501_createColectionInUserDB.xml
  
  Index: 501_createColectionInUserDB.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
  	<specification>
  		<abstract>Test to check if possible to create a collection in ../userdb</abstract>
  		<description>
  				1) MKCOL in the UserDB collection. 
  				2) Try to remove the folder (it will not find it).
  			Cleanup</description>
  		<expectedResult>403 Forbidden</expectedResult>
  	</specification>
  	<step>
  		<request>
  			<command varUsage="globalVariableRootUserPath">MKCOL %globalVariableRootUserPath%/test HTTP/1.1</command>
  		</request>
  		<response>
  			<command>HTTP/1.1 403 Forbidden</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableRootUserPath">Delete %globalVariableRootUserPath%/test HTTP/1.1</command>
  		</request>
  		<response>
  			<command>HTTP/1.1 404 Not Found</command>
  		</response>
  	</step>
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/general/CRUD/502_getUsersGroupsAndRoles.xml
  
  Index: 502_getUsersGroupsAndRoles.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
  <specification>
  			<abstract>Test to check if possible to get users groups and roles from ../userdb</abstract>
  			<description>
  				1) GET ../userdb/users 
  				2) GET ../userdb/groups
  				3) GET ../userdab/roles
  			Cleanup</description>
  			<expectedResult>HTTP/1.1 200 OK</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>
  		<user varUsage="user">tmpUser</user>
  		<password varUsage="user">Administrator</password>
  		<request>
  			<command varUsage="globalVariableRootUserPath,globalVariableUsersColl">GET %globalVariableRootUserPath%/%globalVariableUsersColl% HTTP/1.1</command>
  		</request>
  		<response>
  			<command>HTTP/1.1 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<user varUsage="user">tmpUser</user>
  		<password varUsage="user">Administrator</password>
  		<request>
  			<command varUsage="globalVariableRootUserPath,globalVariableGroupsColl">GET %globalVariableRootUserPath%/%globalVariableGroupsColl% HTTP/1.1</command>
  		</request>
  		<response>
  			<command>HTTP/1.1 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<user varUsage="user">tmpUser</user>
  		<password varUsage="user">Administrator</password>
  		<request>
  			<command varUsage="globalVariableRootUserPath,globalVariableRolesColl">GET %globalVariableRootUserPath%/%globalVariableRolesColl% HTTP/1.1</command>
  		</request>
  		<response>
  			<command>HTTP/1.1 200 OK</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>	
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/general/CRUD/503_renameRolesFolder.xml
  
  Index: 503_renameRolesFolder.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
  		<specification>
  			<abstract>
  			</abstract>
  			<description>
  				1) Try to rename a folder (users, groups or roles) in ../userdb.
  				2) Try to change other properties in a folder (users, groups or roles) in ../userdb. (CHECK WHAT PROPERTIES CANNOT BE CHANGED).
  			Cleanup</description>
  			<expectedResult>Both tries should not be possible. 403 Forbidden.</expectedResult>
  		</specification>
  
  	<step>
  		<request>
  			<command>MOVE /taminowebdavserver/administration/security/userdb/roles HTTP/1.1</command>
  			<!--header>Depth: 1</header-->
  			<header>Destination:/taminowebdavserver/administration/security/userdb/rolesRenamed</header>
  		</request>
  		<response>
  			<command>HTTP/1.1 403  Forbidden</command>
  		</response>
  	</step>
  	
  	<step>
  		<request>
  			<command varUsage="globalVariableRootUserPath,globalVariableRolesColl">PROPPATCH %globalVariableRootUserPath%/%globalVariableRolesColl% HTTP/1.1</command>
  			<body varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:" >
    <D:set>
      <D:prop>
        <xsv:description xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav">the description property was changed</xsv:description>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi-Status</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableRootUserPath,globalVariableRolesColl,user">PROPFIND %globalVariableRootUserPath%/%globalVariableRolesColl% 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>
      <xsv:description xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav" />
    </D:prop>
  </D:propfind>
  
  ]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi-Status</command>
  			<body varUsage="globalVariableRootUserPath,globalVariableServerName,user,host,globalVariableCollection,globalVariableRolesColl"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:multistatus xmlns:D="DAV:">
    <D:response>
      <D:href>%globalVariableRootUserPath%/%globalVariableRolesColl%</D:href>
      <D:propstat>
        <D:prop>
          <xsv:description xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav">the description property was changed</xsv:description>
        </D:prop>
        <D:status>HTTP/1.1 403 Forbidden</D:status>
      </D:propstat>
    </D:response>
  </D:multistatus>
  
  ]]></body>
  		</response>
  	</step>	
  	
  </test>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org