> +      assertEquals(result.get("us-east-1").get(),
> +            ImmutableSet.of("us-east-1a", "us-east-1b", "us-east-1c", 
> "us-east-1d"));
> +
> +      assertPosted("us-east-1", "Action=DescribeRegions");
> +      assertPosted("us-east-1", "Action=DescribeAvailabilityZones");
> +   }
> +
> +   public void failsOnAuthorizationErrorToAnyRegion() throws Exception {
> +      enqueueRegions("us-east-1", "eu-central-1");
> +      enqueueXml("us-east-1", "/availabilityZones.xml");
> +      enqueue("eu-central-1", new MockResponse().setResponseCode(401));
> +
> +      DescribeAvailabilityZonesInRegion supplier = new 
> DescribeAvailabilityZonesInRegion(api(),
> +            supplyRegionIds("us-east-1", "eu-central-1"));
> +
> +      try {

@danbrody I think you were curious how to test exceptions. Note we aren't 
interested in testing default fallbacks, but in this specific case, testing an 
exception is important.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/602/files#r20412838

Reply via email to