Issue 487: gogrid and elasticstack do not have predicatable hostnames

This commit is contained in:
Adrian Cole 2011-07-23 10:19:51 +10:00
parent 919093ea9b
commit 5994d14841
2 changed files with 8 additions and 4 deletions

View File

@ -44,9 +44,7 @@ public class ElasticStackComputeServiceLiveTest extends BaseComputeServiceLiveTe
}
protected void checkResponseEqualsHostname(ExecResponse execResponse, NodeMetadata node1) {
assert execResponse.getOutput().trim().equals("ubuntu");// hostname is not
// predicatble
// based on node
// metadata
// hostname is not predictable based on node metadata
assert execResponse.getOutput().trim().equals("ubuntu");
}
}

View File

@ -19,6 +19,8 @@
package org.jclouds.gogrid.compute;
import org.jclouds.compute.BaseComputeServiceLiveTest;
import org.jclouds.compute.domain.ExecResponse;
import org.jclouds.compute.domain.NodeMetadata;
import org.jclouds.ssh.jsch.config.JschSshClientModule;
import org.testng.annotations.Test;
@ -37,4 +39,8 @@ public class GoGridComputeServiceLiveTest extends BaseComputeServiceLiveTest {
return new JschSshClientModule();
}
protected void checkResponseEqualsHostname(ExecResponse execResponse, NodeMetadata node1) {
// hostname is not completely predictable based on node metadata
assert execResponse.getOutput().trim().startsWith(node1.getName());
}
}