[jboss-cvs] JBossAS SVN: r61721 - trunk/testsuite/src/resources/web/WEB-INF.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Mar 26 19:09:22 EDT 2007
Author: scott.stark at jboss.org
Date: 2007-03-26 19:09:22 -0400 (Mon, 26 Mar 2007)
New Revision: 61721
Modified:
trunk/testsuite/src/resources/web/WEB-INF/jbosstest-web.xml
Log:
Include the /restricted3/SecureServlet servlet mapping
Modified: trunk/testsuite/src/resources/web/WEB-INF/jbosstest-web.xml
===================================================================
--- trunk/testsuite/src/resources/web/WEB-INF/jbosstest-web.xml 2007-03-26 22:37:48 UTC (rev 61720)
+++ trunk/testsuite/src/resources/web/WEB-INF/jbosstest-web.xml 2007-03-26 23:09:22 UTC (rev 61721)
@@ -256,6 +256,10 @@
<url-pattern>/restricted2/SecureServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
+ <servlet-name>SecureServlet</servlet-name>
+ <url-pattern>/restricted3/SecureServlet</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
<servlet-name>SecureEJBServlet</servlet-name>
<url-pattern>/restricted/SecureEJBAccess</url-pattern>
</servlet-mapping>
@@ -388,6 +392,18 @@
</auth-constraint>
</security-constraint>
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>Restricted</web-resource-name>
+ <description>Test Unauthorized Access</description>
+ <url-pattern>/restricted3/*</url-pattern>
+ </web-resource-collection>
+ <auth-constraint>
+ <description>Non-existent role used for testing unauthorized access</description>
+ <role-name>NonExistentRole</role-name>
+ </auth-constraint>
+ </security-constraint>
+
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>JBossTest Servlets</realm-name>
@@ -413,6 +429,10 @@
<description>ExtraRole2 is an extra role added to a run-as principal</description>
<role-name>ExtraRole2</role-name>
</security-role>
+ <security-role>
+ <description>Role that does not exist</description>
+ <role-name>NonExistentRole</role-name>
+ </security-role>
<!-- ### Environment (java:comp/env/ejb) -->
<env-entry>
@@ -639,3 +659,4 @@
<message-destination-name>TestTopic</message-destination-name>
</message-destination>
</web-app>
+
More information about the jboss-cvs-commits
mailing list