|
| 1 | +/* |
| 2 | + * Copyright OpenSearch Contributors |
| 3 | + * SPDX-License-Identifier: Apache-2.0 |
| 4 | + * |
| 5 | + * The OpenSearch Contributors require contributions made to |
| 6 | + * this file be licensed under the Apache-2.0 license or a |
| 7 | + * compatible open source license. |
| 8 | + * |
| 9 | + */ |
| 10 | + |
| 11 | +sourceSets { |
| 12 | + integrationTest { |
| 13 | + java { |
| 14 | + compileClasspath += main.output + test.output |
| 15 | + runtimeClasspath += main.output + test.output |
| 16 | + srcDir file('src/integrationTest/java') |
| 17 | + } |
| 18 | + resources.srcDir file('src/integrationTest/resources') |
| 19 | + } |
| 20 | +} |
| 21 | + |
| 22 | +configurations { |
| 23 | + integrationTestImplementation.extendsFrom testImplementation |
| 24 | + integrationTestRuntime.extendsFrom testRuntime |
| 25 | +} |
| 26 | + |
| 27 | +dependencies { |
| 28 | + implementation project(':data-prepper-api') |
| 29 | + implementation project(':data-prepper-plugins:buffer-common') |
| 30 | + implementation project(':data-prepper-plugins:aws-plugin-api') |
| 31 | + |
| 32 | + implementation 'org.apache.iceberg:iceberg-core:1.10.1' |
| 33 | + implementation 'org.apache.iceberg:iceberg-data:1.10.1' |
| 34 | + implementation 'org.apache.iceberg:iceberg-parquet:1.10.1' |
| 35 | + implementation 'org.apache.iceberg:iceberg-orc:1.10.1' |
| 36 | + implementation 'org.apache.iceberg:iceberg-aws:1.10.1' |
| 37 | + |
| 38 | + implementation libs.parquet.hadoop |
| 39 | + implementation libs.avro.core |
| 40 | + implementation libs.hadoop.common |
| 41 | + implementation 'org.apache.orc:orc-core:1.9.5' |
| 42 | + |
| 43 | + implementation 'software.amazon.awssdk:glue' |
| 44 | + implementation 'software.amazon.awssdk:s3' |
| 45 | + implementation 'software.amazon.awssdk:sts' |
| 46 | + |
| 47 | + implementation 'com.fasterxml.jackson.core:jackson-databind' |
| 48 | + |
| 49 | + testImplementation project(':data-prepper-test:test-common') |
| 50 | + |
| 51 | + integrationTestImplementation project(':data-prepper-plugins:in-memory-source-coordination-store') |
| 52 | + integrationTestImplementation project(':data-prepper-core') |
| 53 | + integrationTestImplementation project(':data-prepper-event') |
| 54 | + integrationTestImplementation 'org.awaitility:awaitility:4.2.2' |
| 55 | +} |
| 56 | + |
| 57 | +task integrationTest(type: Test) { |
| 58 | + group = 'verification' |
| 59 | + testClassesDirs = sourceSets.integrationTest.output.classesDirs |
| 60 | + |
| 61 | + useJUnitPlatform() |
| 62 | + |
| 63 | + classpath = sourceSets.integrationTest.runtimeClasspath |
| 64 | + systemProperty 'tests.iceberg.rest.uri', System.getProperty('tests.iceberg.rest.uri', 'http://localhost:8181') |
| 65 | + systemProperty 'tests.iceberg.s3.endpoint', System.getProperty('tests.iceberg.s3.endpoint', 'http://localhost:8333') |
| 66 | + systemProperty 'tests.iceberg.s3.accessKey', System.getProperty('tests.iceberg.s3.accessKey', 'admin') |
| 67 | + systemProperty 'tests.iceberg.s3.secretKey', System.getProperty('tests.iceberg.s3.secretKey', 'password') |
| 68 | + systemProperty 'tests.iceberg.s3.region', System.getProperty('tests.iceberg.s3.region', 'us-east-1') |
| 69 | + |
| 70 | + filter { |
| 71 | + includeTestsMatching '*IT' |
| 72 | + } |
| 73 | +} |
0 commit comments