brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aleds...@apache.org
Subject [6/9] git commit: Fix MongoDBConfigServerIntegrationTest
Date Tue, 28 Oct 2014 17:55:39 GMT
Fix MongoDBConfigServerIntegrationTest

- use test-mongodb-configserver.conf, rather than that for the
  members of the replica set.


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/9aeab837
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/9aeab837
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/9aeab837

Branch: refs/heads/master
Commit: 9aeab837cab9bbe5cd4d0900b198ad16d3cc205d
Parents: 2cd43a0
Author: Aled Sage <aled.sage@gmail.com>
Authored: Tue Oct 28 15:44:33 2014 +0000
Committer: Aled Sage <aled.sage@gmail.com>
Committed: Tue Oct 28 17:03:17 2014 +0000

----------------------------------------------------------------------
 .../mongodb/sharding/MongoDBConfigServerIntegrationTest.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/9aeab837/software/nosql/src/test/java/brooklyn/entity/nosql/mongodb/sharding/MongoDBConfigServerIntegrationTest.java
----------------------------------------------------------------------
diff --git a/software/nosql/src/test/java/brooklyn/entity/nosql/mongodb/sharding/MongoDBConfigServerIntegrationTest.java
b/software/nosql/src/test/java/brooklyn/entity/nosql/mongodb/sharding/MongoDBConfigServerIntegrationTest.java
index af86093..4aa8f69 100644
--- a/software/nosql/src/test/java/brooklyn/entity/nosql/mongodb/sharding/MongoDBConfigServerIntegrationTest.java
+++ b/software/nosql/src/test/java/brooklyn/entity/nosql/mongodb/sharding/MongoDBConfigServerIntegrationTest.java
@@ -26,6 +26,7 @@ import org.testng.annotations.Test;
 
 import brooklyn.entity.basic.ApplicationBuilder;
 import brooklyn.entity.basic.Entities;
+import brooklyn.entity.nosql.mongodb.MongoDBServer;
 import brooklyn.entity.nosql.mongodb.MongoDBTestHelper;
 import brooklyn.entity.proxying.EntitySpec;
 import brooklyn.entity.trait.Startable;
@@ -54,7 +55,7 @@ public class MongoDBConfigServerIntegrationTest {
     @Test(groups = "Integration")
     public void testCanStartAndStop() throws Exception {
         MongoDBConfigServer entity = app.createAndManageChild(EntitySpec.create(MongoDBConfigServer.class)
-                .configure("mongodbConfTemplateUrl", "classpath:///test-mongodb.conf"));
+                .configure(MongoDBServer.MONGODB_CONF_TEMPLATE_URL, "classpath:///test-mongodb-configserver.conf"));
         app.start(ImmutableList.of(localhostProvisioningLocation));
 
         EntityTestUtils.assertAttributeEqualsEventually(entity, Startable.SERVICE_UP, true);


Mime
View raw message