Fixing TerremarkClientLiveTest problem caused by extra 'provider' field in test class

This commit is contained in:
Adam Lowe 2011-12-15 22:03:01 +00:00
parent 5cd866d384
commit 3df4ec3280
2 changed files with 11 additions and 13 deletions

View File

@ -107,6 +107,10 @@ public abstract class TerremarkClientLiveTest extends BaseVersionedServiceLiveTe
protected VDC vdc; protected VDC vdc;
public static final String PREFIX = System.getProperty("user.name") + "-terremark"; public static final String PREFIX = System.getProperty("user.name") + "-terremark";
public TerremarkClientLiveTest() {
this.provider = "trmk-vcloudexpress";
}
@Test @Test
public void testKeysList() throws Exception { public void testKeysList() throws Exception {
for (Org org : orgs) { for (Org org : orgs) {
@ -456,12 +460,6 @@ public abstract class TerremarkClientLiveTest extends BaseVersionedServiceLiveTe
} }
protected String provider = "trmk-vcloudexpress";
protected String identity;
protected String credential;
protected String endpoint;
protected String apiversion;
@BeforeGroups(groups = { "live" }) @BeforeGroups(groups = { "live" })
public void setupClient() { public void setupClient() {
setupCredentials(); setupCredentials();

View File

@ -44,6 +44,13 @@ import org.testng.annotations.Test;
*/ */
@Test(groups = "live", enabled = true, singleThreaded = true, testName = "TerremarkECloudClientLiveTest") @Test(groups = "live", enabled = true, singleThreaded = true, testName = "TerremarkECloudClientLiveTest")
public class TerremarkECloudClientLiveTest extends TerremarkClientLiveTest { public class TerremarkECloudClientLiveTest extends TerremarkClientLiveTest {
public TerremarkECloudClientLiveTest() {
this.provider = "trmk-ecloud";
this.itemName = "Ubuntu Server 10.04 x64";
this.expectedOs = "Ubuntu Linux (64-bit)";
}
@Override @Override
protected Properties setupProperties() { protected Properties setupProperties() {
Properties props = super.setupProperties(); Properties props = super.setupProperties();
@ -52,13 +59,6 @@ public class TerremarkECloudClientLiveTest extends TerremarkClientLiveTest {
return props; return props;
} }
@BeforeClass
void setProvider() {
this.provider = "trmk-ecloud";
this.itemName = "Ubuntu Server 10.04 x64";
expectedOs = "Ubuntu Linux (64-bit)";
}
@Override @Override
protected InstantiateVAppTemplateOptions createInstantiateOptions() { protected InstantiateVAppTemplateOptions createInstantiateOptions() {
return processorCount(1).memory(512); return processorCount(1).memory(512);