cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: rev 37440 - in cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test: . redirect
Date Fri, 03 Sep 2004 01:37:34 GMT
Author: vgritsenko
Date: Thu Sep  2 18:37:34 2004
New Revision: 37440

Modified:
   cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/index.xml
   cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/redirect/explain-test.xml
   cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/redirect/sitemap.xmap
Log:
add failing test for internal redirects. just go to
http://localhost:8888/samples/test/redirect/redirect-to-internal-from-sitemap


Modified: cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/index.xml
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/index.xml	(original)
+++ cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/index.xml	Thu Sep  2 18:37:34 2004
@@ -15,20 +15,21 @@
   limitations under the License.
 -->
 
-<!-- CVS $Id: index.xml,v 1.4 2004/03/06 02:25:36 antonio Exp $ -->
+<!-- CVS $Id$ -->
 
 <page>
     <title>Test pages</title>
     <content>
         <para>
-            Stuff found in and under this directory is meant for automated anteater tests.
+            Stuff found in and under this directory is meant for automated
+            anteater tests.
         </para>
         <para>
-            To run tests used the <em>anteater-tests</em> build target.
+            To run tests use the <em>anteater-tests</em> build target.
         </para>
         <para>
-            To create a new test set, create a new subdirectory here and add an <em>explain-test.xml</em>
-            document into it.
+            To create a new test set, create a new subdirectory here and
+            add an <em>explain-test.xml</em> document into it.
         </para>
         <para>
             <b>Available tests</b>:

Modified: cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/redirect/explain-test.xml
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/redirect/explain-test.xml	(original)
+++ cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/redirect/explain-test.xml	Thu Sep
 2 18:37:34 2004
@@ -15,7 +15,7 @@
   limitations under the License.
 -->
 
-<!-- CVS $Id: explain-test.xml,v 1.1 2004/03/17 23:21:15 unico Exp $ -->
+<!-- CVS $Id$ -->
 
 <page>
     <title>sendpage-redirect test</title>
@@ -28,6 +28,7 @@
             Test links:
             <ul>
                 <li><link href="redirect-to-from-sitemap">sitemap redirect-to
statement</link></li>
+                <li><link href="redirect-to-internal-from-sitemap">sitemap redirect-to
statement to the cocoon:// uri</link></li>
                 <li><link href="redirect-to-from-flow">cocoon.redirectTo FOM
call</link></li>
                 <li><link href="send-status">cocoon.sendStatus FOM call</link></li>
                 <li><link href="send-page">cocoon.sendPage FOM call</link></li>

Modified: cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/redirect/sitemap.xmap
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/redirect/sitemap.xmap	(original)
+++ cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/redirect/sitemap.xmap	Thu Sep  2
18:37:34 2004
@@ -21,25 +21,25 @@
   </map:flow>
 
   <map:pipelines>
-    
     <map:pipeline internal-only="true">
-    
       <map:match pattern="read">
         <map:read src="sitemap.xmap"/>
       </map:match>
-    
     </map:pipeline>
     
     <map:pipeline>
-      
       <map:match pattern="redirect-to-from-sitemap">
         <map:redirect-to uri="explain-test.html"/>
       </map:match>
-      
+
+      <map:match pattern="redirect-to-internal-from-sitemap">
+        <map:redirect-to uri="cocoon://samples/test/redirect/explain-test.html"/>
+      </map:match>
+
       <map:match pattern="redirect-to-from-flow">
         <map:call function="redirectTo"/>
       </map:match>
-      
+
       <map:match pattern="send-status">
         <map:call function="sendStatus"/>
       </map:match>

Mime
View raw message