>  
>     @BeforeClass(groups = { "integration", "live" })
>     @Override
>     public void setup() {
>        super.setup();
> -      zones = api.getConfiguredZones();
> +
> +      String key = "test." + provider + ".zone";
> +
> +      if (System.getProperties().containsKey(key)) {
> +          zones.add(System.getProperty(key));
> +      }

How about just:
```
String testZone = System.getProperty("test." + provider + ".zone");
if (testZone != null) {
   zones = ImmutableSet.of(testZone);
} else {
   zones = api.getConfiguredZones();
}
```
?

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

Reply via email to