diff --git a/apis/ec2/src/test/java/org/jclouds/ec2/services/WindowsClientLiveTest.java b/apis/ec2/src/test/java/org/jclouds/ec2/services/WindowsClientLiveTest.java index 0b7cecc82b..5248538188 100644 --- a/apis/ec2/src/test/java/org/jclouds/ec2/services/WindowsClientLiveTest.java +++ b/apis/ec2/src/test/java/org/jclouds/ec2/services/WindowsClientLiveTest.java @@ -22,12 +22,15 @@ import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertFalse; import static org.testng.Assert.assertTrue; +import java.util.ArrayList; +import java.util.List; import java.util.Properties; import java.util.Set; import java.util.concurrent.TimeUnit; import javax.annotation.Nullable; +import com.google.inject.Module; import org.jclouds.compute.ComputeService; import org.jclouds.compute.domain.NodeMetadata; import org.jclouds.compute.domain.OsFamily; @@ -41,6 +44,7 @@ import org.jclouds.ec2.compute.functions.WindowsLoginCredentialsFromEncryptedDat import org.jclouds.ec2.domain.InstanceType; import org.jclouds.ec2.domain.PasswordData; import org.jclouds.ec2.reference.EC2Constants; +import org.jclouds.encryption.bouncycastle.config.BouncyCastleCryptoModule; import org.jclouds.predicates.RetryablePredicate; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; @@ -57,7 +61,7 @@ import com.google.common.collect.Iterables; @Test(groups = "live", singleThreaded = true, testName = "WindowsClientLiveTest") public class WindowsClientLiveTest extends BaseComputeServiceContextLiveTest { public WindowsClientLiveTest() { - provider = "ec2"; + provider = "aws-ec2"; } private ComputeService computeService; @@ -80,7 +84,15 @@ public class WindowsClientLiveTest extends BaseComputeServiceContextLiveTest { computeService = view.getComputeService(); } - + @Override + protected Iterable setupModules() { + Iterable superModules = super.setupModules(); + List modules = new ArrayList(); + Iterables.addAll(modules, superModules); + modules.add(new BouncyCastleCryptoModule()); + return modules; + } + @Test(enabled = false) // TODO get instance public void testBundleInstanceInRegion() {