From 1f996b7d4a82215c952c1d3ac38059ecfdbc8842 Mon Sep 17 00:00:00 2001 From: Purujit Saha Date: Sat, 6 Jan 2024 00:15:04 +0000 Subject: [PATCH] Disble some tests to run only the failing test --- src/test/java/net/snowflake/ingest/SimpleIngestIT.java | 1 + .../ingest/streaming/internal/StreamingIngestIT.java | 6 ++---- .../ingest/streaming/internal/StreamingIngestUtilsIT.java | 2 ++ .../ingest/streaming/internal/datatypes/BinaryIT.java | 2 ++ .../ingest/streaming/internal/datatypes/DateTimeIT.java | 2 ++ .../ingest/streaming/internal/datatypes/LogicalTypesIT.java | 3 +++ .../ingest/streaming/internal/datatypes/NullIT.java | 3 +++ .../ingest/streaming/internal/datatypes/NumericTypesIT.java | 3 +++ .../ingest/streaming/internal/datatypes/StringsIT.java | 1 + 9 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/test/java/net/snowflake/ingest/SimpleIngestIT.java b/src/test/java/net/snowflake/ingest/SimpleIngestIT.java index ee73a2046..65798c8c7 100644 --- a/src/test/java/net/snowflake/ingest/SimpleIngestIT.java +++ b/src/test/java/net/snowflake/ingest/SimpleIngestIT.java @@ -32,6 +32,7 @@ import org.junit.Test; /** Example ingest sdk integration test */ +@Ignore public class SimpleIngestIT { private final String TEST_FILE_NAME = "test1.csv"; private final String TEST_FILE_NAME_2 = "test2.csv"; diff --git a/src/test/java/net/snowflake/ingest/streaming/internal/StreamingIngestIT.java b/src/test/java/net/snowflake/ingest/streaming/internal/StreamingIngestIT.java index eadbe81ee..42fedbfed 100644 --- a/src/test/java/net/snowflake/ingest/streaming/internal/StreamingIngestIT.java +++ b/src/test/java/net/snowflake/ingest/streaming/internal/StreamingIngestIT.java @@ -41,14 +41,12 @@ import net.snowflake.ingest.utils.ParameterProvider; import net.snowflake.ingest.utils.SFException; import net.snowflake.ingest.utils.SnowflakeURL; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; +import org.junit.*; import org.mockito.ArgumentMatchers; import org.mockito.Mockito; /** Example streaming ingest sdk integration test */ +@Ignore public class StreamingIngestIT { private static final String TEST_TABLE = "STREAMING_INGEST_TEST_TABLE"; private static final String TEST_DB_PREFIX = "STREAMING_INGEST_TEST_DB"; diff --git a/src/test/java/net/snowflake/ingest/streaming/internal/StreamingIngestUtilsIT.java b/src/test/java/net/snowflake/ingest/streaming/internal/StreamingIngestUtilsIT.java index 4e054c209..3bca660c4 100644 --- a/src/test/java/net/snowflake/ingest/streaming/internal/StreamingIngestUtilsIT.java +++ b/src/test/java/net/snowflake/ingest/streaming/internal/StreamingIngestUtilsIT.java @@ -16,6 +16,7 @@ import net.snowflake.ingest.utils.HttpUtil; import net.snowflake.ingest.utils.SnowflakeURL; import org.junit.Assert; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; @@ -27,6 +28,7 @@ @RunWith(PowerMockRunner.class) @PrepareForTest({JWTManager.class}) @PowerMockIgnore({"javax.net.ssl.*"}) /* Avoid ssl related exception from power mockito*/ +@Ignore public class StreamingIngestUtilsIT { @Test public void testJWTRetries() throws Exception { diff --git a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/BinaryIT.java b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/BinaryIT.java index 2a5023a3a..57bffce89 100644 --- a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/BinaryIT.java +++ b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/BinaryIT.java @@ -1,8 +1,10 @@ package net.snowflake.ingest.streaming.internal.datatypes; import org.bouncycastle.util.encoders.Hex; +import org.junit.Ignore; import org.junit.Test; +@Ignore public class BinaryIT extends AbstractDataTypeTest { @Test diff --git a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/DateTimeIT.java b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/DateTimeIT.java index 9bb8f349a..31ef7ed9f 100644 --- a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/DateTimeIT.java +++ b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/DateTimeIT.java @@ -11,8 +11,10 @@ import java.time.ZonedDateTime; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; +@Ignore public class DateTimeIT extends AbstractDataTypeTest { private static final ZoneId TZ_LOS_ANGELES = ZoneId.of("America/Los_Angeles"); diff --git a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/LogicalTypesIT.java b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/LogicalTypesIT.java index 6bc769a94..271a657f9 100644 --- a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/LogicalTypesIT.java +++ b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/LogicalTypesIT.java @@ -2,8 +2,11 @@ import java.math.BigDecimal; import java.math.BigInteger; + +import org.junit.Ignore; import org.junit.Test; +@Ignore public class LogicalTypesIT extends AbstractDataTypeTest { @Test diff --git a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/NullIT.java b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/NullIT.java index fa01eebf0..e612223a2 100644 --- a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/NullIT.java +++ b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/NullIT.java @@ -1,8 +1,11 @@ package net.snowflake.ingest.streaming.internal.datatypes; import java.util.Arrays; + +import org.junit.Ignore; import org.junit.Test; +@Ignore public class NullIT extends AbstractDataTypeTest { @Test diff --git a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/NumericTypesIT.java b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/NumericTypesIT.java index 4e6ade712..30a8d5627 100644 --- a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/NumericTypesIT.java +++ b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/NumericTypesIT.java @@ -2,8 +2,11 @@ import java.math.BigDecimal; import java.math.BigInteger; + +import org.junit.Ignore; import org.junit.Test; +@Ignore public class NumericTypesIT extends AbstractDataTypeTest { @Test diff --git a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/StringsIT.java b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/StringsIT.java index 63dc515f5..faccc7120 100644 --- a/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/StringsIT.java +++ b/src/test/java/net/snowflake/ingest/streaming/internal/datatypes/StringsIT.java @@ -12,6 +12,7 @@ import org.junit.Ignore; import org.junit.Test; +@Ignore public class StringsIT extends AbstractDataTypeTest { private static final int MB_16 = 16 * 1024 * 1024;