mirror of https://github.com/apache/jclouds.git
updated ecloud live test to use ubuntu 10.04
This commit is contained in:
parent
281109dfc4
commit
f9dbfda92d
|
@ -88,14 +88,16 @@ public abstract class TerremarkClientLiveTest extends VCloudExpressClientLiveTes
|
|||
|
||||
protected TerremarkVCloudClient tmClient;
|
||||
protected Factory sshFactory;
|
||||
private String publicIp;
|
||||
private InternetService is;
|
||||
private Node node;
|
||||
private VCloudExpressVApp vApp;
|
||||
private RetryablePredicate<IPSocket> socketTester;
|
||||
private RetryablePredicate<URI> successTester;
|
||||
private VCloudExpressVApp clone;
|
||||
private VDC vdc;
|
||||
protected String publicIp;
|
||||
protected InternetService is;
|
||||
protected Node node;
|
||||
protected VCloudExpressVApp vApp;
|
||||
protected RetryablePredicate<IPSocket> socketTester;
|
||||
protected RetryablePredicate<URI> successTester;
|
||||
protected Injector injector;
|
||||
|
||||
protected VCloudExpressVApp clone;
|
||||
protected VDC vdc;
|
||||
public static final String PREFIX = System.getProperty("user.name") + "-terremark";
|
||||
|
||||
@Test
|
||||
|
@ -281,7 +283,7 @@ public abstract class TerremarkClientLiveTest extends VCloudExpressClientLiveTes
|
|||
loopAndCheckPass();
|
||||
}
|
||||
|
||||
private void loopAndCheckPass() throws IOException {
|
||||
protected void loopAndCheckPass() throws IOException {
|
||||
for (int i = 0; i < 5; i++) {// retry loop TODO replace with predicate.
|
||||
try {
|
||||
doCheckPass(publicIp);
|
||||
|
@ -373,7 +375,7 @@ public abstract class TerremarkClientLiveTest extends VCloudExpressClientLiveTes
|
|||
loopAndCheckPass();
|
||||
}
|
||||
|
||||
private void verifyConfigurationOfVApp(VCloudExpressVApp vApp, String serverName, String expectedOs,
|
||||
protected void verifyConfigurationOfVApp(VCloudExpressVApp vApp, String serverName, String expectedOs,
|
||||
int processorCount, long memory, long hardDisk) {
|
||||
assertEquals(vApp.getName(), serverName);
|
||||
assertEquals(vApp.getOperatingSystemDescription(), expectedOs);
|
||||
|
@ -387,7 +389,7 @@ public abstract class TerremarkClientLiveTest extends VCloudExpressClientLiveTes
|
|||
CIMPredicates.resourceTypeIn(ResourceType.DISK_DRIVE)).getVirtualQuantity().longValue());
|
||||
}
|
||||
|
||||
private void doCheckPass(String address) throws IOException {
|
||||
protected void doCheckPass(String address) throws IOException {
|
||||
IPSocket socket = new IPSocket(address, 22);
|
||||
|
||||
System.out.printf("%d: %s awaiting ssh service to start%n", System.currentTimeMillis(), socket);
|
||||
|
@ -466,7 +468,7 @@ public abstract class TerremarkClientLiveTest extends VCloudExpressClientLiveTes
|
|||
setupCredentials();
|
||||
Properties overrides = setupProperties();
|
||||
|
||||
Injector injector = new RestContextFactory().createContextBuilder(provider,
|
||||
injector = new RestContextFactory().createContextBuilder(provider,
|
||||
ImmutableSet.<Module> of(new Log4JLoggingModule(), new JschSshClientModule()), overrides)
|
||||
.buildInjector();
|
||||
|
||||
|
|
|
@ -44,8 +44,8 @@ public class TerremarkECloudClientLiveTest extends TerremarkClientLiveTest {
|
|||
@BeforeClass
|
||||
void setProvider() {
|
||||
this.provider = "trmk-ecloud";
|
||||
this.itemName = "Ubuntu 8.04 LTS (x86)";
|
||||
expectedOs = "Ubuntu Linux (32-bit)";
|
||||
this.itemName = "Ubuntu Server 10.04 x64";
|
||||
expectedOs = "Ubuntu Linux (64-bit)";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -55,7 +55,7 @@ public class TerremarkECloudClientLiveTest extends TerremarkClientLiveTest {
|
|||
|
||||
@Override
|
||||
protected SshClient getConnectionFor(IPSocket socket) {
|
||||
return sshFactory.create(socket, new Credentials("ecloud", "$Ep455l0ud!2"));
|
||||
return sshFactory.create(socket, new Credentials("ecloud", "TmrkCl0ud1s#1!"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue