> @@ -111,4 +112,21 @@ public void globalOperations() {
> }
> assertEquals(count, 2);
> }
> +
> + public void forwardingRules() {
> + Iterator<ListPage<ForwardingRule>> pageIterator =
> api().forwardingRules(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<ForwardingRule> result = pageIterator.next();
> + if (!result.isEmpty()) {
> + count++;
> + }
> + }
> + if (count < 2) {
> + throw new SkipException("Not enough global operations");
not enough forwarding rules
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/99/files#r20874258