You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2023/08/23 12:54:19 UTC
[jackrabbit-oak] branch OAK-10416 created (now 7855239ab3)
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a change to branch OAK-10416
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
at 7855239ab3 OAK-10416: AbstractTwoNodeTest: ensure RDB fixture uses empty DB
This branch includes the following new commits:
new 7855239ab3 OAK-10416: AbstractTwoNodeTest: ensure RDB fixture uses empty DB
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[jackrabbit-oak] 01/01: OAK-10416: AbstractTwoNodeTest: ensure RDB fixture uses empty DB
Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a commit to branch OAK-10416
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit 7855239ab3e6b1325f2925193f68eb12d82d1d87
Author: Julian Reschke <ju...@gmx.de>
AuthorDate: Wed Aug 23 13:54:03 2023 +0100
OAK-10416: AbstractTwoNodeTest: ensure RDB fixture uses empty DB
---
.../jackrabbit/oak/plugins/document/AbstractTwoNodeTest.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/AbstractTwoNodeTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/AbstractTwoNodeTest.java
index 464b0ca19a..1da3d8557a 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/AbstractTwoNodeTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/AbstractTwoNodeTest.java
@@ -26,6 +26,7 @@ import java.util.ArrayList;
import java.util.List;
import org.apache.jackrabbit.oak.plugins.document.mongo.MongoTestUtils;
+import org.apache.jackrabbit.oak.plugins.document.rdb.RDBOptions;
import org.apache.jackrabbit.oak.stats.Clock;
import org.junit.After;
import org.junit.Before;
@@ -73,7 +74,11 @@ public class AbstractTwoNodeTest {
List<Object[]> fixtures = new ArrayList<>();
fixtures.add(new Object[] {new DocumentStoreFixture.MemoryFixture()});
- DocumentStoreFixture rdb = new DocumentStoreFixture.RDBFixture("RDB-H2(file)", "jdbc:h2:file:./target/ds-test", "sa", "");
+ DocumentStoreFixture.RDBFixture rdb = new DocumentStoreFixture.RDBFixture("RDB-H2(file)", "jdbc:h2:file:./target/ds-test",
+ "sa", "");
+ // ensure we have an empty database to start with
+ rdb.setRDBOptions(
+ new RDBOptions().tablePrefix("A2NT" + Long.toHexString(System.currentTimeMillis())).dropTablesOnClose(true));
if (rdb.isAvailable()) {
fixtures.add(new Object[] { rdb });
}