> +
> 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));
Remove this, as it is already done in the `finally` block
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/154/files#r32373992