Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A2E79200C28 for ; Mon, 27 Feb 2017 00:18:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 97531160B77; Sun, 26 Feb 2017 23:18:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DF57A160B6E for ; Mon, 27 Feb 2017 00:18:46 +0100 (CET) Received: (qmail 21647 invoked by uid 500); 26 Feb 2017 23:18:46 -0000 Mailing-List: contact commits-help@polygene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@polygene.apache.org Delivered-To: mailing list commits@polygene.apache.org Received: (qmail 21638 invoked by uid 99); 26 Feb 2017 23:18:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Feb 2017 23:18:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C8DDCDFDA9; Sun, 26 Feb 2017 23:18:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: paulmerlin@apache.org To: commits@polygene.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: polygene-java git commit: cassandra-es: bind dockerized service host and port to cassandra-es config Date: Sun, 26 Feb 2017 23:18:45 +0000 (UTC) archived-at: Sun, 26 Feb 2017 23:18:47 -0000 Repository: polygene-java Updated Branches: refs/heads/develop 67267eaba -> 30c5ff231 cassandra-es: bind dockerized service host and port to cassandra-es config Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/30c5ff23 Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/30c5ff23 Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/30c5ff23 Branch: refs/heads/develop Commit: 30c5ff2314c10c10e187bc7b9228994e662aabb0 Parents: 67267ea Author: Paul Merlin Authored: Mon Feb 27 00:18:20 2017 +0100 Committer: Paul Merlin Committed: Mon Feb 27 00:18:20 2017 +0100 ---------------------------------------------------------------------- .../entitystore/cassandra/CassandraMapEntityStoreTest.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/polygene-java/blob/30c5ff23/extensions/entitystore-cassandra/src/test/java/org/apache/polygene/entitystore/cassandra/CassandraMapEntityStoreTest.java ---------------------------------------------------------------------- diff --git a/extensions/entitystore-cassandra/src/test/java/org/apache/polygene/entitystore/cassandra/CassandraMapEntityStoreTest.java b/extensions/entitystore-cassandra/src/test/java/org/apache/polygene/entitystore/cassandra/CassandraMapEntityStoreTest.java index 3ff8e85..9b1f0ac 100644 --- a/extensions/entitystore-cassandra/src/test/java/org/apache/polygene/entitystore/cassandra/CassandraMapEntityStoreTest.java +++ b/extensions/entitystore-cassandra/src/test/java/org/apache/polygene/entitystore/cassandra/CassandraMapEntityStoreTest.java @@ -61,6 +61,9 @@ public class CassandraMapEntityStoreTest // END SNIPPET: assembly CassandraEntityStoreConfiguration cassandraConfig = config.forMixin( CassandraEntityStoreConfiguration.class ).declareDefaults(); + String host = DOCKER.getDockerHost(); + int port = DOCKER.getExposedContainerPort( "9042/tcp" ); + cassandraConfig.hostnames().set( host + ':' + port ); cassandraConfig.createIfMissing().set( true ); // START SNIPPET: assembly }