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/03/28 09:47:14 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite ACLgrantWritePutColFile.xml1 ACLgrantWritePropPatchColFile.xml1

juergen     2003/03/28 00:47:14

  Added:       testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite
                        ACLgrantWritePutColFile.xml1
                        ACLgrantWritePropPatchColFile.xml1
  Log:
  renamed these two tests to remove it from the testsuit run because currently it is not possible to solve the problem (Eckehard)
  
  Revision  Changes    Path
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLgrantWritePutColFile.xml1
  
  Index: ACLgrantWritePutColFile.xml1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
  	<specification>
  		<abstract> Test to check if possible to Put file with write privilege </abstract>
  		<description>
  		1) ACL command which denies read access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) Put command attempted on child collection
  		</description>
  		<expectedResult> Put command should return 201 Created </expectedResult>
  	</specification>
  	<step>
  		<user varUsage="user">%user%2</user>
  		<password varUsage="user">%user%2</password>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  			<header>Content-Type: text/xml; charset=utf-8</header>
  			<header>User-Agent: Jakarta HTTP Client/1.0</header>
  			<body varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>%globalVariableUserPath%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<user varUsage="user">%user%2</user>
  		<password varUsage="user">%user%2</password>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
  			<header>Accept-Language: en-us</header>
  			<header>Translate: f</header>
  			<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
  			<header>Connection: Keep-Alive</header>
  		</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
  			<header>Content-Language: en</header>
  			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
  			<header>Accept-Language: en-us</header>
  			<header>Translate: f</header>
  			<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
  			<header>Connection: Keep-Alive</header>
  			<body fileReference="../../../../contentDirectory/validXML.xm1"/>
  		</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  		</response>
  	</step>
  	<cleanup>
  		<step>
  			<user varUsage="user">%user%2</user>
  			<password varUsage="user">%user%2</password>
  			<request>
  				<command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  				<header>Content-Type: text/xml; charset=utf-8</header>
  				<header>User-Agent: Jakarta HTTP Client/1.0</header>
  				<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
        </D:acl>]]></body>
  			</request>
  			<response>
  				<command>HTTP/1.0 200 OK</command>
  			</response>
  		</step>
  		<step>
  			<user varUsage="user">%user%2</user>
  			<password varUsage="user">%user%2</password>
  			<request>
  				<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
  				<header>Accept-Language: en-us</header>
  				<header>Destroy: NoUndelete</header>
  				<header>Translate: f</header>
  				<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
  				<header>Connection: Keep-Alive</header>
  			</request>
  			<response>
  				<command>HTTP/1.0 204 No Content</command>
  				<header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
  				<header>Content-Language: en</header>
  				<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
  			</response>
  		</step>
  	</cleanup>
  </test>
  
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/Principle/EitherReadorWrite/ACLgrantWritePropPatchColFile.xml1
  
  Index: ACLgrantWritePropPatchColFile.xml1
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
  	<specification>
  		<abstract> Test to check if possible to Proppatch file with write privilege </abstract>
  		<description>
  		1) ACL command which denies read access to the user %user%
  		2) MKCOL command which creates a child collection (/test)
  		3) PUT command which creates a child file (/test/test.xml)
  		4) Proppatch command attempted on child file
  		5) Proppatch command attempted on child collection
  		</description>
  		<expectedResult> Two Proppatch commands should both return 207 Multi Status </expectedResult>
  	</specification>
  	<step>
  		<user varUsage="user">%user%2</user>
  		<password varUsage="user">%user%2</password>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  			<header>Content-Type: text/xml; charset=utf-8</header>
  			<header>User-Agent: Jakarta HTTP Client/1.0</header>
  			<body varUsage="globalVariableUserPath,globalVariableRootUserPath,globalVariableServerName,user,host"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
           <D:ace>
              <D:principal>
                 <D:href>%globalVariableUserPath%</D:href>
              </D:principal>
              <D:deny>
                 <D:privilege><D:read /></D:privilege>
              </D:deny>
           </D:ace>
        </D:acl>]]></body>
  		</request>
  		<response>
  			<command>HTTP/1.0 200 OK</command>
  		</response>
  	</step>
  	<step>
  		<user varUsage="user">%user%2</user>
  		<password varUsage="user">%user%2</password>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
  			<header>Accept-Language: en-us</header>
  			<header>Translate: f</header>
  			<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
  			<header>Connection: Keep-Alive</header>
  		</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  			<header>Date: Wed, 21 Feb 2001 12:55:57 GMT+01:00</header>
  			<header>Content-Language: en</header>
  			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
  		</response>
  	</step>
  	<step>
  		<user varUsage="user">%user%2</user>
  		<password varUsage="user">%user%2</password>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
  			<header>Accept-Language: en-us</header>
  			<header>Translate: f</header>
  			<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
  			<header>Connection: Keep-Alive</header>
  			<body fileReference="../../../../contentDirectory/validXML.xm1"/>
  		</request>
  		<response>
  			<command>HTTP/1.0 201 Created</command>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
  			<header>Content-Type: text/xml</header>
  			<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
  			<header>Accept-Language: en-us</header>
  			<header>Translate: f</header>
  			<header>Pragma: no-cache</header>
  			<header>Connection: close</header>
  			<body>&lt;?xml version="1.0" ?&gt;
     &lt;D:propertyupdate xmlns:D="DAV:" xmlns:Z="http://www.com/"&gt;
     	&lt;D:remove&gt;
     	 &lt;D:prop&gt;
     	 	&lt;D:displayname/&gt;
     	 &lt;/D:prop&gt;
     	 &lt;/D:remove&gt;
     	&lt;/D:propertyupdate&gt;</body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi-Status</command>
  			<header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
  			<header>Content-Language: en</header>
  			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
  			<body varUsage="globalVariableCollection,globalVariableServerName">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
     &lt;d:multistatus xmlns:d="DAV" xmlns:Z="DAVxxxx:" &gt;
     &lt;d:response&gt;
     	&lt;d:href&gt;/%globalVariableServerName%/%globalVariableCollection%/test&lt;/d:href&gt;
     		 	
     		
     		&lt;d:propstat&gt;
     			&lt;d:prop&gt;
     				&lt;d:displayname/&gt;
     			&lt;/d:prop&gt;
     		&lt;d:status&gt;HTTP/1.1 200 OK&lt;/d:status&gt;
     		&lt;/d:propstat&gt;
     	
     	&lt;/d:response&gt;
     	&lt;/d:multistatus&gt;</body>
  		</response>
  	</step>
  	<step>
  		<request>
  			<command varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH /%globalVariableServerName%/%globalVariableCollection%/test/test.xml HTTP/1.1</command>
  			<header>Content-Type: text/xml</header>
  			<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
  			<header>Accept-Language: en-us</header>
  			<header>Translate: f</header>
  			<header>Pragma: no-cache</header>
  			<header>Connection: close</header>
  			<body>&lt;?xml version="1.0" ?&gt;
     &lt;D:propertyupdate xmlns:D="DAV:" xmlns:Z="http://www.com/"&gt;
     	&lt;D:remove&gt;
     	 &lt;D:prop&gt;
     	 	&lt;D:displayname/&gt;
     	 &lt;/D:prop&gt;
     	 &lt;/D:remove&gt;
     	&lt;/D:propertyupdate&gt;</body>
  		</request>
  		<response>
  			<command>HTTP/1.0 207 Multi-Status</command>
  			<header>Date: Tue, 13 Feb 2001 12:45:26 GMT+01:00</header>
  			<header>Content-Language: en</header>
  			<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
  			<body varUsage="globalVariableCollection,globalVariableServerName">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
     &lt;d:multistatus xmlns:d="DAV" xmlns:Z="DAVxxxx:" &gt;
     &lt;d:response&gt;
     	&lt;d:href&gt;/%globalVariableServerName%/%globalVariableCollection%/test/test.xml&lt;/d:href&gt;
     		 	
     		
     		&lt;d:propstat&gt;
     			&lt;d:prop&gt;
     				&lt;d:displayname/&gt;
     			&lt;/d:prop&gt;
     		&lt;d:status&gt;HTTP/1.1 200 OK&lt;/d:status&gt;
     		&lt;/d:propstat&gt;
     	
     	&lt;/d:response&gt;
     	&lt;/d:multistatus&gt;</body>
  		</response>
  	</step>
  	<cleanup>
  		<step>
  			<user varUsage="user">%user%2</user>
  			<password varUsage="user">%user%2</password>
  			<request>
  				<command varUsage="globalVariableCollection,globalVariableServerName">ACL /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command>
  				<header>Content-Type: text/xml; charset=utf-8</header>
  				<header>User-Agent: Jakarta HTTP Client/1.0</header>
  				<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
        <D:acl xmlns:D="DAV:">
        </D:acl>]]></body>
  			</request>
  			<response>
  				<command>HTTP/1.0 200 OK</command>
  			</response>
  		</step>
  		<step>
  			<user varUsage="user">%user%2</user>
  			<password varUsage="user">%user%2</password>
  			<request>
  				<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
  				<header>Accept-Language: en-us</header>
  				<header>Destroy: NoUndelete</header>
  				<header>Translate: f</header>
  				<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
  				<header>Connection: Keep-Alive</header>
  			</request>
  			<response>
  				<command>HTTP/1.0 204 No Content</command>
  				<header>Date: Tue, 13 Feb 2001 17:14:41 GMT+01:00</header>
  				<header>Content-Language: en</header>
  				<header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
  			</response>
  		</step>
  	</cleanup>
  </test>
  
  
  

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