Examples of deleteConfigGroup()


Examples of org.apache.ambari.server.state.Cluster.deleteConfigGroup()

    configLogger.info("Deleting Config group, "
      + ", clusterName = " + cluster.getClusterName()
      + ", id = " + request.getId()
      + ", user = " + getManagementController().getAuthName());

    cluster.deleteConfigGroup(request.getId());
  }

  private void validateRequest(ConfigGroupRequest request) {
    if (request.getClusterName() == null
      || request.getClusterName().isEmpty()
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.deleteConfigGroup()

    actual.put("core-site", tags);
    sch3.updateActualConfigs(actual);

    Assert.assertFalse(sch3.convertToResponse().isStaleConfig());

    cluster.deleteConfigGroup(id);
    Assert.assertNull(cluster.getConfigGroups().get(id));

    sch3.updateActualConfigs(actual);
    Assert.assertTrue(sch3.convertToResponse().isStaleConfig());
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.deleteConfigGroup()

    Cluster cluster = createNiceMock(Cluster.class);

    expect(managementController.getAuthName()).andReturn("admin").anyTimes();
    expect(managementController.getClusters()).andReturn(clusters).anyTimes();
    expect(clusters.getCluster("Cluster100")).andReturn(cluster).anyTimes();
    cluster.deleteConfigGroup(1L);

    replay(managementController, clusters, cluster);

    ResourceProvider resourceProvider = getConfigGroupResourceProvider
      (managementController);
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.deleteConfigGroup()

    configLogger.info("Deleting Config group, "
      + ", clusterName = " + cluster.getClusterName()
      + ", id = " + request.getId()
      + ", user = " + getManagementController().getAuthName());

    cluster.deleteConfigGroup(request.getId());
  }

  private void validateRequest(ConfigGroupRequest request) {
    if (request.getClusterName() == null
      || request.getClusterName().isEmpty()
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.deleteConfigGroup()

    configLogger.info("Deleting Config group, "
      + ", clusterName = " + cluster.getClusterName()
      + ", id = " + request.getId()
      + ", user = " + getManagementController().getAuthName());

    cluster.deleteConfigGroup(request.getId());
  }

  private void validateRequest(ConfigGroupRequest request) {
    if (request.getClusterName() == null
      || request.getClusterName().isEmpty()
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.deleteConfigGroup()

    Cluster cluster = createNiceMock(Cluster.class);

    expect(managementController.getAuthName()).andReturn("admin").anyTimes();
    expect(managementController.getClusters()).andReturn(clusters).anyTimes();
    expect(clusters.getCluster("Cluster100")).andReturn(cluster).anyTimes();
    cluster.deleteConfigGroup(1L);

    replay(managementController, clusters, cluster);

    ResourceProvider resourceProvider = getConfigGroupResourceProvider
      (managementController);
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.deleteConfigGroup()

    // after start/restart command execution completed
    sch3.setRestartRequired(false);

    Assert.assertFalse(sch3.convertToResponse().isStaleConfig());

    cluster.deleteConfigGroup(id);
    Assert.assertNull(cluster.getConfigGroups().get(id));

    sch3.updateActualConfigs(actual);
    Assert.assertTrue(sch3.convertToResponse().isStaleConfig());
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.deleteConfigGroup()

    actual.put("core-site", tags);
    sch3.updateActualConfigs(actual);

    Assert.assertFalse(sch3.convertToResponse().isStaleConfig());

    cluster.deleteConfigGroup(id);
    Assert.assertNull(cluster.getConfigGroups().get(id));

    sch3.updateActualConfigs(actual);
    Assert.assertTrue(sch3.convertToResponse().isStaleConfig());
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.deleteConfigGroup()

    configLogger.info("Deleting Config group, "
      + ", clusterName = " + cluster.getClusterName()
      + ", id = " + request.getId()
      + ", user = " + getManagementController().getAuthName());

    cluster.deleteConfigGroup(request.getId());
  }

  private void validateRequest(ConfigGroupRequest request) {
    if (request.getClusterName() == null
      || request.getClusterName().isEmpty()
View Full Code Here

Examples of org.apache.ambari.server.state.Cluster.deleteConfigGroup()

    Cluster cluster = createNiceMock(Cluster.class);

    expect(managementController.getAuthName()).andReturn("admin").anyTimes();
    expect(managementController.getClusters()).andReturn(clusters).anyTimes();
    expect(clusters.getCluster("Cluster100")).andReturn(cluster).anyTimes();
    cluster.deleteConfigGroup(1L);

    replay(managementController, clusters, cluster);

    ResourceProvider resourceProvider = getConfigGroupResourceProvider
      (managementController);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.