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 2002/09/24 13:03:00 UTC
cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlMethods/ACLPrecondition ACE-ConflictGrantWriteDenyAll.xml
juergen 2002/09/24 04:03:00
Modified: testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlMethods/ACLPrecondition
ACE-ConflictGrantWriteDenyAll.xml
Log:
Modified the testcase to handle deny before garnt precondition
Revision Changes Path
1.6 +65 -1 jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlMethods/ACLPrecondition/ACE-ConflictGrantWriteDenyAll.xml
Index: ACE-ConflictGrantWriteDenyAll.xml
===================================================================
RCS file: /home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/ACL/functional/AccessControlMethods/ACLPrecondition/ACE-ConflictGrantWriteDenyAll.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ACE-ConflictGrantWriteDenyAll.xml 13 Aug 2002 10:32:34 -0000 1.5
+++ ACE-ConflictGrantWriteDenyAll.xml 24 Sep 2002 11:02:59 -0000 1.6
@@ -4,11 +4,27 @@
<specification>
<abstract> Test to check if Dav:ace-conflict works. </abstract>
<description>
- 1) ACL command which grants write access and denies all access to the user %user%
+ 1) ACL command which grants write access and denies all access to the user %user%, user should not be able to write, but able to read.
</description>
<expectedResult> ACL command should return 200 OK </expectedResult>
</specification>
<step>
+ <request>
+ <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test.html 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/html.html"/>
+ </request>
+ <response>
+ <command>HTTP/1.0 201 Created</command>
+ <header>Date: Wed, 14 Mar 2001 15:45:51 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">2%user%</user>
<password varUsage="user">2%user%</password>
<request>
@@ -42,6 +58,38 @@
<command>HTTP/1.0 200 OK</command>
</response>
</step>
+ <step>
+ <request>
+ <command varUsage="globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test.html 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/html.html"/>
+ </request>
+ <response>
+ <command>HTTP/1.0 403 Forbidden</command>
+ <header>Date: Wed, 14 Mar 2001 15:45:51 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">GET /%globalVariableServerName%/%globalVariableCollection%/test.html HTTP/1.1</command>
+ <header>Accept: */*</header>
+ <header>Accept-Language: en-us</header>
+ <header>Accept-Encoding: gzip, deflate</header>
+ <header>User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)</header>
+ <header>Connection: Keep-Alive</header>
+ </request>
+ <response>
+ <command>HTTP/1.0 200 OK</command>
+ <header>Content-Type: text/html</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 fileReference="../../../contentDirectory/html.html"/>
+ </response>
+ </step>
<cleanup>
<step>
<user varUsage="user">2%user%</user>
@@ -58,5 +106,21 @@
<command>HTTP/1.0 200 OK</command>
</response>
</step>
+ <step>
+ <request>
+ <command varUsage="globalVariableCollection,globalVariableServerName">DELETE /%globalVariableServerName%/%globalVariableCollection%/test.html 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: Mon, 19 Mar 2001 16:49:09 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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>