mirror of https://github.com/apache/jclouds.git
GCE hardware profiles might not have volumes
This commit is contained in:
parent
f8eff7e00e
commit
042222b647
|
@ -844,11 +844,15 @@ public abstract class BaseComputeServiceLiveTest extends BaseComputeServiceConte
|
|||
for (Hardware hardware : client.listHardwareProfiles()) {
|
||||
assert hardware.getProviderId() != null : hardware;
|
||||
assert getCores(hardware) > 0 : hardware;
|
||||
assert hardware.getVolumes().size() > 0 : hardware;
|
||||
assert hardware.getRam() > 0 : hardware;
|
||||
assertEquals(hardware.getType(), ComputeType.HARDWARE);
|
||||
checkVolumes(hardware);
|
||||
}
|
||||
}
|
||||
|
||||
protected void checkVolumes(Hardware hardware) {
|
||||
assert hardware.getVolumes().size() > 0 : hardware;
|
||||
}
|
||||
|
||||
@Test(enabled = true)
|
||||
public void testCompareSizes() throws Exception {
|
||||
|
|
|
@ -146,4 +146,9 @@ public class GoogleComputeEngineServiceLiveTest extends BaseComputeServiceLiveTe
|
|||
return path.substring(path.lastIndexOf('/') + 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void checkVolumes(Hardware hardware) {
|
||||
// Hardware profiles might not have volumes.
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue