Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 27EEF1743A for ; Fri, 17 Oct 2014 09:10:28 +0000 (UTC) Received: (qmail 37332 invoked by uid 500); 17 Oct 2014 09:10:25 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 37293 invoked by uid 500); 17 Oct 2014 09:10:25 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 37277 invoked by uid 99); 17 Oct 2014 09:10:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2014 09:10:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 17 Oct 2014 09:10:23 +0000 Received: (qmail 36311 invoked by uid 99); 17 Oct 2014 09:10:03 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2014 09:10:03 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id C48CBA09E0C; Fri, 17 Oct 2014 09:10:02 +0000 (UTC) From: ahgittin To: dev@brooklyn.incubator.apache.org Reply-To: dev@brooklyn.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-brooklyn pull request: Tasks stop on unmanaged Content-Type: text/plain Message-Id: <20141017091002.C48CBA09E0C@tyr.zones.apache.org> Date: Fri, 17 Oct 2014 09:10:02 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Github user ahgittin commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/252#discussion_r19008143 --- Diff: software/webapp/src/test/java/brooklyn/entity/proxy/nginx/NginxRebindWithHaIntegrationTest.java --- @@ -0,0 +1,174 @@ +/* + * 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package brooklyn.entity.proxy.nginx; + +import java.net.URL; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.Callable; +import java.util.concurrent.CopyOnWriteArrayList; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.testng.Assert; +import org.testng.annotations.AfterMethod; +import org.testng.annotations.BeforeMethod; +import org.testng.annotations.Test; + +import brooklyn.entity.Feed; +import brooklyn.entity.basic.Attributes; +import brooklyn.entity.basic.Entities; +import brooklyn.entity.basic.EntityInternal; +import brooklyn.entity.basic.Lifecycle; +import brooklyn.entity.group.DynamicCluster; +import brooklyn.entity.proxying.EntitySpec; +import brooklyn.entity.rebind.RebindTestFixtureWithApp; +import brooklyn.entity.rebind.RebindTestUtils; +import brooklyn.entity.webapp.tomcat.TomcatServer; +import brooklyn.internal.BrooklynFeatureEnablement; +import brooklyn.location.LocationSpec; +import brooklyn.location.basic.LocalhostMachineProvisioningLocation; +import brooklyn.location.basic.SshMachineLocationReuseIntegrationTest.RecordingSshjTool; +import brooklyn.management.Task; +import brooklyn.management.ha.HighAvailabilityMode; +import brooklyn.management.internal.LocalManagementContext; +import brooklyn.test.EntityTestUtils; +import brooklyn.test.WebAppMonitor; +import brooklyn.test.entity.TestApplication; +import brooklyn.util.internal.ssh.SshTool; +import brooklyn.util.net.Networking; +import brooklyn.util.repeat.Repeater; +import brooklyn.util.task.BasicExecutionManager; +import brooklyn.util.time.Duration; + +import com.google.common.collect.ImmutableList; +import com.google.common.collect.Iterables; + +/** + * Test the operation of the {@link NginxController} class. + */ +public class NginxRebindWithHaIntegrationTest extends RebindTestFixtureWithApp { + + private static final Logger LOG = LoggerFactory.getLogger(NginxRebindWithHaIntegrationTest.class); + + private URL warUrl; + private List webAppMonitors = new CopyOnWriteArrayList(); + private ExecutorService executor; + private LocalhostMachineProvisioningLocation loc; + + private Boolean feedRegistration; + + @Override + protected boolean useLiveManagementContext() { + // For Aled, the test failed without own ~/.brooklyn/brooklyn.properties. + // Suspect that was caused by local environment, with custom brooklyn.ssh.config.scriptHeader + // to set things like correct Java on path. + return true; + } + + @BeforeMethod(groups = "Integration") --- End diff -- agree - i just copied `NginxRebindIntegrationTest` which i've also changed --- 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. ---