From e28773337ed97b24c340374a3175556183072dbd Mon Sep 17 00:00:00 2001 From: danikov Date: Mon, 21 Nov 2011 14:58:39 +0000 Subject: [PATCH] fixed UK provider/region not working + regression tests --- ...CloudLoadBalancersUSLoadBalancerClientLiveTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/providers/cloudloadbalancers-us/src/test/java/org/jclouds/rackspace/cloudloadbalancers/CloudLoadBalancersUSLoadBalancerClientLiveTest.java b/providers/cloudloadbalancers-us/src/test/java/org/jclouds/rackspace/cloudloadbalancers/CloudLoadBalancersUSLoadBalancerClientLiveTest.java index 6610ebcb0e..d54518e51f 100644 --- a/providers/cloudloadbalancers-us/src/test/java/org/jclouds/rackspace/cloudloadbalancers/CloudLoadBalancersUSLoadBalancerClientLiveTest.java +++ b/providers/cloudloadbalancers-us/src/test/java/org/jclouds/rackspace/cloudloadbalancers/CloudLoadBalancersUSLoadBalancerClientLiveTest.java @@ -18,7 +18,10 @@ */ package org.jclouds.rackspace.cloudloadbalancers; +import static org.testng.Assert.assertEquals; + import org.jclouds.cloudloadbalancers.features.LoadBalancerClientLiveTest; +import org.testng.annotations.BeforeGroups; import org.testng.annotations.Test; /** @@ -30,4 +33,11 @@ public class CloudLoadBalancersUSLoadBalancerClientLiveTest extends LoadBalancer public CloudLoadBalancersUSLoadBalancerClientLiveTest() { provider = "cloudloadbalancers-us"; } + + @BeforeGroups(groups = "live") + protected void setup() { + super.setup(); + assertEquals(client.getConfiguredRegions().size(), + CloudLoadBalancersUSPropertiesBuilder.REGIONS.length); + } }