polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [4/7] polygene-java git commit: cassandra-es: bind dockerized service host and port to cassandra-es config
Date Mon, 27 Feb 2017 13:05:28 GMT
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/serialization-3.0
Commit: 30c5ff2314c10c10e187bc7b9228994e662aabb0
Parents: 67267ea
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Mon Feb 27 00:18:20 2017 +0100
Committer: Paul Merlin <paulmerlin@apache.org>
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
     }


Mime
View raw message