mirror of https://github.com/apache/jclouds.git
corrected metadata for ninefold-compute
This commit is contained in:
parent
349f602931
commit
e04ec8f51b
|
@ -62,7 +62,7 @@ public class NinefoldComputeProviderMetadata extends BaseProviderMetadata {
|
|||
*/
|
||||
@Override
|
||||
public String getIdentityName() {
|
||||
return "TODO";
|
||||
return "API Key";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,7 +70,7 @@ public class NinefoldComputeProviderMetadata extends BaseProviderMetadata {
|
|||
*/
|
||||
@Override
|
||||
public String getCredentialName() {
|
||||
return "TODO";
|
||||
return "Secret Key";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -78,7 +78,7 @@ public class NinefoldComputeProviderMetadata extends BaseProviderMetadata {
|
|||
*/
|
||||
@Override
|
||||
public URI getHomepage() {
|
||||
return URI.create("TODO");
|
||||
return URI.create("http://ninefold.com/virtual-servers/");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -86,7 +86,7 @@ public class NinefoldComputeProviderMetadata extends BaseProviderMetadata {
|
|||
*/
|
||||
@Override
|
||||
public URI getConsole() {
|
||||
return URI.create("TODO");
|
||||
return URI.create("https://ninefold.com/portal/portal/login");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -94,7 +94,7 @@ public class NinefoldComputeProviderMetadata extends BaseProviderMetadata {
|
|||
*/
|
||||
@Override
|
||||
public URI getApiDocumentation() {
|
||||
return URI.create("TODO");
|
||||
return URI.create("https://ninefold.com/support/display/SPT/Cloud+Compute");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -52,14 +52,16 @@ public class NinefoldComputeTemplateBuilderLiveTest extends BaseTemplateBuilderL
|
|||
@Override
|
||||
public boolean apply(OsFamilyVersion64Bit input) {
|
||||
switch (input.family) {
|
||||
case UBUNTU:
|
||||
return (input.version.equals("") || input.version.equals("10.10")) && input.is64Bit;
|
||||
case DEBIAN:
|
||||
return (input.version.equals("") || input.version.equals("6.0")) && input.is64Bit;
|
||||
case WINDOWS:
|
||||
return (input.version.equals("") || input.version.equals("2008 R2")) && input.is64Bit;
|
||||
default:
|
||||
return false;
|
||||
case UBUNTU:
|
||||
return input.version.equals("") || input.version.equals("10.04");
|
||||
case SUSE:
|
||||
return (input.version.equals("") || input.version.equals("11")) && input.is64Bit;
|
||||
case CENTOS:
|
||||
return (input.version.equals("") || input.version.equals("5.5")) && input.is64Bit;
|
||||
case WINDOWS:
|
||||
return input.version.equals("") || (input.version.equals("2008") && !input.is64Bit);
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -72,7 +74,7 @@ public class NinefoldComputeTemplateBuilderLiveTest extends BaseTemplateBuilderL
|
|||
assertEquals(defaultTemplate.getImage().getOperatingSystem().is64Bit(), true);
|
||||
assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), "10.04");
|
||||
assertEquals(defaultTemplate.getImage().getOperatingSystem().getFamily(), OsFamily.UBUNTU);
|
||||
assertEquals(defaultTemplate.getLocation().getId(), "ninefold-compute");
|
||||
assertEquals(defaultTemplate.getLocation().getId(), "1");
|
||||
assertEquals(getCores(defaultTemplate.getHardware()), 1.0d);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue