stabilized cloudfiles tests

This commit is contained in:
Adrian Cole 2011-07-28 22:15:06 -07:00
parent 79a2646415
commit a802c2adf5
3 changed files with 14 additions and 3 deletions

View File

@ -18,13 +18,13 @@
*/
package org.jclouds.cloudfiles.blobstore.integration;
import org.jclouds.openstack.swift.blobstore.integration.SwiftContainerLiveTest;
import org.jclouds.blobstore.integration.internal.BaseContainerLiveTest;
import org.testng.annotations.Test;
/**
* @author Adrian Cole
*/
@Test(groups = { "live" })
public class CloudFilesContainerLiveTest extends SwiftContainerLiveTest {
public class CloudFilesContainerLiveTest extends BaseContainerLiveTest {
}

View File

@ -18,8 +18,11 @@
*/
package org.jclouds.rackspace.cloudfiles;
import static org.testng.Assert.assertEquals;
import org.jclouds.cloudfiles.CloudFilesClient;
import org.jclouds.openstack.swift.CommonSwiftClientLiveTest;
import org.jclouds.openstack.swift.domain.SwiftObject;
import org.testng.annotations.Test;
/**
@ -27,7 +30,7 @@ import org.testng.annotations.Test;
*
* @author Adrian Cole
*/
@Test(groups = "live", sequential = true, testName = "CloudFilesUKClientLiveTest")
@Test(groups = "live", singleThreaded = true, testName = "CloudFilesUKClientLiveTest")
public class CloudFilesUKClientLiveTest extends CommonSwiftClientLiveTest<CloudFilesClient> {
// NOTE cloudfilesuk doesn't have cdn
@ -35,4 +38,11 @@ public class CloudFilesUKClientLiveTest extends CommonSwiftClientLiveTest<CloudF
public CloudFilesClient getApi() {
return (CloudFilesClient) context.getProviderSpecificContext().getApi();
}
@Override
protected void testGetObjectContentType(SwiftObject getBlob) {
//lovely new bug.. should be text/plain
assertEquals(getBlob.getInfo().getContentType(), "application/x-www-form-urlencoded");
}
}

View File

@ -103,6 +103,7 @@
<goal>test</goal>
</goals>
<configuration>
<threadCount>1</threadCount>
<systemProperties>
<property>
<name>test.cloudservers-us.endpoint</name>