public void turnFullAutoOnForLocalhost() throws Exception {
      // Turn FULL_AUTO on this host
      String resourceName = helixAdmin.getResourcesInCluster(clusterName).get(0);
      IdealState idealState = helixAdmin.getResourceIdealState(clusterName, resourceName);
      InstanceConfig instanceConfig = helixAdmin.getInstanceConfig(clusterName, instanceName);
      final String instanceGroupTag = "TAG_1000000";
      idealState.setRebalanceMode(IdealState.RebalanceMode.FULL_AUTO);
      idealState.setInstanceGroupTag(instanceGroupTag);
      instanceConfig.addTag(instanceGroupTag);
      helixAdmin.setInstanceConfig(clusterName, instanceName, instanceConfig);
      helixAdmin.setResourceIdealState(clusterName, resourceName, idealState);
      Thread.sleep(500); // wait for clustermap to catch up
      assertTrue(clusterMap.isDataNodeInFullAutoMode(localNode));
    }
Turn FULL AUTO on for the local host
@throws Exception
ambry-store/src/test/java/com/github/ambry/store/StorageManagerTest.java