Repository: brooklyn-server Updated Branches: refs/heads/master f2ce1cf92 -> 0547ffab9
JcloudsByonLocationResolverStubbedRebindTest: avoid taking 5 minutes Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/c45777f3 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/c45777f3 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/c45777f3 Branch: refs/heads/master Commit: c45777f33402b1326e637b8bd5314c295608d9a7 Parents: a77b338 Author: Aled Sage <aled.s...@gmail.com> Authored: Wed Oct 12 14:16:52 2016 +0100 Committer: Aled Sage <aled.s...@gmail.com> Committed: Wed Oct 12 14:16:52 2016 +0100 ---------------------------------------------------------------------- .../jclouds/JcloudsByonLocationResolverStubbedRebindTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/c45777f3/locations/jclouds/src/test/java/org/apache/brooklyn/location/jclouds/JcloudsByonLocationResolverStubbedRebindTest.java ---------------------------------------------------------------------- diff --git a/locations/jclouds/src/test/java/org/apache/brooklyn/location/jclouds/JcloudsByonLocationResolverStubbedRebindTest.java b/locations/jclouds/src/test/java/org/apache/brooklyn/location/jclouds/JcloudsByonLocationResolverStubbedRebindTest.java index 26da5e9..6d9fabd 100644 --- a/locations/jclouds/src/test/java/org/apache/brooklyn/location/jclouds/JcloudsByonLocationResolverStubbedRebindTest.java +++ b/locations/jclouds/src/test/java/org/apache/brooklyn/location/jclouds/JcloudsByonLocationResolverStubbedRebindTest.java @@ -55,6 +55,7 @@ import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import com.google.common.base.Predicate; +import com.google.common.base.Predicates; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -137,7 +138,10 @@ public class JcloudsByonLocationResolverStubbedRebindTest extends AbstractJcloud @Test public void testRebind() throws Exception { String spec = "jcloudsByon:(provider=\""+SOFTLAYER_PROVIDER+"\",region=\""+SOFTLAYER_AMS01_REGION_NAME+"\",user=\"myuser\",password=\"mypassword\",hosts=\""+nodeId+"\")"; - Map<?,?> specFlags = ImmutableMap.of(JcloudsLocationConfig.COMPUTE_SERVICE_REGISTRY, computeServiceRegistry); + Map<?,?> specFlags = ImmutableMap.builder() + .put(JcloudsLocationConfig.COMPUTE_SERVICE_REGISTRY, computeServiceRegistry) + .put(JcloudsLocation.POLL_FOR_FIRST_REACHABLE_ADDRESS_PREDICATE, Predicates.alwaysTrue()) + .build(); FixedListMachineProvisioningLocation<MachineLocation> location = getLocationManaged(spec, specFlags); JcloudsSshMachineLocation machine = (JcloudsSshMachineLocation) Iterables.getOnlyElement(location.getAllMachines());