From 3b2e6ea7960de652e2472f23795550d1b62d8e3a Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Fri, 13 Apr 2012 10:48:38 -0600 Subject: [PATCH] fix cloudwatch --- .../aws/ec2/compute/AWSEC2ComputeServiceLiveTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/compute/AWSEC2ComputeServiceLiveTest.java b/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/compute/AWSEC2ComputeServiceLiveTest.java index 40e15c9b77..8ebe24b440 100644 --- a/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/compute/AWSEC2ComputeServiceLiveTest.java +++ b/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/compute/AWSEC2ComputeServiceLiveTest.java @@ -55,7 +55,6 @@ import org.jclouds.ec2.domain.KeyPair; import org.jclouds.ec2.domain.SecurityGroup; import org.jclouds.ec2.services.InstanceClient; import org.jclouds.ec2.services.KeyPairClient; -import org.jclouds.logging.log4j.config.Log4JLoggingModule; import org.jclouds.rest.RestContext; import org.jclouds.rest.internal.ContextBuilder; import org.jclouds.scriptbuilder.domain.Statements; @@ -68,7 +67,6 @@ import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSortedSet; import com.google.common.collect.Iterables; import com.google.common.util.concurrent.ListenableFuture; -import com.google.inject.Module; /** * @@ -169,7 +167,8 @@ public class AWSEC2ComputeServiceLiveTest extends EC2ComputeServiceLiveTest monitoringContext = ContextBuilder .newBuilder(new AWSCloudWatchProviderMetadata()) - .modules(ImmutableSet. of(new Log4JLoggingModule())).build(); + .credentials(identity, credential) + .modules(setupModules()).build(); try { Set datapoints = monitoringContext.getApi().getMetricStatisticsInRegion(instance.getRegion(),