ngr1.setMemCapacityMB(2048);
ngr1.setStorage(sr1);
ngr1.setInstanceNum(1);
ngr1.setInstances(instances1);
ngr1.setRoles(roles1);
ClusterRead cr1 = new ClusterRead();
cr1.setName("cluster1");
cr1.setDistro("distro1");
cr1.setInstanceNum(10);
cr1.setStatus(ClusterStatus.RUNNING);
List<NodeGroupRead> nodeGroupRead1 = new LinkedList<NodeGroupRead>();
nodeGroupRead1.add(ngr1);
cr1.setNodeGroups(nodeGroupRead1);
buildReqRespWithoutReqBody("https://127.0.0.1:8443/serengeti/api/cluster/cluster1/upgrade",
HttpMethod.PUT, HttpStatus.NO_CONTENT, "");
clusterCommands.upgradeCluster("cluster1");
CookieCache.clear();
}