You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by dr...@apache.org on 2020/03/30 15:18:21 UTC
[gora] 05/05: GORA-652 CouchDB: Configure exposed port and server ip
This is an automated email from the ASF dual-hosted git repository.
drazzib pushed a commit to branch GORA-652-enable-tests-by-default
in repository https://gitbox.apache.org/repos/asf/gora.git
commit 47db331d3bfed2d3705e76c9b63c46a3004b93e1
Author: Damien Raude-Morvan <dr...@drazzib.com>
AuthorDate: Mon Mar 30 17:17:58 2020 +0200
GORA-652 CouchDB: Configure exposed port and server ip
---
.../src/test/java/org/apache/gora/couchdb/GoraCouchDBTestDriver.java | 1 +
.../src/test/java/org/apache/gora/couchdb/store/TestCouchDBStore.java | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/gora-couchdb/src/test/java/org/apache/gora/couchdb/GoraCouchDBTestDriver.java b/gora-couchdb/src/test/java/org/apache/gora/couchdb/GoraCouchDBTestDriver.java
index 7996708..9b9b20a 100644
--- a/gora-couchdb/src/test/java/org/apache/gora/couchdb/GoraCouchDBTestDriver.java
+++ b/gora-couchdb/src/test/java/org/apache/gora/couchdb/GoraCouchDBTestDriver.java
@@ -53,6 +53,7 @@ public class GoraCouchDBTestDriver extends GoraTestDriver {
@Override
public void setUpClass() {
log.info("Setting up CouchDB Test Driver");
+ properties.put(CouchDBParameters.PROP_COUCHDB_SERVER, couchdbContainer.getContainerIpAddress());
properties.put(CouchDBParameters.PROP_COUCHDB_PORT, couchdbContainer.getMappedPort(5984).toString());
}
diff --git a/gora-couchdb/src/test/java/org/apache/gora/couchdb/store/TestCouchDBStore.java b/gora-couchdb/src/test/java/org/apache/gora/couchdb/store/TestCouchDBStore.java
index 0045ecd..346fdfe 100644
--- a/gora-couchdb/src/test/java/org/apache/gora/couchdb/store/TestCouchDBStore.java
+++ b/gora-couchdb/src/test/java/org/apache/gora/couchdb/store/TestCouchDBStore.java
@@ -48,7 +48,8 @@ public class TestCouchDBStore extends DataStoreTestBase {
* JUnit integration testing with Docker and Testcontainers
*/
@ClassRule
- public static GenericContainer CouchDB_CONTAINER = new GenericContainer(DOCKER_CONTAINER_NAME);
+ public static GenericContainer CouchDB_CONTAINER = new GenericContainer(DOCKER_CONTAINER_NAME)
+ .withExposedPorts(5984);
static {
try {