fixed test configuration

This commit is contained in:
Adrian Cole 2012-05-10 19:29:19 -07:00
parent 5340e947d3
commit 5bd59d50cd
2 changed files with 12 additions and 0 deletions

View File

@ -48,6 +48,7 @@ import org.jclouds.compute.options.TemplateOptions;
import org.jclouds.domain.LoginCredentials; import org.jclouds.domain.LoginCredentials;
import org.jclouds.ec2.domain.KeyPair; import org.jclouds.ec2.domain.KeyPair;
import org.jclouds.logging.log4j.config.Log4JLoggingModule; import org.jclouds.logging.log4j.config.Log4JLoggingModule;
import org.jclouds.sshj.config.SshjSshClientModule;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
@ -202,4 +203,8 @@ public class AWSKeyPairClientLiveTest extends BaseComputeServiceContextLiveTest
return getOnlyElement(getOnlyElement(instanceClient.describeInstancesInRegion(null, id))); return getOnlyElement(getOnlyElement(instanceClient.describeInstancesInRegion(null, id)));
} }
@Override
protected Module getSshModule() {
return new SshjSshClientModule();
}
} }

View File

@ -46,11 +46,13 @@ import org.jclouds.predicates.RetryablePredicate;
import org.jclouds.scriptbuilder.domain.Statements; import org.jclouds.scriptbuilder.domain.Statements;
import org.jclouds.scriptbuilder.statements.java.InstallJDK; import org.jclouds.scriptbuilder.statements.java.InstallJDK;
import org.jclouds.scriptbuilder.statements.login.AdminAccess; import org.jclouds.scriptbuilder.statements.login.AdminAccess;
import org.jclouds.sshj.config.SshjSshClientModule;
import org.testng.annotations.AfterTest; import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import com.google.common.base.Throwables; import com.google.common.base.Throwables;
import com.google.inject.Module;
/** /**
* Tests behavior of {@code PlacementGroupClient} * Tests behavior of {@code PlacementGroupClient}
@ -168,4 +170,9 @@ public class PlacementGroupClientLiveTest extends BaseComputeServiceContextLiveT
assert deletedTester.apply(group) : group; assert deletedTester.apply(group) : group;
} }
} }
@Override
protected Module getSshModule() {
return new SshjSshClientModule();
}
} }