Author: kamrul
Date: Tue Nov 15 09:56:24 2011
New Revision: 1202114
URL: http://svn.apache.org/viewvc?rev=1202114&view=rev
Log:
OOZIE-557 Simplify/normalize testing configuration when using different
databases. Committing the new files. (Alejandro via Mohammad)
Added:
incubator/oozie/trunk/core/src/test/resources/derby-oozie-site.xml
incubator/oozie/trunk/core/src/test/resources/hsqldb-oozie-site.xml
incubator/oozie/trunk/core/src/test/resources/oracle-oozie-site.xml
incubator/oozie/trunk/core/src/test/resources/postgres-oozie-site.xml
Added: incubator/oozie/trunk/core/src/test/resources/derby-oozie-site.xml
URL:
http://svn.apache.org/viewvc/incubator/oozie/trunk/core/src/test/resources/derby-oozie-site.xml?rev=1202114&view=auto
==============================================================================
--- incubator/oozie/trunk/core/src/test/resources/derby-oozie-site.xml (added)
+++ incubator/oozie/trunk/core/src/test/resources/derby-oozie-site.xml Tue Nov
15 09:56:24 2011
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+ Copyright (c) 2010 Yahoo! Inc. All rights reserved.
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. See accompanying LICENSE file.
+-->
+<configuration>
+ <property>
+ <name>oozie.service.JPAService.jdbc.driver</name>
+ <value>org.apache.derby.jdbc.EmbeddedDriver</value>
+ </property>
+ <property>
+ <name>oozie.service.JPAService.jdbc.url</name>
+ <value>jdbc:derby:${oozie.data.dir}/oozie-derby;create=true</value>
+ </property>
+</configuration>
Added: incubator/oozie/trunk/core/src/test/resources/hsqldb-oozie-site.xml
URL:
http://svn.apache.org/viewvc/incubator/oozie/trunk/core/src/test/resources/hsqldb-oozie-site.xml?rev=1202114&view=auto
==============================================================================
--- incubator/oozie/trunk/core/src/test/resources/hsqldb-oozie-site.xml (added)
+++ incubator/oozie/trunk/core/src/test/resources/hsqldb-oozie-site.xml Tue Nov
15 09:56:24 2011
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+ Copyright (c) 2010 Yahoo! Inc. All rights reserved.
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. See accompanying LICENSE file.
+-->
+<configuration>
+ <property>
+ <name>oozie.service.JPAService.jdbc.driver</name>
+ <value>org.hsqldb.jdbcDriver</value>
+ </property>
+ <property>
+ <name>oozie.service.JPAService.jdbc.url</name>
+ <value>jdbc:hsqldb:mem:oozie-db;create=true</value>
+ </property>
+</configuration>
Added: incubator/oozie/trunk/core/src/test/resources/oracle-oozie-site.xml
URL:
http://svn.apache.org/viewvc/incubator/oozie/trunk/core/src/test/resources/oracle-oozie-site.xml?rev=1202114&view=auto
==============================================================================
--- incubator/oozie/trunk/core/src/test/resources/oracle-oozie-site.xml (added)
+++ incubator/oozie/trunk/core/src/test/resources/oracle-oozie-site.xml Tue Nov
15 09:56:24 2011
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+ Copyright (c) 2010 Yahoo! Inc. All rights reserved.
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. See accompanying LICENSE file.
+-->
+<configuration>
+ <property>
+ <name>oozie.service.JPAService.jdbc.driver</name>
+ <value>oracle.jdbc.driver.OracleDriver</value>
+ </property>
+ <property>
+ <name>oozie.test.db.port</name>
+ <value>1521</value>
+ </property>
+ <property>
+ <name>oozie.test.db.name</name>
+ <value>xe</value>
+ </property>
+ <property>
+ <name>oozie.service.JPAService.jdbc.url</name>
+
<value>jdbc:oracle:thin:@//${oozie.test.db.host}:${oozie.test.db.port}/${oozie.test.db.name}</value>
+ </property>
+ <property>
+ <name>oozie.service.JPAService.jdbc.username</name>
+ <value>oozie</value>
+ </property>
+ <property>
+ <name>oozie.service.JPAService.jdbc.password</name>
+ <value>oozie</value>
+ </property>
+</configuration>
Added: incubator/oozie/trunk/core/src/test/resources/postgres-oozie-site.xml
URL:
http://svn.apache.org/viewvc/incubator/oozie/trunk/core/src/test/resources/postgres-oozie-site.xml?rev=1202114&view=auto
==============================================================================
--- incubator/oozie/trunk/core/src/test/resources/postgres-oozie-site.xml
(added)
+++ incubator/oozie/trunk/core/src/test/resources/postgres-oozie-site.xml Tue
Nov 15 09:56:24 2011
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+ Copyright (c) 2010 Yahoo! Inc. All rights reserved.
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. See accompanying LICENSE file.
+-->
+<configuration>
+ <property>
+ <name>oozie.service.JPAService.jdbc.driver</name>
+ <value>org.postgresql.Driver</value>
+ </property>
+ <property>
+ <name>oozie.test.db.port</name>
+ <value>5432</value>
+ </property>
+ <property>
+ <name>oozie.test.db.name</name>
+ <value>oozie</value>
+ </property>
+ <property>
+ <name>oozie.service.JPAService.jdbc.url</name>
+
<value>jdbc:postgresql://${oozie.test.db.host}:${oozie.test.db.port}/${oozie.test.db.name}</value>
+ </property>
+ <property>
+ <name>oozie.service.JPAService.jdbc.username</name>
+ <value>oozie</value>
+ </property>
+ <property>
+ <name>oozie.service.JPAService.jdbc.password</name>
+ <value>oozie</value>
+ </property>
+</configuration>