slight fixes for softlayer tests

This commit is contained in:
Adrian Cole 2012-01-10 08:50:54 -08:00
parent cecff8f681
commit 467381bd51
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ public class SoftLayerComputeServiceAdapterLiveTest extends BaseSoftLayerClientL
guest = adapter.createNodeWithGroupEncodedIntoName(group, name, template); guest = adapter.createNodeWithGroupEncodedIntoName(group, name, template);
assertEquals(guest.getNode().getHostname(), name); assertEquals(guest.getNode().getHostname(), name);
assertEquals(guest.getNodeId(), guest.getNode().getId()); assertEquals(guest.getNodeId(), guest.getNode().getId() + "");
assertEquals(guest.getNode().getDomain(), template.getOptions().as(SoftLayerTemplateOptions.class) assertEquals(guest.getNode().getDomain(), template.getOptions().as(SoftLayerTemplateOptions.class)
.getDomainName()); .getDomainName());
assert InetAddresses.isInetAddress(guest.getNode().getPrimaryBackendIpAddress()) : guest; assert InetAddresses.isInetAddress(guest.getNode().getPrimaryBackendIpAddress()) : guest;

View File

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