@Test
  @Parameters({"true", "false"})
  public void testAlterUpdatesSharedConfig(boolean connectOverHttp) throws Exception {
    MemberVM locator = startupRule.startLocatorVM(0, MemberStarterRule::withHttpService);

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

    Properties props = new Properties();
    props.setProperty(GROUPS, "Group1");
    props.setProperty(LOG_LEVEL, "error");

    startupRule.startServerVM(1, props, locator.getPort());

    String command = "alter runtime --group=Group1 --log-level=fine";
    gfsh.executeAndAssertThat(command)
        .statusIsSuccess();

    locator.invoke(() -> {
      Properties properties = ClusterStartupRule.getLocator().getConfigurationPersistenceService()
          .getConfiguration("Group1")
          .getGemfireProperties();

      assertThat(properties.get(LOG_LEVEL))
          .isEqualTo("fine");
    });
  }
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