updated SL to support new SG datacenter

This commit is contained in:
Adrian Cole 2011-09-27 10:36:00 -07:00
parent 8532358193
commit ea83b1e47d
2 changed files with 4 additions and 2 deletions

View File

@ -61,7 +61,7 @@ public class SoftLayerExperimentLiveTest {
context = new ComputeServiceContextFactory().createContext("softlayer", identity, credential, ImmutableSet
.<Module> of(new Log4JLoggingModule(), new SshjSshClientModule()));
assertEquals(context.getComputeService().listAssignableLocations().size(), 5);
assertEquals(context.getComputeService().listAssignableLocations().size(), 6);
} finally {
if (context != null)

View File

@ -99,6 +99,7 @@ public class ProductPackageClientLiveTest extends BaseSoftLayerClientLiveTest {
builder.add(Datacenter.builder().id(37473).name("wdc01").longName("Washington, DC").build());
builder.add(Datacenter.builder().id(138124).name("dal05").longName("Dallas 5").build());
builder.add(Datacenter.builder().id(168642).name("sjc01").longName("San Jose 1").build());
builder.add(Datacenter.builder().id(224092).name("sng01").longName("Singapore 1").build());
Set<Datacenter> expected = builder.build();
@ -179,6 +180,7 @@ public class ProductPackageClientLiveTest extends BaseSoftLayerClientLiveTest {
private void checkAddress(Address address) {
assert address.getId() >0 : address;
assert address.getCountry() != null : address;
if (!address.getCountry().equals("SG"))
assert address.getState() != null : address;
}