mapper.writeValueAsString(networks));
buildReqRespWithoutReqBody("https://127.0.0.1:8443/serengeti/api/clusters", HttpMethod.POST,
HttpStatus.ACCEPTED, "", "https://127.0.0.1:8443/serengeti/api/task/12");
TaskRead task = new TaskRead();
task.setId(12l);
task.setType(Type.INNER);
task.setProgress(0.8);
task.setProgressMessage("some more details here:");
task.setStatus(Status.STARTED);
buildReqRespWithoutReqBody("https://127.0.0.1:8443/serengeti/api/task/12", HttpMethod.GET, HttpStatus.OK,
mapper.writeValueAsString(task));
ClusterRead cluster = new ClusterRead();
List<NodeGroupRead> nodeGroups = new ArrayList<NodeGroupRead>();
NodeGroupRead workerGroup = new NodeGroupRead();
workerGroup.setName("worker");
workerGroup.setInstanceNum(1);
List<NodeRead> instances = new ArrayList<NodeRead>();
NodeRead instance1 = new NodeRead();
instance1.setName("worker1");
instance1.setStatus("PoweredOn");
instance1.setAction("Getting IP...");
instances.add(instance1);
workerGroup.setInstances(instances);
nodeGroups.add(workerGroup);
cluster.setNodeGroups(nodeGroups);
buildReqRespWithoutReqBody("https://127.0.0.1:8443/serengeti/api/cluster/cluster1", HttpMethod.GET,
HttpStatus.OK, mapper.writeValueAsString(cluster));
task.setProgress(1.0);
task.setStatus(Status.COMPLETED);
buildReqRespWithoutReqBody("https://127.0.0.1:8443/serengeti/api/task/12", HttpMethod.GET, HttpStatus.OK,
mapper.writeValueAsString(task));
instance1.setStatus("Service Running");
instance1.setIpConfigs(createIpConfigs("1.2.3.4"));