mirror of https://github.com/apache/jclouds.git
updated cloudsigma tests
This commit is contained in:
parent
bff49f8311
commit
3d2504e1e4
|
@ -25,12 +25,13 @@ import org.jclouds.sshj.config.SshjSshClientModule;
|
|||
import org.testng.annotations.Test;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.inject.Module;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "live")
|
||||
@Test(groups = "live", testName = "CloudSigmaComputeServiceLiveTest")
|
||||
public class CloudSigmaComputeServiceLiveTest extends BaseComputeServiceLiveTest {
|
||||
|
||||
public CloudSigmaComputeServiceLiveTest() {
|
||||
|
@ -49,6 +50,13 @@ public class CloudSigmaComputeServiceLiveTest extends BaseComputeServiceLiveTest
|
|||
"node userMetadata did not match %s %s", userMetadata, node);
|
||||
}
|
||||
|
||||
// cloudsigma does not support tags
|
||||
@Override
|
||||
protected void checkTagsInNodeEquals(final NodeMetadata node, final ImmutableSet<String> tags) {
|
||||
assert node.getTags().equals(ImmutableSet.<String> of()) : String.format("node tags did not match %s %s", tags,
|
||||
node);
|
||||
}
|
||||
|
||||
protected void checkResponseEqualsHostname(ExecResponse execResponse, NodeMetadata node1) {
|
||||
// hostname is not predictable based on node metadata
|
||||
assert execResponse.getOutput().trim().equals("ubuntu");
|
||||
|
|
|
@ -52,20 +52,19 @@ public class CloudSigmaLasVegasTemplateBuilderLiveTest extends BaseTemplateBuild
|
|||
public boolean apply(OsFamilyVersion64Bit input) {
|
||||
switch (input.family) {
|
||||
case UBUNTU:
|
||||
return (input.version.equals("11.04") && input.is64Bit)
|
||||
return (ImmutableSet.of("11.04", "10.10").contains(input.version) && input.is64Bit)
|
||||
|| (input.version.equals("11.10") && !input.is64Bit) || input.version.equals("")
|
||||
|| input.version.equals("10.04");
|
||||
|| input.version.equals("10.04") || input.version.equals("12.04");
|
||||
case SOLARIS:
|
||||
return input.version.equals("") && input.is64Bit;
|
||||
return (input.version.equals("") || input.version.equals("10")) && input.is64Bit;
|
||||
case DEBIAN:
|
||||
return false;
|
||||
return input.version.equals("") || (input.version.equals("5.0") && !input.is64Bit)
|
||||
|| (input.version.equals("6.0") && input.is64Bit);
|
||||
case CENTOS:
|
||||
return (input.version.equals("") || input.version.equals("5.7") || input.version.equals("6.0"))
|
||||
&& input.is64Bit;
|
||||
return (input.version.equals("") || input.version.equals("5.5") || input.version.equals("5.7") || input.version
|
||||
.equals("6.0")) && input.is64Bit;
|
||||
case WINDOWS:
|
||||
return (input.version.equals("2008 R2") || (input.version.equals("2003") || input.version.equals(""))
|
||||
&& input.is64Bit)
|
||||
|| (input.version.equals("") && !input.is64Bit);
|
||||
return input.version.equals("2008") || input.version.equals("2003") || input.version.equals("");
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue