Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C9CEE2009F3 for ; Fri, 20 May 2016 18:29:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C88801609B1; Fri, 20 May 2016 16:29:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 10667160A30 for ; Fri, 20 May 2016 18:29:37 +0200 (CEST) Received: (qmail 61315 invoked by uid 500); 20 May 2016 16:29:37 -0000 Mailing-List: contact commits-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list commits@geode.incubator.apache.org Received: (qmail 61080 invoked by uid 99); 20 May 2016 16:29:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2016 16:29:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C2499CAFEB for ; Fri, 20 May 2016 16:29:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id I7BSH8Y0Qt2C for ; Fri, 20 May 2016 16:29:34 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 4429460E4C for ; Fri, 20 May 2016 16:29:34 +0000 (UTC) Received: (qmail 60232 invoked by uid 99); 20 May 2016 16:29:33 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2016 16:29:33 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 52BC0E0FC8; Fri, 20 May 2016 16:29:33 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: klund@apache.org To: commits@geode.incubator.apache.org Date: Fri, 20 May 2016 16:29:57 -0000 Message-Id: <9aba605c45624763839657c29044126c@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [26/49] incubator-geode git commit: GEODE-1390: Disabling broken test archived-at: Fri, 20 May 2016 16:29:38 -0000 GEODE-1390: Disabling broken test Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/08ef0c1e Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/08ef0c1e Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/08ef0c1e Branch: refs/heads/feature/GEODE-835-test Commit: 08ef0c1ee442d33e2da872a4a5e4bdb120d25817 Parents: 884cf13 Author: Jens Deppe Authored: Sat May 14 15:14:12 2016 -0700 Committer: Jens Deppe Committed: Sat May 14 15:14:12 2016 -0700 ---------------------------------------------------------------------- .../cli/commands/HelpCommandsJUnitTest.java | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/08ef0c1e/geode-core/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/HelpCommandsJUnitTest.java ---------------------------------------------------------------------- diff --git a/geode-core/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/HelpCommandsJUnitTest.java b/geode-core/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/HelpCommandsJUnitTest.java index 7cbe85a..1d81d2e 100644 --- a/geode-core/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/HelpCommandsJUnitTest.java +++ b/geode-core/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/HelpCommandsJUnitTest.java @@ -25,7 +25,9 @@ import com.gemstone.gemfire.management.internal.cli.shell.Gfsh; import com.gemstone.gemfire.management.internal.cli.shell.GfshConfig; import com.gemstone.gemfire.test.dunit.internal.JUnit4DistributedTestCase; import com.gemstone.gemfire.test.junit.categories.IntegrationTest; +import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.experimental.categories.Category; @@ -41,8 +43,10 @@ public class HelpCommandsJUnitTest extends JUnit4DistributedTestCase { private int jmxPort; + private Gfsh gfsh; + @Before - public void setup() { + public void setup() throws Exception { jmxPort = AvailablePortHelper.getRandomAvailableTCPPort(); Properties localProps = new Properties(); @@ -51,15 +55,22 @@ public class HelpCommandsJUnitTest extends JUnit4DistributedTestCase { localProps.setProperty(DistributionConfig.JMX_MANAGER_PORT_NAME, String.valueOf(jmxPort)); getSystem(localProps); + gfsh = Gfsh.getInstance(false, new String[0], new GfshConfig()); } + @After + public void teardown() { + disconnectAllFromDS(); + + gfsh.executeCommand("disconnect"); + } + + @Ignore("Disconnect command doesn't appear to be working") @Test public void testOfflineHelp() throws Exception { Properties helpProps = new Properties(); helpProps.load(HelpCommandsJUnitTest.class.getResourceAsStream("golden-help-offline.properties")); - Gfsh gfsh = Gfsh.getInstance(false, new String[0], new GfshConfig()); - CommandManager cm = CommandManager.getInstance(); for (Map.Entry e : cm.getCommands().entrySet()) { // Mock commands may have been produced in the VM by other tests @@ -88,7 +99,6 @@ public class HelpCommandsJUnitTest extends JUnit4DistributedTestCase { Properties helpProps = new Properties(); helpProps.load(HelpCommandsJUnitTest.class.getResourceAsStream("golden-help-online.properties")); - Gfsh gfsh = Gfsh.getInstance(false, new String[0], new GfshConfig()); gfsh.executeCommand("connect --jmx-manager=localhost[" + jmxPort + "]"); CommandManager cm = CommandManager.getInstance();