brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aledsage <>
Subject [GitHub] incubator-brooklyn pull request: Brooklyn node and cluster upgrade
Date Mon, 27 Oct 2014 21:21:02 GMT
Github user aledsage commented on a diff in the pull request:
    --- Diff: software/base/src/test/java/brooklyn/entity/brooklynnode/effector/
    @@ -0,0 +1,267 @@
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *
    + *
    + * Unless required by applicable law or agreed to in writing,
    + * software distributed under the License is distributed on an
    + * KIND, either express or implied.  See the License for the
    + * specific language governing permissions and limitations
    + * under the License.
    + */
    +package brooklyn.entity.brooklynnode.effector;
    +import static org.testng.Assert.assertEquals;
    +import static org.testng.Assert.assertTrue;
    +import static;
    +import java.util.Collection;
    +import java.util.Collections;
    +import java.util.concurrent.Callable;
    +import org.apache.http.client.methods.HttpPost;
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +import org.testng.annotations.AfterMethod;
    +import org.testng.annotations.BeforeMethod;
    +import org.testng.annotations.Test;
    +import brooklyn.entity.Entity;
    +import brooklyn.entity.Group;
    +import brooklyn.entity.basic.ApplicationBuilder;
    +import brooklyn.entity.basic.BasicApplication;
    +import brooklyn.entity.basic.EntityLocal;
    +import brooklyn.entity.brooklynnode.BrooklynCluster;
    +import brooklyn.entity.brooklynnode.BrooklynCluster.SelectMasterEffector;
    +import brooklyn.entity.brooklynnode.BrooklynClusterImpl;
    +import brooklyn.entity.brooklynnode.BrooklynNode;
    +import brooklyn.entity.brooklynnode.effector.CallbackEntityHttpClient.Request;
    +import brooklyn.entity.effector.Effectors;
    +import brooklyn.entity.proxying.EntitySpec;
    +import brooklyn.event.feed.AttributePollHandler;
    +import brooklyn.event.feed.DelegatingPollHandler;
    +import brooklyn.event.feed.Poller;
    +import brooklyn.event.feed.function.FunctionFeed;
    +import brooklyn.test.EntityTestUtils;
    +import brooklyn.test.entity.LocalManagementContextForTests;
    +import brooklyn.util.task.BasicExecutionContext;
    +import brooklyn.util.task.BasicExecutionManager;
    +import brooklyn.util.time.Duration;
    +public class SelectMasterEffectorTest {
    +    private static final Logger LOG = LoggerFactory.getLogger(BrooklynClusterImpl.class);
    +    protected ManagementContext mgmt;
    +    protected BasicApplication app;
    +    protected BasicExecutionContext ec;
    +    protected BrooklynCluster cluster;
    +    protected FunctionFeed scanMaster;
    +    protected Poller<Void> poller; 
    +    @BeforeMethod
    --- End diff --
    Add `(alwaysRun=true)`; and same for `@AfterMethod.
    Otherwise if someone marks a test as `@Integration` it will fail at command line but pass
in Eclipse.

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 or file a JIRA ticket
with INFRA.

View raw message