Bulk load CDK: test runner not micronaut, fix concurrent execution (#47006)
This commit is contained in:
@@ -152,10 +152,6 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
|
||||
resources {
|
||||
srcDir 'src/test-integration/resources'
|
||||
}
|
||||
resources {
|
||||
srcDir '.'
|
||||
include 'metadata.yaml'
|
||||
}
|
||||
}
|
||||
// This source set should only be used for tests based on the old CDK's test classes,
|
||||
// in particular DestinationAcceptanceTest / BaseTypingDedupingTest.
|
||||
@@ -178,6 +174,11 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
|
||||
testClassesDirs = project.sourceSets.integrationTest.output.classesDirs
|
||||
classpath = project.sourceSets.integrationTest.runtimeClasspath
|
||||
useJUnitPlatform()
|
||||
|
||||
jvmArgs = project.test.jvmArgs
|
||||
systemProperties = project.test.systemProperties
|
||||
maxParallelForks = project.test.maxParallelForks
|
||||
maxHeapSize = project.test.maxHeapSize
|
||||
}
|
||||
|
||||
// For historical reasons (i.e. airbyte-ci), this task is called integrationTestJava.
|
||||
@@ -193,7 +194,12 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
|
||||
useJUnitPlatform()
|
||||
// We need a docker image to run this task, so depend on assemble
|
||||
dependsOn project.tasks.assemble
|
||||
environment "MICRONAUT_ENVIRONMENTS", "DOCKERIZED_INTEGRATION_TEST"
|
||||
environment "AIRBYTE_CONNECTOR_INTEGRATION_TEST_RUNNER", "docker"
|
||||
|
||||
jvmArgs = project.test.jvmArgs
|
||||
systemProperties = project.test.systemProperties
|
||||
maxParallelForks = project.test.maxParallelForks
|
||||
maxHeapSize = project.test.maxHeapSize
|
||||
}
|
||||
|
||||
project.dependencies {
|
||||
|
||||
Reference in New Issue
Block a user