> +         
> options.as(GoogleComputeEngineTemplateOptions.class).bootDiskType("pd-ssd");
> +
> +         // create a node
> +         Set<? extends NodeMetadata> nodes =
> +               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));

Done.

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

Reply via email to