karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r1546594 - /karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafTestSupport.java
Date Fri, 29 Nov 2013 16:07:55 GMT
Author: jbonofre
Date: Fri Nov 29 16:07:54 2013
New Revision: 1546594

URL: http://svn.apache.org/r1546594
Log:
Enable JMX RBAC support in itests

Modified:
    karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafTestSupport.java

Modified: karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafTestSupport.java
URL: http://svn.apache.org/viewvc/karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafTestSupport.java?rev=1546594&r1=1546593&r2=1546594&view=diff
==============================================================================
--- karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafTestSupport.java (original)
+++ karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafTestSupport.java Fri Nov
29 16:07:54 2013
@@ -19,6 +19,7 @@ import static org.ops4j.pax.exam.karaf.o
 import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.karafDistributionConfiguration;
 import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.keepRuntimeFolder;
 import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.replaceConfigurationFile;
+import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.configureSecurity;
 
 import java.io.ByteArrayOutputStream;
 import java.io.Closeable;
@@ -116,6 +117,8 @@ public class KarafTestSupport {
         return new Option[]{
             // KarafDistributionOption.debugConfiguration("8889", true),
             karafDistributionConfiguration().frameworkUrl(karafUrl).name("Apache Karaf").unpackDirectory(new
File("target/exam")),
+            // enable JMX RBAC security, thanks to the KarafMBeanServerBuilder
+            configureSecurity().enableKarafMBeanServerBuilder(),
             keepRuntimeFolder(),
             replaceConfigurationFile("etc/org.ops4j.pax.logging.cfg", getConfigFile("/etc/org.ops4j.pax.logging.cfg")),
             editConfigurationFilePut("etc/org.apache.karaf.features.cfg", "featuresBoot",
"config,standard,region,package,kar,management"),



Mime
View raw message