public void testListNodes() throws Exception {
   for (ComputeMetadata node : client.listNodes()) {
     assert node.getProviderId() != null;
     assert node.getLocation() != null;
     assertEquals(node.getType(), ComputeType.NODE);
   }
 }
Ejemplo n.º 2
0
 @Test(enabled = true, dependsOnMethods = "testSuspendResume")
 public void testListNodes() throws Exception {
   for (ComputeMetadata node : client.listNodes()) {
     assert node.getProviderId() != null : node;
     assert node.getLocation() != null : node;
     assertEquals(node.getType(), ComputeType.NODE);
   }
 }
 @Override
 public void testListNodes() throws Exception {
   for (ComputeMetadata node : client.listNodes()) {
     assert node.getProviderId() != null;
     assert node.getLocation() != null;
     assertEquals(node.getType(), ComputeType.NODE);
     NodeMetadata allData = client.getNodeMetadata(node.getId());
     System.out.println(allData.getHardware());
     RestContext<TerremarkVCloudClient, TerremarkVCloudClient> tmContext =
         new ComputeServiceContextFactory()
             .createContext(provider, identity, credential)
             .getProviderSpecificContext();
     VCloudExpressVApp vApp =
         tmContext.getApi().findVAppInOrgVDCNamed(null, null, allData.getName());
     assertEquals(vApp.getName(), allData.getName());
   }
 }