This is an automated email from the ASF dual-hosted git repository. jensdeppe pushed a commit to branch debug-alter-runtime in repository https://gitbox.apache.org/repos/asf/geode.git
commit 9ed0ab8f594524f0fcd8d3ef1e8deb23c68e3274 Author: Jens Deppe <[email protected]> AuthorDate: Thu Aug 9 11:04:36 2018 -0700 enabled logs --- .../cli/commands/AlterRuntimeCommandDUnitTest.java | 58 +++++++++++----------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/geode-web/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/AlterRuntimeCommandDUnitTest.java b/geode-web/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/AlterRuntimeCommandDUnitTest.java index 5c3e062..2b05687 100644 --- a/geode-web/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/AlterRuntimeCommandDUnitTest.java +++ b/geode-web/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/AlterRuntimeCommandDUnitTest.java @@ -47,7 +47,7 @@ import org.apache.geode.test.junit.rules.GfshCommandRule; @RunWith(JUnitParamsRunner.class) public class AlterRuntimeCommandDUnitTest { @Rule - public ClusterStartupRule startupRule = new ClusterStartupRule().withLogFile(); + public ClusterStartupRule startupRule = new ClusterStartupRule();// .withLogFile(); @Rule public GfshCommandRule gfsh = new GfshCommandRule(); @@ -60,7 +60,7 @@ public class AlterRuntimeCommandDUnitTest { server.invoke(() -> { InternalCache cache = ClusterStartupRule.getCache(); DistributionConfig config = cache.getInternalDistributedSystem().getConfig(); - assertThat(config.getLogLevel()).isEqualTo(LogWriterImpl.ERROR_LEVEL); + // assertThat(config.getLogLevel()).isEqualTo(LogWriterImpl.ERROR_LEVEL); assertThat(config.getLogFileSizeLimit()).isEqualTo(0); assertThat(config.getArchiveDiskSpaceLimit()).isEqualTo(0); assertThat(config.getStatisticSampleRate()).isEqualTo(1000); @@ -79,7 +79,7 @@ public class AlterRuntimeCommandDUnitTest { MemberVM server0 = startupRule.startServerVM(0, - x -> x.withJMXManager().withHttpService().withProperty(LOG_LEVEL, "error")); + x -> x.withJMXManager().withHttpService().withProperty(LOG_LEVEL, "info")); if (connectOverHttp) { gfsh.connectAndVerify(server0.getHttpPort(), GfshCommandRule.PortType.http); @@ -130,7 +130,7 @@ public class AlterRuntimeCommandDUnitTest { throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -167,7 +167,7 @@ public class AlterRuntimeCommandDUnitTest { throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -216,7 +216,7 @@ public class AlterRuntimeCommandDUnitTest { public void alterLogDiskSpaceLimitOnMember_OK(final boolean connectOverHttp) throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withProperties(props).withHttpService()); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -259,7 +259,7 @@ public class AlterRuntimeCommandDUnitTest { public void alterLogDiskSpaceLimitOnGroup_OK(final boolean connectOverHttp) throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -311,7 +311,7 @@ public class AlterRuntimeCommandDUnitTest { throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -350,7 +350,7 @@ public class AlterRuntimeCommandDUnitTest { "java.lang.IllegalArgumentException: Could not set \"log-file-size-limit\""); Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -380,7 +380,7 @@ public class AlterRuntimeCommandDUnitTest { "java.lang.IllegalArgumentException: Could not set \"log-file-size-limit\""); Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -423,7 +423,7 @@ public class AlterRuntimeCommandDUnitTest { throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -461,7 +461,7 @@ public class AlterRuntimeCommandDUnitTest { final boolean connectOverHttp) throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -506,7 +506,7 @@ public class AlterRuntimeCommandDUnitTest { final boolean connectOverHttp) throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -552,7 +552,7 @@ public class AlterRuntimeCommandDUnitTest { throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -589,7 +589,7 @@ public class AlterRuntimeCommandDUnitTest { final boolean connectOverHttp) throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -635,7 +635,7 @@ public class AlterRuntimeCommandDUnitTest { final boolean connectOverHttp) throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -684,7 +684,7 @@ public class AlterRuntimeCommandDUnitTest { "java.lang.IllegalArgumentException: Could not set \"statistic-sample-rate"); Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -720,7 +720,7 @@ public class AlterRuntimeCommandDUnitTest { throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -760,7 +760,7 @@ public class AlterRuntimeCommandDUnitTest { final boolean connectOverHttp) throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -807,7 +807,7 @@ public class AlterRuntimeCommandDUnitTest { final boolean connectOverHttp) throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -857,7 +857,7 @@ public class AlterRuntimeCommandDUnitTest { "java.lang.IllegalArgumentException: Could not set \"archive-disk-space-limit"); Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -906,7 +906,7 @@ public class AlterRuntimeCommandDUnitTest { throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -946,7 +946,7 @@ public class AlterRuntimeCommandDUnitTest { final boolean connectOverHttp) throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -993,7 +993,7 @@ public class AlterRuntimeCommandDUnitTest { final boolean connectOverHttp) throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -1043,7 +1043,7 @@ public class AlterRuntimeCommandDUnitTest { "java.lang.IllegalArgumentException: Could not set \"archive-file-size-limit"); Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -1079,7 +1079,7 @@ public class AlterRuntimeCommandDUnitTest { public void alterDisableStatisticSampling(final boolean connectOverHttp) throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -1120,7 +1120,7 @@ public class AlterRuntimeCommandDUnitTest { throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -1169,7 +1169,7 @@ public class AlterRuntimeCommandDUnitTest { throws Exception { Properties props = new Properties(); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); MemberVM locator = startupRule.startLocatorVM(0, l -> l.withHttpService().withProperties(props)); MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort()); @@ -1213,7 +1213,7 @@ public class AlterRuntimeCommandDUnitTest { Properties props = new Properties(); props.setProperty(GROUPS, "Group1"); - props.setProperty(LOG_LEVEL, "error"); + props.setProperty(LOG_LEVEL, "info"); startupRule.startServerVM(1, props, locator.getPort()); String command = "alter runtime --group=Group1 --log-level=fine";
