> +               client.createNodesInGroup(group, 1, options);
> +         assertEquals(nodes.size(), 1, "One node should have been created");
> +
> +         // Verify the disk on the instance is an ssd.
> +         NodeMetadata node = Iterables.get(nodes, 0);
> +         GoogleComputeEngineApi api = 
> client.getContext().unwrapApi(GoogleComputeEngineApi.class);
> +         Instance instance = 
> api.instancesInZone(node.getLocation().getId()).get(node.getName());
> +         Disk disk = 
> api.disksInZone(node.getLocation().getId()).get(toName(instance.disks().get(0).source()));
> +         assertTrue(disk.type().toString().endsWith("pd-ssd"));
> +
> +         // delete the node
> +         client.destroyNodesMatching(NodePredicates.inGroup(group));
> +
> +      } finally {
> +         client.destroyNodesMatching(NodePredicates.inGroup(group));
> +         if (context != null)

This context (as opposed to the one used in the invalid auth test) is reused by 
all tests. Don't close it as its life cycle is managed in the superclasses.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/154/files#r32374010

Reply via email to