コード例 #1
0
 public void testListNodes() throws Exception {
   for (ComputeMetadata node : client.listNodes()) {
     assert node.getProviderId() != null;
     assert node.getLocation() != null;
     assertEquals(node.getType(), ComputeType.NODE);
   }
 }
コード例 #2
0
 @Test(enabled = true, dependsOnMethods = "testSuspendResume")
 public void testListNodes() throws Exception {
   for (ComputeMetadata node : client.listNodes()) {
     assert node.getProviderId() != null;
     assert node.getLocation() != null;
     assertEquals(node.getType(), ComputeType.NODE);
   }
 }