use of com.sequenceiq.it.spark.ambari.AmbariBlueprintsResponse in project cloudbreak by hortonworks.
the class MockClusterCreationWithSaltFailTest method addAmbariMappings.
private void addAmbariMappings(Map<String, CloudVmMetaDataStatus> instanceMap) {
get(AMBARI_API_ROOT + "/clusters/:cluster/requests/:request", new AmbariStatusResponse());
post(AMBARI_API_ROOT + "/views/:view/versions/1.0.0/instances/*", new EmptyAmbariResponse());
get(AMBARI_API_ROOT + "/clusters", new AmbariClusterResponse(instanceMap));
post(AMBARI_API_ROOT + "/clusters/:cluster/requests", new AmbariClusterRequestsResponse());
post(AMBARI_API_ROOT + "/clusters/:cluster", new EmptyAmbariResponse(), gson()::toJson);
get(AMBARI_API_ROOT + "/services/AMBARI/components/AMBARI_SERVER", new AmbariServicesComponentsResponse(), gson()::toJson);
get(AMBARI_API_ROOT + "/hosts", new AmbariHostsResponse(instanceMap), gson()::toJson);
get(AMBARI_API_ROOT + "/blueprints/*", new AmbariBlueprintsResponse());
post(AMBARI_API_ROOT + "/blueprints/*", new EmptyAmbariResponse());
put(AMBARI_API_ROOT + "/users/admin", new EmptyAmbariResponse());
get(AMBARI_API_ROOT + "/check", new AmbariCheckResponse());
get(AMBARI_API_ROOT + "/clusters/:cluster/hosts", new AmbariClustersHostsResponse(instanceMap, "SUCCESSFUL"));
}
Aggregations