You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by GitBox <gi...@apache.org> on 2019/05/14 07:07:34 UTC

[GitHub] [jclouds] nacx commented on a change in pull request #21: Adds methods listAll and listByLocation to VirtualMachineAPI

nacx commented on a change in pull request #21: Adds methods listAll and listByLocation to VirtualMachineAPI
URL: https://github.com/apache/jclouds/pull/21#discussion_r283652032
 
 

 ##########
 File path: providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/compute/AzureComputeServiceLiveTest.java
 ##########
 @@ -67,6 +75,30 @@ public void initializeContext() {
       }, Names.named(TIMEOUT_RESOURCE_DELETED)));
    }
 
+   @Test(dependsOnMethods = "testSuspendResume")
+   @Override
+   public void testListNodesByIds() {
+      final Set<String> nodeIds = copyOf(transform(nodes, new Function<NodeMetadata, String>() {
+
+         @Override
+         public String apply(NodeMetadata from) {
+            return from.getId();
+         }
+
+      }));
+
+      final Set<? extends ComputeMetadata> listedNodes = client.listNodesByIds(nodeIds);
+
+      assertEquals(listedNodes.size(), nodes.size());
+
+      for (ComputeMetadata listedNode : listedNodes) {
 
 Review comment:
   Please add a comment explaining the justification for overriding this method to do more relaxed validations here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services