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() {
|
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",
|
System.setProperty("test." + provider + ".identity", "administrator");
|
||||||
defaultVBoxProperties.getProperty(Constants.PROPERTY_IDENTITY));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@BeforeClass(groups = "live")
|
@BeforeClass(groups = "live")
|
||||||
|
|
Loading…
Reference in New Issue