SLING-3017 Improve Karaf integration tests
authorOliver Lietz <olli@apache.org>
Wed, 21 Dec 2016 11:21:01 +0000 (11:21 +0000)
committerOliver Lietz <olli@apache.org>
Wed, 21 Dec 2016 11:21:01 +0000 (11:21 +0000)
whitelist Pax Exam probe bundle by regular expression

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1775401 13f79535-47bb-0310-9956-ffa450edef68

src/main/java/org/apache/sling/karaf/testing/KarafTestSupport.java

index 9cc2135..ab8144b 100644 (file)
@@ -136,6 +136,7 @@ public abstract class KarafTestSupport {
                 .unpackDirectory(new File("target/paxexam/" + getClass().getSimpleName())),
             keepRuntimeFolder(),
             logLevel(LogLevel.DEBUG),
+            editConfigurationFilePut("etc/org.apache.sling.jcr.base.internal.LoginAdminWhitelist.cfg", "whitelist.bundles.regexp", "^PAXEXAM.*$"),
             editConfigurationFilePut("etc/org.ops4j.pax.logging.cfg", "log4j.rootLogger", "DEBUG, out, sift, osgi:*"),
             editConfigurationFilePut("etc/org.apache.karaf.features.cfg", "serviceRequirements", "disable"),
             editConfigurationFilePut("etc/org.apache.karaf.management.cfg", "rmiRegistryPort", Integer.toString(rmiRegistryPort)),