diff --git a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/internal/BaseNovaApiLiveTest.java b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/internal/BaseNovaApiLiveTest.java index c6adf58a41..cdc7085c26 100644 --- a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/internal/BaseNovaApiLiveTest.java +++ b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/internal/BaseNovaApiLiveTest.java @@ -35,6 +35,7 @@ import org.jclouds.openstack.v2_0.domain.Resource; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; +import com.google.common.base.Predicate; import com.google.common.base.Throwables; import com.google.common.collect.ComparisonChain; import com.google.common.collect.ImmutableSet; @@ -106,7 +107,7 @@ public class BaseNovaApiLiveTest extends BaseApiLiveTest { .getTaskState() != null)); currentDetails = api.get(serverId)) { System.out.printf("blocking on status %s%n%s%n", status, currentDetails); try { - Thread.sleep(5 * 1000); + Thread.sleep(15 * 1000); } catch (InterruptedException e) { throw Throwables.propagate(e); } @@ -122,7 +123,12 @@ public class BaseNovaApiLiveTest extends BaseApiLiveTest { protected String flavorRefForRegion(String regionId) { FlavorApi flavorApi = api.getFlavorApi(regionId); - return DEFAULT_FLAVOR_ORDERING.min(flavorApi.listInDetail().concat()).getId(); + return DEFAULT_FLAVOR_ORDERING.min(flavorApi.listInDetail().concat().filter(new Predicate() { + @Override + public boolean apply(Flavor in) { + return in.getDisk() >= 10 && in.getRam() >= 4 && in.getVcpus() >= 2; + } + })).getId(); } static final Ordering DEFAULT_FLAVOR_ORDERING = new Ordering() {