[jboss-cvs] JBossAS SVN: r83934 - in trunk/testsuite: src/resources/securitymgr and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Feb 6 03:41:03 EST 2009


Author: pskopek at redhat.com
Date: 2009-02-06 03:41:03 -0500 (Fri, 06 Feb 2009)
New Revision: 83934

Modified:
   trunk/testsuite/build.xml
   trunk/testsuite/src/resources/securitymgr/server.policy
Log:
Porting of: 
[JBQA-2053] Security manager tests for AS 5.1.x failing due to not propagating -b settings to test client
[JBQA-2054] Fix security policy file to run tests-security-manager clean


Modified: trunk/testsuite/build.xml
===================================================================
--- trunk/testsuite/build.xml	2009-02-06 08:35:26 UTC (rev 83933)
+++ trunk/testsuite/build.xml	2009-02-06 08:41:03 UTC (rev 83934)
@@ -1667,6 +1667,8 @@
       <echo message="Starting default with policy ${build.resources}/securitymgr/server.policy" />
       <echo message="jboss.home.dir=${jboss.dist}" />
       <echo message="jboss.server.home.dir=${jboss.dist}${/}server${/}default" />
+      <echo message="java.naming.provider.url=${node0.jndi.url}" />
+      <echo message="jbosstest.server.host=${node0}" />
 
       <server:start name="securitymgr"/>
 
@@ -1679,7 +1681,9 @@
          jvm="${junit.jvm}">
 
          <jvmarg line="${junit.jvm.options}"/>
-
+         
+         <sysproperty key="java.naming.provider.url" value="${node0.jndi.url}"/>
+         <sysproperty key="jbosstest.server.host" value="${node0}"/>
          <sysproperty key="jboss.home" file="${project.root}"/>
          <sysproperty key="jboss.thirdparty.dir" file="${project.root}/thirdparty"/>
          <sysproperty key="jboss.tools.dir" file="${project.root}/tools"/>

Modified: trunk/testsuite/src/resources/securitymgr/server.policy
===================================================================
--- trunk/testsuite/src/resources/securitymgr/server.policy	2009-02-06 08:35:26 UTC (rev 83933)
+++ trunk/testsuite/src/resources/securitymgr/server.policy	2009-02-06 08:41:03 UTC (rev 83934)
@@ -296,7 +296,13 @@
    permission javax.management.MBeanPermission "*", "getMBeanInfo";
 };
 
+grant codeBase "file:${jboss.test.deploy.dir}/security-ejb3.jar" {
+   permission java.lang.RuntimePermission "createClassLoader";
+};
 
+grant codeBase "jar:file:${jboss.test.deploy.dir}/security-ejb3.jar!/-" {
+   permission java.security.AllPermission;
+};
 
 //***************************************************************
 // JBoss AS Test Suite Permissions (VFS URL Version)
@@ -332,6 +338,9 @@
    permission javax.management.MBeanPermission "*", "getMBeanInfo";
 };
 
+grant codeBase "vfsmemory://*" {
+   permission java.security.AllPermission;
+};
 
 //****************************************************************
 //  Default block of permissions




More information about the jboss-cvs-commits mailing list