Skip to content

Commit 1b50fb7

Browse files
disable all passing source-mssql tests
1 parent 0ac21c4 commit 1b50fb7

File tree

13 files changed

+43
-21
lines changed

13 files changed

+43
-21
lines changed

airbyte-cdk/java/airbyte-cdk/db-sources/src/testFixtures/java/io/airbyte/cdk/integrations/debezium/CdcSourceTest.java

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ protected void assertExpectedRecords(final Set<JsonNode> expectedRecords,
325325
assertEquals(expectedRecords, actualData);
326326
}
327327

328-
//@Test
329-
//On the first sync, produce returns records that exist in the database.
328+
// @Test
329+
// On the first sync, produce returns records that exist in the database.
330330
void testExistingData() throws Exception {
331331
final CdcTargetPosition targetPosition = cdcLatestTargetPosition();
332332
final AutoCloseableIterator<AirbyteMessage> read = source().read(config(), getConfiguredCatalog(), null);
@@ -349,8 +349,8 @@ protected void compareTargetPositionFromTheRecordsWithTargetPostionGeneratedBefo
349349
assertEquals(extractPosition(record.getData()), targetPosition);
350350
}
351351

352-
//@Test
353-
//When a record is deleted, produces a deletion record.
352+
// @Test
353+
// When a record is deleted, produces a deletion record.
354354
void testDelete() throws Exception {
355355
final AutoCloseableIterator<AirbyteMessage> read1 = source()
356356
.read(config(), getConfiguredCatalog(), null);
@@ -377,8 +377,8 @@ protected void assertExpectedStateMessagesFromIncrementalSync(final List<Airbyte
377377
assertExpectedStateMessages(stateMessages);
378378
}
379379

380-
//@Test
381-
//When a record is updated, produces an update record.
380+
// @Test
381+
// When a record is updated, produces an update record.
382382
void testUpdate() throws Exception {
383383
final String updatedModel = "Explorer";
384384
final AutoCloseableIterator<AirbyteMessage> read1 = source()
@@ -471,8 +471,9 @@ protected void assertExpectedStateMessagesForRecordsProducedDuringAndAfterSync(f
471471
assertExpectedStateMessages(stateAfterFirstBatch);
472472
}
473473

474-
//@Test
475-
//When both incremental CDC and full refresh are configured for different streams in a sync, the data is replicated as expected.
474+
// @Test
475+
// When both incremental CDC and full refresh are configured for different streams in a sync, the
476+
// data is replicated as expected.
476477
void testCdcAndFullRefreshInSameSync() throws Exception {
477478
final ConfiguredAirbyteCatalog configuredCatalog = Jsons.clone(getConfiguredCatalog());
478479

@@ -544,8 +545,8 @@ void testCdcAndFullRefreshInSameSync() throws Exception {
544545
modelsSchema());
545546
}
546547

547-
//@Test
548-
//When no records exist, no records are returned.
548+
// @Test
549+
// When no records exist, no records are returned.
549550
void testNoData() throws Exception {
550551

551552
deleteCommand(MODELS_STREAM_NAME);
@@ -562,8 +563,8 @@ protected void assertExpectedStateMessagesForNoData(final List<AirbyteStateMessa
562563
assertExpectedStateMessages(stateMessages);
563564
}
564565

565-
//@Test
566-
//When no changes have been made to the database since the previous sync, no records are returned.
566+
// @Test
567+
// When no changes have been made to the database since the previous sync, no records are returned.
567568
void testNoDataOnSecondSync() throws Exception {
568569
final AutoCloseableIterator<AirbyteMessage> read1 = source()
569570
.read(config(), getConfiguredCatalog(), null);
@@ -587,7 +588,7 @@ void testCheck() throws Exception {
587588
assertEquals(status.getStatus(), AirbyteConnectionStatus.Status.SUCCEEDED);
588589
}
589590

590-
//@Test
591+
// @Test
591592
void testDiscover() throws Exception {
592593
final AirbyteCatalog expectedCatalog = expectedCatalogForDiscover();
593594
final AirbyteCatalog actualCatalog = source().discover(config());
@@ -599,7 +600,7 @@ void testDiscover() throws Exception {
599600
.collect(Collectors.toList()));
600601
}
601602

602-
//@Test
603+
// @Test
603604
public void newTableSnapshotTest() throws Exception {
604605
final AutoCloseableIterator<AirbyteMessage> firstBatchIterator = source()
605606
.read(config(), getConfiguredCatalog(), null);

airbyte-integrations/connectors/source-mssql/src/test-integration/java/io/airbyte/integrations/source/mssql/SshKeyMssqlSourceAcceptanceTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
package io.airbyte.integrations.source.mssql;
66

77
import io.airbyte.cdk.integrations.base.ssh.SshTunnel.TunnelMethod;
8+
import org.junit.jupiter.api.Disabled;
89

10+
@Disabled
911
public class SshKeyMssqlSourceAcceptanceTest extends AbstractSshMssqlSourceAcceptanceTest {
1012

1113
@Override

airbyte-integrations/connectors/source-mssql/src/test-integration/java/io/airbyte/integrations/source/mssql/SshPasswordMssqlSourceAcceptanceTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
package io.airbyte.integrations.source.mssql;
66

77
import io.airbyte.cdk.integrations.base.ssh.SshTunnel.TunnelMethod;
8+
import org.junit.jupiter.api.Disabled;
89

10+
@Disabled
911
public class SshPasswordMssqlSourceAcceptanceTest extends AbstractSshMssqlSourceAcceptanceTest {
1012

1113
@Override

airbyte-integrations/connectors/source-mssql/src/test/java/io/airbyte/integrations/source/mssql/CdcMssqlSourceTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public void newTableSnapshotTest() {
198198
}
199199

200200
// Utilize the setup to do test on MssqlDebeziumStateUtil.
201-
//@Test
201+
// @Test
202202
public void testCdcSnapshot() {
203203
MssqlDebeziumStateUtil util = new MssqlDebeziumStateUtil();
204204

@@ -219,7 +219,7 @@ public void testCdcSnapshot() {
219219

220220
// Tests even with consistent inserting operations, CDC snapshot and incremental load will not lose
221221
// data.
222-
//@Test
222+
// @Test
223223
public void testCdcNotLoseDataWithConsistentWriting() throws Exception {
224224
ExecutorService executor = Executors.newFixedThreadPool(10);
225225

@@ -280,7 +280,7 @@ protected String columnClause(final Map<String, String> columnsWithDataType, fin
280280
return columnClause.toString();
281281
}
282282

283-
//@Test
283+
// @Test
284284
void testAssertCdcEnabledInDb() {
285285
// since we enable cdc in setup, assert that we successfully pass this first
286286
assertDoesNotThrow(() -> source().assertCdcEnabledInDb(config(), testDatabase()));
@@ -289,7 +289,7 @@ void testAssertCdcEnabledInDb() {
289289
assertThrows(RuntimeException.class, () -> source().assertCdcEnabledInDb(config(), testDatabase()));
290290
}
291291

292-
//@Test
292+
// @Test
293293
void testAssertCdcSchemaQueryable() {
294294
// correct access granted by setup so assert check passes
295295
assertDoesNotThrow(() -> source().assertCdcSchemaQueryable(config(), testDatabase()));
@@ -311,7 +311,7 @@ void testAssertSqlServerAgentRunning() {
311311

312312
// Ensure the CDC check operations are included when CDC is enabled
313313
// todo: make this better by checking the returned checkOperations from source.getCheckOperations
314-
//@Test
314+
// @Test
315315
void testCdcCheckOperations() throws Exception {
316316
// assertCdcEnabledInDb
317317
testdb.withoutCdc();
@@ -334,7 +334,7 @@ void testCdcCheckOperations() throws Exception {
334334
assertEquals(status.getStatus(), AirbyteConnectionStatus.Status.FAILED);
335335
}
336336

337-
//@Test
337+
// @Test
338338
void testCdcCheckOperationsWithDot() throws Exception {
339339
final String dbNameWithDot = testdb.getDatabaseName().replace("_", ".");
340340
testdb.with("CREATE DATABASE [%s];", dbNameWithDot)
@@ -346,7 +346,7 @@ void testCdcCheckOperationsWithDot() throws Exception {
346346

347347
// todo: check LSN returned is actually the max LSN
348348
// todo: check we fail as expected under certain conditions
349-
//@Test
349+
// @Test
350350
void testGetTargetPosition() {
351351
// check that getTargetPosition returns higher Lsn after inserting new row
352352
testdb.withWaitUntilMaxLsnAvailable();

airbyte-integrations/connectors/source-mssql/src/test/java/io/airbyte/integrations/source/mssql/CdcMssqlSslSourceTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
import java.net.UnknownHostException;
1616
import java.util.Map;
1717
import javax.sql.DataSource;
18+
import org.junit.jupiter.api.Disabled;
1819
import org.junit.jupiter.api.TestInstance;
1920
import org.testcontainers.containers.MSSQLServerContainer;
2021

2122
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
23+
@Disabled
2224
public class CdcMssqlSslSourceTest extends CdcMssqlSourceTest {
2325

2426
@Override

airbyte-integrations/connectors/source-mssql/src/test/java/io/airbyte/integrations/source/mssql/CdcStateCompressionTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@
3939
import java.util.stream.Collectors;
4040
import org.junit.jupiter.api.AfterEach;
4141
import org.junit.jupiter.api.BeforeEach;
42+
import org.junit.jupiter.api.Disabled;
4243
import org.junit.jupiter.api.Test;
4344

45+
@Disabled
4446
public class CdcStateCompressionTest {
4547

4648
static private final String CDC_ROLE_NAME = "cdc_selector";

airbyte-integrations/connectors/source-mssql/src/test/java/io/airbyte/integrations/source/mssql/CloudDeploymentMssqlTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
import io.airbyte.commons.features.EnvVariableFeatureFlags;
1616
import io.airbyte.commons.features.FeatureFlagsWrapper;
1717
import io.airbyte.protocol.models.v0.AirbyteConnectionStatus;
18+
import org.junit.jupiter.api.Disabled;
1819
import org.junit.jupiter.api.Test;
1920
import org.junit.jupiter.api.parallel.Execution;
2021
import org.junit.jupiter.api.parallel.ExecutionMode;
2122

2223
@Execution(ExecutionMode.CONCURRENT)
24+
@Disabled
2325
public class CloudDeploymentMssqlTest {
2426

2527
private MsSQLTestDatabase createTestDatabase(String... containerFactoryMethods) {

airbyte-integrations/connectors/source-mssql/src/test/java/io/airbyte/integrations/source/mssql/MssqlCdcHelperTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
import com.fasterxml.jackson.databind.JsonNode;
1111
import io.airbyte.commons.json.Jsons;
1212
import java.util.Map;
13+
import org.junit.jupiter.api.Disabled;
1314
import org.junit.jupiter.api.Test;
1415

16+
@Disabled
1517
class MssqlCdcHelperTest {
1618

1719
private static final JsonNode LEGACY_NON_CDC_CONFIG = Jsons.jsonNode(Map.of("replication_method", "STANDARD"));

airbyte-integrations/connectors/source-mssql/src/test/java/io/airbyte/integrations/source/mssql/MssqlDataSourceFactoryTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
import io.airbyte.cdk.db.factory.DataSourceFactory;
1212
import java.util.Map;
1313
import javax.sql.DataSource;
14+
import org.junit.jupiter.api.Disabled;
1415
import org.junit.jupiter.api.Test;
1516

17+
@Disabled
1618
public class MssqlDataSourceFactoryTest {
1719

1820
@Test

airbyte-integrations/connectors/source-mssql/src/test/java/io/airbyte/integrations/source/mssql/MssqlDebeziumStateUtilTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
import io.airbyte.integrations.source.mssql.cdc.MssqlDebeziumStateUtil;
1111
import io.airbyte.integrations.source.mssql.cdc.MssqlDebeziumStateUtil.MssqlDebeziumStateAttributes;
1212
import io.debezium.connector.sqlserver.Lsn;
13+
import org.junit.jupiter.api.Disabled;
1314
import org.junit.jupiter.api.Test;
1415

16+
@Disabled
1517
public class MssqlDebeziumStateUtilTest {
1618

1719
private static String DB_NAME = "db_name";

airbyte-integrations/connectors/source-mssql/src/test/java/io/airbyte/integrations/source/mssql/MssqlInitialLoadHandlerTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
import io.airbyte.integrations.source.mssql.MssqlQueryUtils.TableSizeInfo;
1010
import io.airbyte.integrations.source.mssql.initialsync.MssqlInitialLoadHandler;
1111
import io.airbyte.protocol.models.AirbyteStreamNameNamespacePair;
12+
import org.junit.jupiter.api.Disabled;
1213
import org.junit.jupiter.api.Test;
1314

15+
@Disabled
1416
public class MssqlInitialLoadHandlerTest {
1517

1618
private static final long ONE_GB = 1_073_741_824;

airbyte-integrations/connectors/source-mssql/src/test/java/io/airbyte/integrations/source/mssql/MssqlSourceTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import java.util.List;
2626
import org.junit.jupiter.api.*;
2727

28+
@Disabled
2829
class MssqlSourceTest {
2930

3031
private static final String STREAM_NAME = "id_and_name";

airbyte-integrations/connectors/source-mssql/src/test/java/io/airbyte/integrations/source/mssql/MssqlSslSourceTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
import java.util.Map;
1818
import org.junit.jupiter.api.AfterEach;
1919
import org.junit.jupiter.api.BeforeEach;
20+
import org.junit.jupiter.api.Disabled;
2021
import org.junit.jupiter.params.ParameterizedTest;
2122
import org.junit.jupiter.params.provider.EnumSource;
2223
import org.slf4j.Logger;
2324
import org.slf4j.LoggerFactory;
2425

26+
@Disabled
2527
public class MssqlSslSourceTest {
2628

2729
private MsSQLTestDatabase testDb;

0 commit comments

Comments
 (0)