From 139f378983f9da23af928decab67afc0eb62c324 Mon Sep 17 00:00:00 2001 From: Aidan Skinner Date: Fri, 26 Jun 2009 12:54:53 +0000 Subject: Put the default test profile back to using MemoryMessageStore for now, add java-derby and config-systests-derby.xml for testing purpouses. Allow the config file to be specified in the test profile, default to config-systests.xml. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@788680 13f79535-47bb-0310-9956-ffa450edef68 --- java/ExcludeList | 1 - java/broker/etc/config-systests-derby.xml | 138 +++++++++++++++++++++ java/broker/etc/config-systests.xml | 6 +- java/default.testprofile | 3 +- java/java-derby.testprofile | 7 ++ java/java.testprofile | 2 +- java/module.xml | 1 + .../org/apache/qpid/test/utils/QpidTestCase.java | 2 +- 8 files changed, 153 insertions(+), 7 deletions(-) create mode 100644 java/broker/etc/config-systests-derby.xml create mode 100644 java/java-derby.testprofile (limited to 'java') diff --git a/java/ExcludeList b/java/ExcludeList index 04a69412fa..b3784b9b03 100644 --- a/java/ExcludeList +++ b/java/ExcludeList @@ -7,4 +7,3 @@ org.apache.qpid.server.queue.QueueCreateTest#testCreateFlowToDiskInvalidSize // exclude until aidan fixes org.apache.qpid.server.AlertingTest#* -org.apache.qpid.server.store.PersistentStoreTest#* diff --git a/java/broker/etc/config-systests-derby.xml b/java/broker/etc/config-systests-derby.xml new file mode 100644 index 0000000000..ade832eda1 --- /dev/null +++ b/java/broker/etc/config-systests-derby.xml @@ -0,0 +1,138 @@ + + + + ${QPID_HOME} + ${QPID_WORK} + ${prefix}/etc + + + false + + false + + nio + 5672 + 8672 + 32768 + 32768 + + + false + 8999 + + false + + ${prefix}/../test_resources/ssl/keystore.jks + password + + + + + false + false + 65535 + false + false + + + + + + + passwordfile + org.apache.qpid.server.security.auth.database.PlainPasswordFilePrincipalDatabase + + + passwordFile + ${conf}/passwd + + + + + + + org.apache.qpid.server.security.access.plugins.AllowAll + + + false + + + ${conf}/jmxremote.access + passwordfile + + + + + ${conf}/virtualhosts + + + localhost + + + org.apache.qpid.server.store.DerbyMessageStore + + + + 20000 + + + + + + + development + + + org.apache.qpid.server.store.DerbyMessageStore + + + + + + test + + + org.apache.qpid.server.store.DerbyMessageStore + + + + + + + 0 + 2.0 + + + true + + + ${conf}/virtualhosts-systests.xml + + + diff --git a/java/broker/etc/config-systests.xml b/java/broker/etc/config-systests.xml index ade832eda1..6aac952fe9 100644 --- a/java/broker/etc/config-systests.xml +++ b/java/broker/etc/config-systests.xml @@ -95,7 +95,7 @@ localhost - org.apache.qpid.server.store.DerbyMessageStore + org.apache.qpid.server.store.MemoryMessageStore @@ -109,7 +109,7 @@ development - org.apache.qpid.server.store.DerbyMessageStore + org.apache.qpid.server.store.MemoryMessageStore @@ -118,7 +118,7 @@ test - org.apache.qpid.server.store.DerbyMessageStore + org.apache.qpid.server.store.MemoryMessageStore diff --git a/java/default.testprofile b/java/default.testprofile index 4045e28c7f..acbc31dcbe 100644 --- a/java/default.testprofile +++ b/java/default.testprofile @@ -5,6 +5,7 @@ broker.version=0-8 broker=vm broker.clean=${project.root}/clean-dir ${build.data} ${project.root}/build/work/derbyDB broker.ready=Listening on TCP port +broker.config=${project.root}/build/etc/config-systests.xml max_prefetch=1000 @@ -16,7 +17,7 @@ log4j.configuration=file:///${project.root}/log4j-test.xml log4j.debug=false test.excludes=true -test.excludesfile=${project.root}/ExcludeList ${project.root}/XAExcludeList ${project.root}/08ExcludeList +test.excludesfile=${project.root}/ExcludeList ${project.root}/XAExcludeList ${project.root}/08ExcludeList ${project.root}/08ExcludeList-nopersistence test.fork=no test.mem=512M test=*Test diff --git a/java/java-derby.testprofile b/java/java-derby.testprofile new file mode 100644 index 0000000000..bb0dbf3663 --- /dev/null +++ b/java/java-derby.testprofile @@ -0,0 +1,7 @@ +broker.language=java +broker=${project.root}/build/bin/qpid-server -p @PORT -m @MPORT -c @CONFIG_FILE -l ${project.root}/log4j-test.xml +broker.clean=${project.root}/clean-dir ${build.data} ${project.root}/build/work/derbyDB +broker.ready=Qpid Broker Ready +broker.config=${project.root}/build/etc/config-systests-derby.xml + +test.excludesfile=${project.root}/ExcludeList ${project.root}/XAExcludeList ${project.root}/08ExcludeList-nonvm diff --git a/java/java.testprofile b/java/java.testprofile index 592623f066..9bf824d4cd 100644 --- a/java/java.testprofile +++ b/java/java.testprofile @@ -3,4 +3,4 @@ broker=${project.root}/build/bin/qpid-server -p @PORT -m @MPORT -c @CONFIG_FILE broker.clean=${project.root}/clean-dir ${build.data} ${project.root}/build/work/derbyDB broker.ready=Qpid Broker Ready -test.excludesfile=${project.root}/ExcludeList ${project.root}/XAExcludeList ${project.root}/08ExcludeList-nonvm +test.excludesfile=${project.root}/ExcludeList ${project.root}/XAExcludeList ${project.root}/08ExcludeList-nonvm ${project.root}/08ExcludeList-nopersistence diff --git a/java/module.xml b/java/module.xml index 6ff2e01e83..42da1fe7ed 100644 --- a/java/module.xml +++ b/java/module.xml @@ -236,6 +236,7 @@ + diff --git a/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java b/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java index 2d19bb6e49..72d0e2c5fc 100644 --- a/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java +++ b/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java @@ -56,7 +56,7 @@ import org.slf4j.LoggerFactory; public class QpidTestCase extends TestCase { protected final String QpidHome = System.getProperty("QPID_HOME"); - protected File _configFile = new File(QpidHome, "etc/config-systests.xml"); + protected File _configFile = new File(System.getProperty("broker.config")); private static final Logger _logger = LoggerFactory.getLogger(QpidTestCase.class); -- cgit v1.2.1