brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aledsage <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: Fix MySqlCluster script init
Date Thu, 17 Sep 2015 08:59:15 GMT
Github user aledsage commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/903#discussion_r39724014
  
    --- Diff: software/database/src/test/java/org/apache/brooklyn/entity/database/mysql/MySqlClusterIntegrationTest.java
---
    @@ -40,4 +42,22 @@ public void test_localhost() throws Exception {
                 }
             }
         }
    +
    +    @Test(groups = {"Integration"})
    +    public void testMasterInit() throws Exception {
    +        try {
    +            MySqlClusterTestHelper.testMasterInit(app, getLocation());
    +        } finally {
    +            for (Entity member : Iterables.getOnlyElement(app.getChildren()).getChildren())
{
    +                String runDir = member.getAttribute(MySqlNode.RUN_DIR);
    +                if (runDir != null) {
    +                    Os.deleteRecursively(runDir);
    +                }
    +            }
    +        }
    +    }
    +
    +    private Location getLocation() {
    +        return mgmt.getLocationRegistry().resolve("vagrant", ImmutableMap.of("minRam",
"2G"));
    --- End diff --
    
    Needs comment to say what config is required in brooklyn.properties for this to work.
Presumably it won't work for other people, or for jenkins?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message