mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-01 19:25:56 +00:00
These tests verify that, given an index settings and mappings, data can be written to the index, and read from it with a query_all query. These are very simple sanity tests. We can, and should, write more complex tests that specific to each index in the future.
69 lines
1.9 KiB
Groovy
69 lines
1.9 KiB
Groovy
apply plugin: 'java'
|
|
apply plugin: 'pegasus'
|
|
|
|
sourceSets {
|
|
integTest {
|
|
compileClasspath += sourceSets.main.output
|
|
runtimeClasspath += sourceSets.main.output
|
|
}
|
|
}
|
|
|
|
idea{
|
|
module {
|
|
testSourceDirs += file('src/integTest/java')
|
|
scopes.TEST.plus += [ configurations.integTestCompile ]
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
integTestImplementation.extendsFrom implementation
|
|
integTestRuntimeOnly.extendsFrom runtimeOnly
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':gms:api')
|
|
compile project(path: ':gms:api', configuration: 'dataTemplate')
|
|
compile project(':li-utils')
|
|
compile project(':metadata-models')
|
|
compile project(':metadata-testing:metadata-test-utils')
|
|
compile spec.product.pegasus.restliServer
|
|
compile externalDependency.gmaDaoApi
|
|
compile externalDependency.gmaDaoApiDataTemplate
|
|
compile externalDependency.gmaEbeanDao
|
|
compile externalDependency.gmaElasticsearchDao
|
|
compile externalDependency.gmaNeo4jDao
|
|
compile externalDependency.gmaRestliResources
|
|
compile externalDependency.gmaRestliResourcesDataTemplate
|
|
|
|
compileOnly externalDependency.lombok
|
|
|
|
testCompile externalDependency.parseqTest
|
|
testCompile externalDependency.mockito
|
|
testCompile externalDependency.testng
|
|
|
|
integTestImplementation externalDependency.junitJupiterApi
|
|
integTestRuntimeOnly externalDependency.junitJupiterEngine
|
|
|
|
integTestCompile externalDependency.gmaElasticsearchIntegTest
|
|
integTestCompile externalDependency.junitJupiterApi
|
|
integTestCompile externalDependency.junitJupiterParams
|
|
}
|
|
|
|
task integrationTest(type: Test) {
|
|
description = 'Runs integration tests.'
|
|
group = 'verification'
|
|
useJUnitPlatform()
|
|
|
|
testClassesDirs = sourceSets.integTest.output.classesDirs
|
|
classpath = sourceSets.integTest.runtimeClasspath
|
|
shouldRunAfter test
|
|
}
|
|
|
|
check.dependsOn integrationTest
|
|
|
|
// Generate IDLs
|
|
pegasus.main.idlOptions.addIdlItem([
|
|
'com.linkedin.metadata.resources',
|
|
])
|
|
|
|
ext.apiProject = project(':gms:api') |