> @@ -129,4 +130,21 @@ public void forwardingRules() {
> }
> assertEquals(count, 2);
> }
> +
> + public void targetInstances() {
> + Iterator<ListPage<TargetInstance>> pageIterator =
> api().targetInstances(maxResults(1));
> + // make sure that in spite of having only one result per page we get at
> + // least two results
> + int count = 0;
> + for (; count < 2 && pageIterator.hasNext();) {
> + ListPage<TargetInstance> result = pageIterator.next();
> + if (!result.isEmpty()) {
> + count++;
> + }
> + }
> + if (count < 2) {
> + throw new SkipException("Not enough target instances");
Should this be skip or a failure?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/100/files#r20977945