mirror of https://github.com/apache/jclouds.git
added mock identity prop to prevent NPE in some cases
This commit is contained in:
parent
d742d53f6b
commit
68290ba2b2
|
@ -119,10 +119,8 @@ public class BaseVirtualBoxClientLiveTest extends BaseVersionedServiceLiveTest {
|
|||
}
|
||||
|
||||
protected void ensureIdentityPropertyIsSpecifiedOrTakeFromDefaults() {
|
||||
Properties defaultVBoxProperties = new VirtualBoxPropertiesBuilder().build();
|
||||
if (!System.getProperties().containsKey("test." + provider + ".identity"))
|
||||
System.setProperty("test." + provider + ".identity",
|
||||
defaultVBoxProperties.getProperty(Constants.PROPERTY_IDENTITY));
|
||||
System.setProperty("test." + provider + ".identity", "administrator");
|
||||
}
|
||||
|
||||
@BeforeClass(groups = "live")
|
||||
|
|
Loading…
Reference in New Issue