mirror of https://github.com/apache/jclouds.git
Annotate test methods as singleThreaded
Newer versions of testng deprecate sequential.
This commit is contained in:
parent
16926b0bb7
commit
65e16c97f5
|
@ -29,7 +29,7 @@ import com.google.common.collect.ImmutableList;
|
|||
/**
|
||||
* Tests behavior of {@code ChefUtils}
|
||||
*/
|
||||
@Test(groups = { "unit" }, sequential = true)
|
||||
@Test(groups = { "unit" }, singleThreaded = true)
|
||||
public class ChefUtilsTest {
|
||||
public static long millis = 1280251180727L;
|
||||
public static String millisString = "1280251180727";
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.testng.annotations.Test;
|
|||
/**
|
||||
* Tests behavior of {@code ByteArrayToMacAddress}
|
||||
*/
|
||||
@Test(groups = { "unit" }, sequential = true)
|
||||
@Test(groups = { "unit" }, singleThreaded = true)
|
||||
public class ByteArrayToMacAddressTest {
|
||||
|
||||
public void test() {
|
||||
|
|
|
@ -67,7 +67,7 @@ import com.google.common.util.concurrent.Uninterruptibles;
|
|||
/**
|
||||
* Test class for {@link FilesystemStorageStrategyImpl } class
|
||||
*/
|
||||
@Test(groups = "unit", testName = "filesystem.FilesystemBlobUtilsTest", sequential = true)
|
||||
@Test(groups = "unit", testName = "filesystem.FilesystemBlobUtilsTest", singleThreaded = true)
|
||||
public class FilesystemStorageStrategyImplTest {
|
||||
private static final String CONTAINER_NAME = "funambol-test";
|
||||
private static final String TARGET_CONTAINER_NAME = TestUtils.TARGET_BASE_DIR + CONTAINER_NAME;
|
||||
|
|
|
@ -51,7 +51,7 @@ import com.google.inject.Injector;
|
|||
* Tests parsing of S3 responses
|
||||
*/
|
||||
// NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
|
||||
@Test(groups = "performance", sequential = true, timeOut = 2 * 60 * 1000, testName = "S3ParserTest")
|
||||
@Test(groups = "performance", singleThreaded = true, timeOut = 2 * 60 * 1000, testName = "S3ParserTest")
|
||||
public class S3ParserTest extends PerformanceTest {
|
||||
Injector injector = null;
|
||||
ParseSax.Factory factory;
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.testng.annotations.Test;
|
|||
|
||||
import com.google.common.net.HttpHeaders;
|
||||
|
||||
@Test(sequential = true)
|
||||
@Test(singleThreaded = true)
|
||||
public class ParseSystemAndUserMetadataFromHeadersTest {
|
||||
|
||||
private ParseSystemAndUserMetadataFromHeaders parser;
|
||||
|
|
|
@ -35,7 +35,7 @@ import com.google.common.io.ByteSource;
|
|||
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = "unit", sequential = true)
|
||||
@Test(groups = "unit", singleThreaded = true)
|
||||
public class PemsTest {
|
||||
|
||||
public static final String PRIVATE_KEY = "-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEAyb2ZJJqGm0KKR+8nfQJNsSd+F9tXNMV7CfOcW6jsqs8EZgiV\nR09hD1IYOj4YqM0qJONlgyg4xRWewdSG7QTPj1lJpVAida9sXy2+kzyagZA1Am0O\nZcbqb5hoeIDgcX+eDa79s0u0DomjcfO9EKhvHLBz+zM+3QqPRkPV8nYTbfs+HjVz\nzOU6D1B0XR3+IPZZl2AnWs2d0qhnStHcDUvnRVQ0P482YwN9VgceOZtpPz0DCKEJ\n5Tx5STub8k0/zt/VAMHQafLSuQMLd2s4ZLuOZptN//uAsTmxireqd37z+8ZTdBbJ\n8LEpJ+iCXuSfm5aUh7iw6oxvToY2AL53+jK2UQIDAQABAoIBAQDA88B3i/xWn0vX\nBVxFamCYoecuNjGwXXkSyZew616A+EOCu47bh4aTurdFbYL0YFaAtaWvzlaN2eHg\nDb+HDuTefE29+WkcGk6SshPmiz5T0XOCAICWw6wSVDkHmGwS4jZvbAFm7W8nwGk9\nYhxgxFiRngswJZFopOLoF5WXs2td8guIYNslMpo7tu50iFnBHwKO2ZsPAk8t9nnS\nxlDavKruymEmqHCr3+dtio5eaenJcp3fjoXBQOKUk3ipII29XRB8NqeCVV/7Kxwq\nckqOBEbRwBclckyIbD+RiAgKvOelORjEiE9R42vuqvxRA6k9kd9o7utlX0AUtpEn\n3gZc6LepAoGBAP9ael5Y75+sK2JJUNOOhO8ae45cdsilp2yI0X+UBaSuQs2+dyPp\nkpEHAxd4pmmSvn/8c9TlEZhr+qYbABXVPlDncxpIuw2Ajbk7s/S4XaSKsRqpXL57\nzj/QOqLkRk8+OVV9q6lMeQNqLtEj1u6JPviX70Ro+FQtRttNOYbfdP/fAoGBAMpA\nXjR5woV5sUb+REg9vEuYo8RSyOarxqKFCIXVUNsLOx+22+AK4+CQpbueWN7jotrl\nYD6uT6svWi3AAC7kiY0UI/fjVPRCUi8tVoQUE0TaU5VLITaYOB+W/bBaDE4M9560\n1NuDWO90baA5dfU44iuzva02rGJXK9+nS3o8nk/PAoGBALOL6djnDe4mwAaG6Jco\ncd4xr8jkyPzCRZuyBCSBbwphIUXLc7hDprPky064ncJD1UDmwIdkXd/fpMkg2QmA\n/CUk6LEFjMisqHojOaCL9gQZJPhLN5QUN2x1PJWGjs1vQh8Tkx0iUUCOa8bQPXNR\n+34OTsW6TUna4CSZAycLfhffAoGBAIggVsefBCvuQkF0NeUhmDCRZfhnd8y55RHR\n1HCvqKIlpv+rhcX/zmyBLuteopYyRJRsOiE2FW00i8+rIPRu4Z3Q5nybx7w3PzV9\noHN5R5baE9OyI4KpZWztpYYitZF67NcnAvVULHHOvVJQGnKYfLHJYmrJF7GA1ojM\nAuMdFbjFAoGAPxUhxwFy8gaqBahKUEZn4F81HFP5ihGhkT4QL6AFPO2e+JhIGjuR\n27+85hcFqQ+HHVtFsm81b/a+R7P4UuCRgc8eCjxQMoJ1Xl4n7VbjPbHMnIN0Ryvd\nO4ZpWDWYnCO021JTOUUOJ4J/y0416Bvkw0z59y7sNX7wDBBHHbK/XCc=\n-----END RSA PRIVATE KEY-----\n";
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.testng.annotations.Test;
|
|||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
|
||||
@Test(groups = "unit", sequential = true)
|
||||
@Test(groups = "unit", singleThreaded = true)
|
||||
public class JoinOnCommaTest {
|
||||
@Test
|
||||
public void testIterableLong() {
|
||||
|
|
|
@ -36,7 +36,7 @@ import org.jclouds.io.ByteStreams2;
|
|||
import org.jclouds.logging.Logger;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = "live", sequential = true)
|
||||
@Test(groups = "live", singleThreaded = true)
|
||||
public class WireLiveTest {
|
||||
|
||||
private static final String sysHttpStreamUrl = System.getProperty("jclouds.wire.httpstream.url");
|
||||
|
|
|
@ -29,7 +29,7 @@ import java.io.InputStream;
|
|||
import static org.testng.Assert.assertEquals;
|
||||
import static org.testng.Assert.assertNotEquals;
|
||||
|
||||
@Test(groups = "unit", sequential = true)
|
||||
@Test(groups = "unit", singleThreaded = true)
|
||||
public class WireTest {
|
||||
|
||||
static class BufferLogger implements Logger {
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.jclouds.elastichosts.compute;
|
|||
import org.jclouds.elasticstack.compute.ElasticStackComputeServiceLiveTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = "live", sequential = true, testName = "ElasticHostsPeer1LosAngelesComputeServiceLiveTest")
|
||||
@Test(groups = "live", singleThreaded = true, testName = "ElasticHostsPeer1LosAngelesComputeServiceLiveTest")
|
||||
public class ElasticHostsPeer1LosAngelesComputeServiceLiveTest extends ElasticStackComputeServiceLiveTest {
|
||||
|
||||
public ElasticHostsPeer1LosAngelesComputeServiceLiveTest() {
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.jclouds.elastichosts.compute;
|
|||
import org.jclouds.elasticstack.compute.ElasticStackComputeServiceLiveTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = "live", sequential = true, testName = "ElasticHostsPeer1LondonComputeServiceLiveTest")
|
||||
@Test(groups = "live", singleThreaded = true, testName = "ElasticHostsPeer1LondonComputeServiceLiveTest")
|
||||
public class ElasticHostsPeer1LondonComputeServiceLiveTest extends ElasticStackComputeServiceLiveTest {
|
||||
|
||||
public ElasticHostsPeer1LondonComputeServiceLiveTest() {
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.jclouds.elastichosts.compute;
|
|||
import org.jclouds.elasticstack.compute.ElasticStackComputeServiceLiveTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = "live", sequential = true, testName = "ElasticHostsPeer1SanAntonioComputeServiceLiveTest")
|
||||
@Test(groups = "live", singleThreaded = true, testName = "ElasticHostsPeer1SanAntonioComputeServiceLiveTest")
|
||||
public class ElasticHostsPeer1SanAntonioComputeServiceLiveTest extends ElasticStackComputeServiceLiveTest {
|
||||
|
||||
public ElasticHostsPeer1SanAntonioComputeServiceLiveTest() {
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.jclouds.elastichosts.compute;
|
|||
import org.jclouds.elasticstack.compute.ElasticStackComputeServiceLiveTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = "live", sequential = true, testName = "ElasticHostsPeer1TorontoComputeServiceLiveTest")
|
||||
@Test(groups = "live", singleThreaded = true, testName = "ElasticHostsPeer1TorontoComputeServiceLiveTest")
|
||||
public class ElasticHostsPeer1TorontoComputeServiceLiveTest extends ElasticStackComputeServiceLiveTest {
|
||||
|
||||
public ElasticHostsPeer1TorontoComputeServiceLiveTest() {
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.jclouds.go2cloud.compute;
|
|||
import org.jclouds.elasticstack.compute.ElasticStackComputeServiceLiveTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = "live", sequential = true, testName = "Go2CloudJohannesburg1ComputeServiceLiveTest")
|
||||
@Test(groups = "live", singleThreaded = true, testName = "Go2CloudJohannesburg1ComputeServiceLiveTest")
|
||||
public class Go2CloudJohannesburg1ComputeServiceLiveTest extends ElasticStackComputeServiceLiveTest {
|
||||
|
||||
public Go2CloudJohannesburg1ComputeServiceLiveTest() {
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.jclouds.openhosting.compute;
|
|||
import org.jclouds.elasticstack.compute.ElasticStackComputeServiceLiveTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = "live", sequential = true, testName = "OpenHostingEast1ComputeServiceLiveTest")
|
||||
@Test(groups = "live", singleThreaded = true, testName = "OpenHostingEast1ComputeServiceLiveTest")
|
||||
public class OpenHostingEast1ComputeServiceLiveTest extends ElasticStackComputeServiceLiveTest {
|
||||
|
||||
public OpenHostingEast1ComputeServiceLiveTest() {
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.jclouds.serverlove.compute;
|
|||
import org.jclouds.elasticstack.compute.ElasticStackComputeServiceLiveTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = "live", sequential = true, testName = "ServerloveManchesterComputeServiceLiveTest")
|
||||
@Test(groups = "live", singleThreaded = true, testName = "ServerloveManchesterComputeServiceLiveTest")
|
||||
public class ServerloveManchesterComputeServiceLiveTest extends ElasticStackComputeServiceLiveTest {
|
||||
|
||||
public ServerloveManchesterComputeServiceLiveTest() {
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.jclouds.skalicloud.compute;
|
|||
import org.jclouds.elasticstack.compute.ElasticStackComputeServiceLiveTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = "live", sequential = true, testName = "SkaliCloudMalaysiaComputeServiceLiveTest")
|
||||
@Test(groups = "live", singleThreaded = true, testName = "SkaliCloudMalaysiaComputeServiceLiveTest")
|
||||
public class SkaliCloudMalaysiaComputeServiceLiveTest extends ElasticStackComputeServiceLiveTest {
|
||||
|
||||
public SkaliCloudMalaysiaComputeServiceLiveTest() {
|
||||
|
|
Loading…
Reference in New Issue