Skip to content

Commit

Permalink
[apache#5950] feat(catalog-model): Add integration tests for model API (
Browse files Browse the repository at this point in the history
apache#6051)

### What changes were proposed in this pull request?

This PR adds the integration tests for model API to make sure it works
as expected.

### Why are the changes needed?

To have an end to end test.

Fix: apache#5950 

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Add ITs.

---------

Co-authored-by: Qi Yu <[email protected]>
  • Loading branch information
2 people authored and Abyss-lord committed Jan 3, 2025
1 parent 8597dde commit 352b43a
Show file tree
Hide file tree
Showing 12 changed files with 909 additions and 19 deletions.
14 changes: 8 additions & 6 deletions catalogs/catalog-model/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,33 @@ dependencies {
exclude(group = "*")
}

implementation(project(":core")) {
implementation(project(":catalogs:catalog-common")) {
exclude(group = "*")
}
implementation(project(":common")) {
exclude(group = "*")
}

implementation(project(":catalogs:catalog-common")) {
implementation(project(":core")) {
exclude(group = "*")
}

implementation(libs.guava)
implementation(libs.slf4j.api)

testImplementation(project(":clients:client-java"))
testImplementation(project(":integration-test-common", "testArtifacts"))
testImplementation(project(":server"))
testImplementation(project(":server-common"))

testImplementation(libs.bundles.log4j)
testImplementation(libs.commons.io)
testImplementation(libs.commons.lang3)
testImplementation(libs.mockito.core)
testImplementation(libs.mockito.inline)
testImplementation(libs.mysql.driver)
testImplementation(libs.junit.jupiter.api)
testImplementation(libs.junit.jupiter.params)
testImplementation(libs.postgresql.driver)
testImplementation(libs.testcontainers)
testImplementation(libs.testcontainers.mysql)

testRuntimeOnly(libs.junit.jupiter.engine)
}
Expand All @@ -68,8 +69,9 @@ tasks {
val copyCatalogLibs by registering(Copy::class) {
dependsOn("jar", "runtimeJars")
from("build/libs") {
exclude("slf4j-*.jar")
exclude("guava-*.jar")
exclude("log4j-*.jar")
exclude("slf4j-*.jar")
}
into("$rootDir/distribution/package/catalogs/model/libs")
}
Expand Down
Loading

0 comments on commit 352b43a

Please sign in to comment.