> + 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)
Done - this was my bad on the copy-paste.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/154/files#r32476120