Skip to content

Commit 022f17c

Browse files
committed
enable tests
1 parent 245f5d8 commit 022f17c

File tree

56 files changed

+18
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+18
-19
lines changed

airbyte-integrations/connectors/destination-bigquery/build.gradle

+15-16
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,20 @@ dependencies {
4242
implementation 'io.airbyte.cdk:airbyte-cdk-gcs-destinations:0.46.0'
4343
implementation 'io.airbyte.cdk:airbyte-cdk-typing-deduping:0.46.0'
4444

45-
// TODO these should probably be in integrationTestLegacy
46-
integrationTestImplementation 'io.airbyte.cdk:airbyte-cdk-core:0.46.0'
47-
integrationTestImplementation 'io.airbyte.cdk:airbyte-cdk-datastore-bigquery:0.46.0'
48-
integrationTestImplementation 'io.airbyte.cdk:airbyte-cdk-db-destinations:0.46.0'
49-
integrationTestImplementation 'io.airbyte.cdk:airbyte-cdk-dependencies:0.46.0'
50-
integrationTestImplementation 'io.airbyte.cdk:airbyte-cdk-gcs-destinations:0.46.0'
51-
integrationTestImplementation 'io.airbyte.cdk:airbyte-cdk-typing-deduping:0.46.0'
52-
integrationTestImplementation testFixtures('io.airbyte.cdk:airbyte-cdk-core:0.46.0')
53-
integrationTestImplementation testFixtures('io.airbyte.cdk:airbyte-cdk-datastore-bigquery:0.46.0')
54-
integrationTestImplementation testFixtures('io.airbyte.cdk:airbyte-cdk-db-destinations:0.46.0')
55-
integrationTestImplementation testFixtures('io.airbyte.cdk:airbyte-cdk-dependencies:0.46.0')
56-
integrationTestImplementation testFixtures('io.airbyte.cdk:airbyte-cdk-gcs-destinations:0.46.0')
57-
integrationTestImplementation testFixtures('io.airbyte.cdk:airbyte-cdk-typing-deduping:0.46.0')
45+
integrationTestLegacyImplementation 'io.airbyte.cdk:airbyte-cdk-core:0.46.0'
46+
integrationTestLegacyImplementation 'io.airbyte.cdk:airbyte-cdk-datastore-bigquery:0.46.0'
47+
integrationTestLegacyImplementation 'io.airbyte.cdk:airbyte-cdk-db-destinations:0.46.0'
48+
integrationTestLegacyImplementation 'io.airbyte.cdk:airbyte-cdk-dependencies:0.46.0'
49+
integrationTestLegacyImplementation 'io.airbyte.cdk:airbyte-cdk-gcs-destinations:0.46.0'
50+
integrationTestLegacyImplementation 'io.airbyte.cdk:airbyte-cdk-typing-deduping:0.46.0'
51+
integrationTestLegacyImplementation testFixtures('io.airbyte.cdk:airbyte-cdk-core:0.46.0')
52+
integrationTestLegacyImplementation testFixtures('io.airbyte.cdk:airbyte-cdk-datastore-bigquery:0.46.0')
53+
integrationTestLegacyImplementation testFixtures('io.airbyte.cdk:airbyte-cdk-db-destinations:0.46.0')
54+
integrationTestLegacyImplementation testFixtures('io.airbyte.cdk:airbyte-cdk-dependencies:0.46.0')
55+
integrationTestLegacyImplementation testFixtures('io.airbyte.cdk:airbyte-cdk-gcs-destinations:0.46.0')
56+
integrationTestLegacyImplementation testFixtures('io.airbyte.cdk:airbyte-cdk-typing-deduping:0.46.0')
5857

59-
integrationTestImplementation 'org.mockito:mockito-junit-jupiter:5.11.0'
60-
integrationTestImplementation 'org.assertj:assertj-core:3.25.3'
61-
integrationTestImplementation("com.github.spotbugs:spotbugs-annotations:4.9.0")
58+
integrationTestLegacyImplementation 'org.mockito:mockito-junit-jupiter:5.11.0'
59+
integrationTestLegacyImplementation 'org.assertj:assertj-core:3.25.3'
60+
integrationTestLegacyImplementation("com.github.spotbugs:spotbugs-annotations:4.9.0")
6261
}
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ internal class BigQueryDestinationTest {
635635

636636
// all successful configs use the same project ID
637637
projectId = config.get(BigQueryConsts.CONFIG_PROJECT_ID).asText()
638-
this.config = config
638+
Companion.config = config
639639

640640
// configWithProjectId - config that uses project:dataset notation for rawNamespace
641641
val dataSetWithProjectId = String.format("%s:%s", projectId, datasetId)
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ abstract class AbstractBigQueryTypingDedupingTest : BaseTypingDedupingTest() {
6666
StreamId.concatenateRawTableName(streamNamespace, streamName)
6767
)
6868
)
69-
return BigQuerySqlGeneratorIntegrationTest.Companion.toJsonRecords(result)
69+
return BigQuerySqlGeneratorIntegrationTest.toJsonRecords(result)
7070
}
7171

7272
@Throws(InterruptedException::class)
@@ -80,7 +80,7 @@ abstract class AbstractBigQueryTypingDedupingTest : BaseTypingDedupingTest() {
8080
}
8181
val result =
8282
bq!!.query(QueryJobConfiguration.of("SELECT * FROM $streamNamespace.$streamName"))
83-
return BigQuerySqlGeneratorIntegrationTest.Companion.toJsonRecords(result)
83+
return BigQuerySqlGeneratorIntegrationTest.toJsonRecords(result)
8484
}
8585

8686
override fun teardownStreamAndNamespace(streamNamespace: String?, streamName: String) {

0 commit comments

Comments
 (0)