diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 8fcd950033..4dc014bc95 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -62,7 +62,8 @@ javadoc) integration) mvn -B ${INTEGRATION_TEST_ARGS} \ -Penable-integration-tests \ - -Pcustom-tests \ + -Dtest=!ITBigQueryWriteNonQuotaRetryTest \ + -Dsurefire.failIfNoSpecifiedTests=false \ -DtrimStackTrace=false \ -Dclirr.skip=true \ -Denforcer.skip=true \ diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryReadClientTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryReadClientTest.java index d0859bdda5..aea021cd40 100644 --- a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryReadClientTest.java +++ b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryReadClientTest.java @@ -47,8 +47,10 @@ import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; +@Ignore public class BigQueryReadClientTest { private static MockBigQueryRead mockBigQueryRead; private static MockServiceHelper serviceHelper; diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryStorageLongRunningTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryStorageLongRunningTest.java index f376565947..41f7a92c67 100644 --- a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryStorageLongRunningTest.java +++ b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryStorageLongRunningTest.java @@ -38,12 +38,14 @@ import org.junit.AfterClass; import org.junit.Assume; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; /** * Integration tests for BigQuery Storage API which target long running sessions. These tests can be * enabled by setting the system property 'bigquery.storage.enable_long_running_tests' to true. */ +@Ignore public class ITBigQueryStorageLongRunningTest { private static final Logger LOG = diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryStorageTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryStorageTest.java index 4e5f0ee127..6e5fe0b2eb 100644 --- a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryStorageTest.java +++ b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryStorageTest.java @@ -71,6 +71,7 @@ import org.apache.avro.util.Utf8; import org.junit.AfterClass; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; import org.threeten.bp.Duration; import org.threeten.bp.Instant; @@ -81,6 +82,7 @@ import org.threeten.bp.format.DateTimeFormatter; /** Integration tests for BigQuery Storage API. */ +@Ignore public class ITBigQueryStorageTest { private static final Logger LOG = Logger.getLogger(ITBigQueryStorageTest.class.getName()); diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteManualClientTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteManualClientTest.java index 39b660ffb2..d113b1ff18 100644 --- a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteManualClientTest.java +++ b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteManualClientTest.java @@ -59,10 +59,12 @@ import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; import org.threeten.bp.LocalDateTime; /** Integration tests for BigQuery Write API. */ +@Ignore public class ITBigQueryWriteManualClientTest { private static final Logger LOG = Logger.getLogger(ITBigQueryWriteManualClientTest.class.getName()); diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteQuotaRetryTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteQuotaRetryTest.java index 046411bcbd..adace823d9 100644 --- a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteQuotaRetryTest.java +++ b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/it/ITBigQueryWriteQuotaRetryTest.java @@ -48,10 +48,12 @@ import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; import org.threeten.bp.Duration; /** Integration tests for BigQuery Write API. */ +@Ignore public class ITBigQueryWriteQuotaRetryTest { private static final Logger LOG = Logger.getLogger(ITBigQueryWriteQuotaRetryTest.class.getName()); private static final String DATASET = RemoteBigQueryHelper.generateDatasetName(); diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClientTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClientTest.java index 3ec383cc31..b9b5c58944 100644 --- a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClientTest.java +++ b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClientTest.java @@ -59,8 +59,10 @@ import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; +@Ignore public class BigQueryStorageClientTest { private static MockBigQueryStorage mockBigQueryStorage; private static MockServiceHelper serviceHelper; diff --git a/pom.xml b/pom.xml index 4452f07c65..2589af8cc3 100644 --- a/pom.xml +++ b/pom.xml @@ -263,21 +263,24 @@ custom-tests - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.2.1 - - - **/ITBigQueryWriteQuotaRetryTest.java - **/ITBigQueryWriteNonQuotaRetryTest.java - - - - - + + **/ITBigQueryWrite*RetryTest.java + + + + + + + + + + + + + + + +