Issue 695: Fixed ComputePoolCpuUsage tests

This commit is contained in:
Jason King 2011-12-06 14:22:48 +00:00
parent 0fd4608431
commit 816cfb8a43
1 changed files with 4 additions and 3 deletions

View File

@ -18,6 +18,7 @@
*/ */
package org.jclouds.tmrk.enterprisecloud.features; package org.jclouds.tmrk.enterprisecloud.features;
import org.jclouds.tmrk.enterprisecloud.domain.resource.ComputePoolCpuUsage;
import org.jclouds.tmrk.enterprisecloud.domain.resource.ComputePoolResourceSummary; import org.jclouds.tmrk.enterprisecloud.domain.resource.ComputePoolResourceSummary;
import org.jclouds.tmrk.enterprisecloud.domain.resource.ComputePoolResourceSummaryList; import org.jclouds.tmrk.enterprisecloud.domain.resource.ComputePoolResourceSummaryList;
import org.testng.annotations.BeforeGroups; import org.testng.annotations.BeforeGroups;
@ -62,11 +63,11 @@ public class ResourceClientLiveTest extends BaseTerremarkEnterpriseCloudClientLi
} }
public void testGetComputePoolCpuUsage() throws Exception { public void testGetComputePoolCpuUsage() throws Exception {
ComputePoolResourceSummary resourceSummary = client.getResourceSummary(URI.create("/cloudapi/ecloud/computepools/89/usage/cpu")); ComputePoolCpuUsage cpuUsage = client.getComputePoolCpuUsage(URI.create("/cloudapi/ecloud/computepools/89/usage/cpu"));
assertNotNull(resourceSummary); assertNotNull(cpuUsage);
} }
public void testMissingComputePoolCpuUsage() { public void testMissingComputePoolCpuUsage() {
assertNull(client.getResourceSummary(URI.create("/cloudapi/ecloud/computepools/-1/usage/cpu"))); assertNull(client.getComputePoolCpuUsage(URI.create("/cloudapi/ecloud/computepools/-1/usage/cpu")));
} }
} }