diff --git a/pom.xml b/pom.xml index 67481dd6ffdff03d5951545be19bc007cfeeb933..1c8ec208d0e12a320bba801dcff80bfe91a6730c 100644 --- a/pom.xml +++ b/pom.xml @@ -1322,6 +1322,11 @@ <type>1</type> <location>${basedir}/target/${artifactId}-${project.version}/WEB-INF/classes/maven.build.properties</location> </linkedResource> + <linkedResource> + <name>/src/test/java/olat.local.properties</name> + <type>1</type> + <location>${basedir}/src/test/profile/mysql/olat.eclipse.properties</location> + </linkedResource> </linkedResources> diff --git a/src/test/profile/mysql/olat.eclipse.properties b/src/test/profile/mysql/olat.eclipse.properties new file mode 100644 index 0000000000000000000000000000000000000000..08edf50ff967f802d06f8368e46f560d8debef56 --- /dev/null +++ b/src/test/profile/mysql/olat.eclipse.properties @@ -0,0 +1,47 @@ +######################### +# +# This olat.local.properties file is only used when running junit tests! (Unit tests run in its own classpath environment) +# Use this file to set properties that affect or are a prerequisite for your tests. +# +######################### + +defaultlang=de +db.show_sql=false + +instance.id=2 + +generate.index.at.startup=false + +# for UserTest +keepUserEmailAfterDeletion=true +keepUserLoginAfterDeletion=true + +# do not run upgrades and scheduled jobs and such +cluster.singleton.services = disabled +jmx.rmi.port=1009 + +# SingleVM jms.broker.url +jms.broker.url=vm://embedded?broker.persistent=false +search.broker.url=vm://embedded?broker.persistent=false +codepoint.jms.broker.url=vm://embedded?broker.persistent=false +# Cluster (remote) jms.broker.url +#jms.broker.url=failover:(tcp://localhost:${test.env.jms.broker.port}?wireFormat.maxInactivityDuration=0) +#search.broker.url=failover:(tcp://localhost:${test.env.jms.broker.port}?wireFormat.maxInactivityDuration=0) +#codepoint.jms.broker.url=failover:(tcp://localhost:${test.env.jms.broker.port}?wireFormat.maxInactivityDuration=0) + + +# enable/disable codepoint/breakpoint framework +codepoint_server.enabled=true +smtp.host=testing + +# +# +# if you like to run your tests against mysql just uncomment the following. Please do not commit it! +# +db.vendor=mysql +db.name=olattest +db.user=olat +db.pass=olat +db.host.port=3306 +db.database.dialect=org.hibernate.dialect.MySQL5InnoDBDialect +db.hibernate.ddl.auto= diff --git a/src/test/profile/postgres/olat.eclipse.properties b/src/test/profile/postgres/olat.eclipse.properties new file mode 100644 index 0000000000000000000000000000000000000000..7a7fab9939b4c2740fc72bacdbae682bf21c33ee --- /dev/null +++ b/src/test/profile/postgres/olat.eclipse.properties @@ -0,0 +1,47 @@ +######################### +# +# This olat.local.properties file is only used when running junit tests! (Unit tests run in its own classpath environment) +# Use this file to set properties that affect or are a prerequisite for your tests. +# +######################### + +defaultlang=de +db.show_sql=false + +instance.id=2 + +generate.index.at.startup=false + +# for UserTest +keepUserEmailAfterDeletion=true +keepUserLoginAfterDeletion=true + +# do not run upgrades and scheduled jobs and such +cluster.singleton.services = disabled +jmx.rmi.port=1009 + +# SingleVM jms.broker.url +jms.broker.url=vm://embedded?broker.persistent=false +search.broker.url=vm://embedded?broker.persistent=false +codepoint.jms.broker.url=vm://embedded?broker.persistent=false +# Cluster (remote) jms.broker.url +#jms.broker.url=failover:(tcp://localhost:${test.env.jms.broker.port}?wireFormat.maxInactivityDuration=0) +#search.broker.url=failover:(tcp://localhost:${test.env.jms.broker.port}?wireFormat.maxInactivityDuration=0) +#codepoint.jms.broker.url=failover:(tcp://localhost:${test.env.jms.broker.port}?wireFormat.maxInactivityDuration=0) + + +# enable/disable codepoint/breakpoint framework +codepoint_server.enabled=true +smtp.host=testing + +# +# +# if you like to run your tests against mysql just uncomment the following. Please do not commit it! +# +db.vendor=postgresql +db.name=olattest +db.user=postgres +db.pass=postgres +db.host.port=5432 +db.database.dialect=org.hibernate.dialect.PostgreSQLDialect +db.hibernate.ddl.auto=