@Test
  @Parameters({"true", "false"})
  public void alterMemberWithoutOptions_needsRelevantParameter(boolean connectOverHttp)
      throws Exception {
    Properties props = new Properties();
    props.setProperty(LOG_LEVEL, "error");

    MemberVM locator = startupRule.startLocatorVM(0, MemberStarterRule::withHttpService);
    MemberVM server1 = startupRule.startServerVM(1, props, locator.getPort());

    if (connectOverHttp) {
      gfsh.connectAndVerify(locator.getHttpPort(), GfshCommandRule.PortType.http);
    } else {
      gfsh.connectAndVerify(locator.getJmxPort(), GfshCommandRule.PortType.jmxManager);
    }

    CommandStringBuilder withMemberOnly = new CommandStringBuilder(ALTER_RUNTIME_CONFIG)
        .addOption(MEMBER, server1.getName());

    gfsh.executeAndAssertThat(withMemberOnly.toString())
        .statusIsError()
        .containsOutput(ALTER_RUNTIME_CONFIG__RELEVANT__OPTION__MESSAGE);

    server1.invoke(() -> {
      InternalCache cache = ClusterStartupRule.getCache();
      DistributionConfig config = cache.getInternalDistributedSystem().getConfig();

      assertThat(config.getLogFileSizeLimit())
          .isEqualTo(0);
      assertThat(config.getLogDiskSpaceLimit())
          .isEqualTo(0);
      assertThat(config.getArchiveDiskSpaceLimit())
          .isEqualTo(0);
      assertThat(config.getStatisticSampleRate())
          .isEqualTo(1000);
      assertThat(config.getStatisticArchiveFile().getName())
          .isEqualTo("");
      assertThat(config.getStatisticSamplingEnabled())
          .isTrue();
    });
  }
Test to verify that when 'alter runtime' without relevant options does not change the server's
configuration
geode-web/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/AlterRuntimeCommandDistributedTest.java