mirror of https://github.com/apache/jclouds.git
fixed Bluelock tests
This commit is contained in:
parent
d75589ecc5
commit
1a9d174703
|
@ -21,7 +21,9 @@ package org.jclouds.vcloud.bluelock.compute;
|
|||
import static org.jclouds.compute.util.ComputeServiceUtils.getCores;
|
||||
import static org.testng.Assert.assertEquals;
|
||||
|
||||
import org.jclouds.compute.domain.ExecResponse;
|
||||
import org.jclouds.compute.domain.Image;
|
||||
import org.jclouds.compute.domain.NodeMetadata;
|
||||
import org.jclouds.compute.domain.OsFamily;
|
||||
import org.jclouds.compute.domain.Template;
|
||||
import org.jclouds.compute.domain.TemplateBuilder;
|
||||
|
@ -67,4 +69,8 @@ public class BluelockVCloudDirectorComputeServiceLiveTest extends VCloudComputeS
|
|||
return template;
|
||||
}
|
||||
|
||||
protected void checkResponseEqualsHostname(ExecResponse execResponse, NodeMetadata node1) {
|
||||
// hostname is not completely predictable based on node metadata
|
||||
assert execResponse.getOutput().trim().equals("Ubuntu1004") : execResponse + ": " + node1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,9 @@ package org.jclouds.bluelock.vcloud.vcenterprise.compute;
|
|||
import static org.jclouds.compute.util.ComputeServiceUtils.getCores;
|
||||
import static org.testng.Assert.assertEquals;
|
||||
|
||||
import org.jclouds.compute.domain.ExecResponse;
|
||||
import org.jclouds.compute.domain.Image;
|
||||
import org.jclouds.compute.domain.NodeMetadata;
|
||||
import org.jclouds.compute.domain.OsFamily;
|
||||
import org.jclouds.compute.domain.Template;
|
||||
import org.jclouds.compute.domain.TemplateBuilder;
|
||||
|
@ -67,4 +69,8 @@ public class BluelockVCloudEnterpriseComputeServiceLiveTest extends VCloudComput
|
|||
return template;
|
||||
}
|
||||
|
||||
protected void checkResponseEqualsHostname(ExecResponse execResponse, NodeMetadata node1) {
|
||||
// hostname is not completely predictable based on node metadata
|
||||
assert execResponse.getOutput().trim().equals("Ubuntu1004") : execResponse + ": " + node1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,9 @@ package org.jclouds.bluelock.vcloud.zone01.compute;
|
|||
import static org.jclouds.compute.util.ComputeServiceUtils.getCores;
|
||||
import static org.testng.Assert.assertEquals;
|
||||
|
||||
import org.jclouds.compute.domain.ExecResponse;
|
||||
import org.jclouds.compute.domain.Image;
|
||||
import org.jclouds.compute.domain.NodeMetadata;
|
||||
import org.jclouds.compute.domain.OsFamily;
|
||||
import org.jclouds.compute.domain.Template;
|
||||
import org.jclouds.compute.domain.TemplateBuilder;
|
||||
|
@ -67,4 +69,9 @@ public class BluelockVCloudZone01ComputeServiceLiveTest extends VCloudComputeSer
|
|||
return template;
|
||||
}
|
||||
|
||||
protected void checkResponseEqualsHostname(ExecResponse execResponse, NodeMetadata node1) {
|
||||
// hostname is not completely predictable based on node metadata
|
||||
assert execResponse.getOutput().trim().equals("Ubuntu1004") : execResponse + ": " + node1;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue