protected void checkNodes(Iterable<? extends NodeMetadata> nodes, String tag) throws IOException {
   for (NodeMetadata node : nodes) {
     assertNotNull(node.getProviderId());
     assertNotNull(node.getTag());
     assertEquals(node.getTag(), tag);
     assertEquals(node.getState(), NodeState.RUNNING);
     assert node.getPublicAddresses().size() >= 1 || node.getPrivateAddresses().size() >= 1
         : "no ips in" + node;
     assertNotNull(node.getCredentials());
     if (node.getCredentials().account != null) {
       assertNotNull(node.getCredentials().account);
       assertNotNull(node.getCredentials().key);
       sshPing(node);
     }
   }
 }
Ejemplo n.º 2
0
 protected void checkNodes(Iterable<? extends NodeMetadata> nodes, String tag) throws IOException {
   for (NodeMetadata node : nodes) {
     assertNotNull(node.getProviderId());
     assertNotNull(node.getTag());
     assertEquals(node.getTag(), tag);
     assertEquals(node.getState(), NodeState.RUNNING);
     Credentials fromStore = context.getCredentialStore().get("node#" + node.getId());
     assertEquals(fromStore, node.getCredentials());
     assert node.getPublicAddresses().size() >= 1 || node.getPrivateAddresses().size() >= 1
         : "no ips in" + node;
     assertNotNull(node.getCredentials());
     if (node.getCredentials().identity != null) {
       assertNotNull(node.getCredentials().identity);
       assertNotNull(node.getCredentials().credential);
       sshPing(node);
     }
   }
 }