mirror of https://github.com/apache/jclouds.git
commit
d480639214
|
@ -55,7 +55,7 @@ public class AddressClientLiveTest extends BaseCloudStackClientLiveTest {
|
||||||
return;
|
return;
|
||||||
AsyncCreateResponse job = client.getAddressClient().associateIPAddressInZone(
|
AsyncCreateResponse job = client.getAddressClient().associateIPAddressInZone(
|
||||||
Iterables.get(client.getNetworkClient().listNetworks(), 0).getZoneId());
|
Iterables.get(client.getNetworkClient().listNetworks(), 0).getZoneId());
|
||||||
checkState(jobComplete.apply(job.getJobId()), "job %d failed to complete", job.getJobId());
|
checkState(jobComplete.apply(job.getJobId()), "job %s failed to complete", job.getJobId());
|
||||||
ip = client.getAsyncJobClient().<PublicIPAddress> getAsyncJob(job.getJobId()).getResult();
|
ip = client.getAsyncJobClient().<PublicIPAddress> getAsyncJob(job.getJobId()).getResult();
|
||||||
checkIP(ip);
|
checkIP(ip);
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,7 +152,7 @@ public class VirtualMachineClientLiveTest extends BaseCloudStackClientLiveTest {
|
||||||
RetryablePredicate<VirtualMachine> virtualMachineRunning) {
|
RetryablePredicate<VirtualMachine> virtualMachineRunning) {
|
||||||
String serviceOfferingId = DEFAULT_SIZE_ORDERING.min(client.getOfferingClient().listServiceOfferings()).getId();
|
String serviceOfferingId = DEFAULT_SIZE_ORDERING.min(client.getOfferingClient().listServiceOfferings()).getId();
|
||||||
|
|
||||||
System.out.printf("serviceOfferingId %d, templateId %d, zoneId %d, options %s%n", serviceOfferingId, templateId,
|
System.out.printf("serviceOfferingId %s, templateId %s, zoneId %s, options %s%n", serviceOfferingId, templateId,
|
||||||
zoneId, options);
|
zoneId, options);
|
||||||
AsyncCreateResponse job = client.getVirtualMachineClient().deployVirtualMachineInZone(zoneId, serviceOfferingId,
|
AsyncCreateResponse job = client.getVirtualMachineClient().deployVirtualMachineInZone(zoneId, serviceOfferingId,
|
||||||
templateId, options);
|
templateId, options);
|
||||||
|
|
Loading…
Reference in New Issue