mirror of https://github.com/apache/jclouds.git
changed default login to root
This commit is contained in:
parent
d7cbb2da8d
commit
ee64660f45
|
@ -65,7 +65,7 @@ public class CloudServersUSProviderMetadata extends BaseProviderMetadata {
|
||||||
public static Properties defaultProperties() {
|
public static Properties defaultProperties() {
|
||||||
Properties properties = new Properties();
|
Properties properties = new Properties();
|
||||||
properties.setProperty(CREDENTIAL_TYPE, CloudIdentityCredentialTypes.API_KEY_CREDENTIALS);
|
properties.setProperty(CREDENTIAL_TYPE, CloudIdentityCredentialTypes.API_KEY_CREDENTIALS);
|
||||||
properties.setProperty(TEMPLATE, "imageId=DFW/3afe97b2-26dc-49c5-a2cc-a2fc8d80c001");
|
properties.setProperty(TEMPLATE, "imageId=DFW/3afe97b2-26dc-49c5-a2cc-a2fc8d80c001,loginUser=root");
|
||||||
|
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class CloudServersUSTemplateBuilderLiveTest extends BaseTemplateBuilderLi
|
||||||
assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), "11.10");
|
assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), "11.10");
|
||||||
assertEquals(defaultTemplate.getImage().getOperatingSystem().getFamily(), OsFamily.UBUNTU);
|
assertEquals(defaultTemplate.getImage().getOperatingSystem().getFamily(), OsFamily.UBUNTU);
|
||||||
assertEquals(defaultTemplate.getImage().getName(), "Ubuntu 11.10");
|
assertEquals(defaultTemplate.getImage().getName(), "Ubuntu 11.10");
|
||||||
assertEquals(defaultTemplate.getImage().getDefaultCredentials().getUser(), "ubuntu");
|
assertEquals(defaultTemplate.getImage().getDefaultCredentials().getUser(), "root");
|
||||||
assertEquals(defaultTemplate.getLocation().getId(), "DFW");
|
assertEquals(defaultTemplate.getLocation().getId(), "DFW");
|
||||||
assertEquals(defaultTemplate.getImage().getLocation().getId(), "DFW");
|
assertEquals(defaultTemplate.getImage().getLocation().getId(), "DFW");
|
||||||
assertEquals(defaultTemplate.getHardware().getLocation().getId(), "DFW");
|
assertEquals(defaultTemplate.getHardware().getLocation().getId(), "DFW");
|
||||||
|
|
Loading…
Reference in New Issue