mirror of https://github.com/apache/jclouds.git
reverted formatting changes
This commit is contained in:
parent
f4d0e18320
commit
d742d53f6b
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
package org.jclouds.virtualbox;
|
package org.jclouds.virtualbox;
|
||||||
|
|
||||||
import static org.jclouds.Constants.*;
|
import static org.jclouds.Constants.PROPERTY_API_VERSION;
|
||||||
import static org.jclouds.Constants.PROPERTY_BUILD_VERSION;
|
import static org.jclouds.Constants.PROPERTY_BUILD_VERSION;
|
||||||
import static org.jclouds.Constants.PROPERTY_ENDPOINT;
|
import static org.jclouds.Constants.PROPERTY_ENDPOINT;
|
||||||
import static org.jclouds.compute.reference.ComputeServiceConstants.PROPERTY_IMAGE_AUTHENTICATE_SUDO;
|
import static org.jclouds.compute.reference.ComputeServiceConstants.PROPERTY_IMAGE_AUTHENTICATE_SUDO;
|
||||||
|
|
|
@ -119,8 +119,10 @@ public class BaseVirtualBoxClientLiveTest extends BaseVersionedServiceLiveTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void ensureIdentityPropertyIsSpecifiedOrTakeFromDefaults() {
|
protected void ensureIdentityPropertyIsSpecifiedOrTakeFromDefaults() {
|
||||||
|
Properties defaultVBoxProperties = new VirtualBoxPropertiesBuilder().build();
|
||||||
if (!System.getProperties().containsKey("test." + provider + ".identity"))
|
if (!System.getProperties().containsKey("test." + provider + ".identity"))
|
||||||
System.setProperty("test." + provider + ".identity", "administrator");
|
System.setProperty("test." + provider + ".identity",
|
||||||
|
defaultVBoxProperties.getProperty(Constants.PROPERTY_IDENTITY));
|
||||||
}
|
}
|
||||||
|
|
||||||
@BeforeClass(groups = "live")
|
@BeforeClass(groups = "live")
|
||||||
|
@ -147,11 +149,14 @@ public class BaseVirtualBoxClientLiveTest extends BaseVersionedServiceLiveTest {
|
||||||
checkNotNull(mastersCache.apply(template.getImage()));
|
checkNotNull(mastersCache.apply(template.getImage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void undoVm(VmSpec vmSpecification) {
|
protected void undoVm(VmSpec vmSpecification) {
|
||||||
machineUtils.unlockMachineAndApplyOrReturnNullIfNotRegistered(vmSpecification.getVmId(),
|
machineUtils.unlockMachineAndApplyOrReturnNullIfNotRegistered(vmSpecification.getVmId(),
|
||||||
new UnregisterMachineIfExistsAndDeleteItsMedia(vmSpecification));
|
new UnregisterMachineIfExistsAndDeleteItsMedia(vmSpecification));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public String adminDisk(String vmName) {
|
public String adminDisk(String vmName) {
|
||||||
return workingDir + File.separator + vmName + ".vdi";
|
return workingDir + File.separator + vmName + ".vdi";
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,7 +133,6 @@ public class CreateAndInstallVmLiveTest extends BaseVirtualBoxClientLiveTest {
|
||||||
|
|
||||||
machineUtils.applyForMachine(machine.getName(), new LaunchMachineIfNotAlreadyRunning(manager.get(),
|
machineUtils.applyForMachine(machine.getName(), new LaunchMachineIfNotAlreadyRunning(manager.get(),
|
||||||
ExecutionType.GUI, ""));
|
ExecutionType.GUI, ""));
|
||||||
|
|
||||||
sshClientForIMachine = injector.getInstance(IMachineToSshClient.class);
|
sshClientForIMachine = injector.getInstance(IMachineToSshClient.class);
|
||||||
SshClient client = sshClientForIMachine.apply(machine);
|
SshClient client = sshClientForIMachine.apply(machine);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue