You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2004/09/03 03:41:47 UTC
svn commit: rev 37443 - in cocoon/trunk/src/webapp/samples/test: . redirect
Author: vgritsenko
Date: Thu Sep 2 18:41:46 2004
New Revision: 37443
Modified:
cocoon/trunk/src/webapp/samples/test/index.xml
cocoon/trunk/src/webapp/samples/test/redirect/explain-test.xml
cocoon/trunk/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/trunk/src/webapp/samples/test/index.xml
==============================================================================
--- cocoon/trunk/src/webapp/samples/test/index.xml (original)
+++ cocoon/trunk/src/webapp/samples/test/index.xml Thu Sep 2 18:41:46 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/trunk/src/webapp/samples/test/redirect/explain-test.xml
==============================================================================
--- cocoon/trunk/src/webapp/samples/test/redirect/explain-test.xml (original)
+++ cocoon/trunk/src/webapp/samples/test/redirect/explain-test.xml Thu Sep 2 18:41:46 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/trunk/src/webapp/samples/test/redirect/sitemap.xmap
==============================================================================
--- cocoon/trunk/src/webapp/samples/test/redirect/sitemap.xmap (original)
+++ cocoon/trunk/src/webapp/samples/test/redirect/sitemap.xmap Thu Sep 2 18:41:46 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>