Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nroulon committed Jun 13, 2023
1 parent 81bf40b commit e1ff037
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion modules/cli/src/main/kotlin/datamaintain/cli/app/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class App : CliktCommand() {
).flag()

private val trace: Boolean? by detailedOption("-vv",
help = "trace is more verbose than verbose",
help = "verbose with more details",
defaultValue = CliSpecificKey.VERBOSE.default
).flag()

Expand Down
2 changes: 2 additions & 0 deletions modules/test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ dependencies {
implementation(project(":modules:core"))
implementation(project(":modules:driver-mongo"))
implementation("org.mongodb:mongodb-driver-sync:${Versions.mongoDriver}")

testImplementation("com.github.ajalt:clikt:${Versions.clikt}")
}
22 changes: 9 additions & 13 deletions modules/test/src/test/kotlin/datamaintain/test/MongoIT.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package datamaintain.test

import datamaintain.cli.app.datamaintainApp
import datamaintain.cli.app.main
import org.junit.jupiter.api.Test
import strikt.api.expectThat
Expand All @@ -23,10 +24,9 @@ class MongoIT : AbstractMongoDbTest() {
arrayOf(
"--db-type", "mongo",
"--db-uri", mongoUri(),
"--verbose",
),
arrayOf(
"--verbose",
"update-db",
"--path", "src/test/resources/integration/ok",
"--identifier-regex", "(.*?)_.*",
"--print-db-output",
Expand All @@ -53,10 +53,9 @@ class MongoIT : AbstractMongoDbTest() {
arrayOf(
"--db-type", "mongo",
"--db-uri", mongoUri(),
"--verbose",
),
arrayOf(
"--verbose",
"update-db",
"--path", "src/test/resources/integration/partial",
"--identifier-regex", "(.*?)_.*"
)
Expand All @@ -70,9 +69,9 @@ class MongoIT : AbstractMongoDbTest() {
arrayOf(
"--db-type", "mongo",
"--db-uri", mongoUri(),
"--verbose",
),
arrayOf(
"--verbose",
"--path", "src/test/resources/integration/ok",
"--identifier-regex", "(.*?)_.*"
)
Expand Down Expand Up @@ -118,10 +117,9 @@ class MongoIT : AbstractMongoDbTest() {
arrayOf(
"--db-type", "mongo",
"--db-uri", mongoUri(),
"--verbose",
),
arrayOf(
"--verbose",
"update-db",
"--path", "src/test/resources/integration/ok",
"--identifier-regex", "(.*?)_.*",
"--execution-mode", "NORMAL",
Expand All @@ -148,10 +146,9 @@ class MongoIT : AbstractMongoDbTest() {
arrayOf(
"--db-type", "mongo",
"--db-uri", mongoUri(),
"--verbose",
),
arrayOf(
"--verbose",
"update-db",
"--path", "src/test/resources/integration/partial",
"--identifier-regex", "(.*?)_.*"
)
Expand All @@ -164,10 +161,10 @@ class MongoIT : AbstractMongoDbTest() {
executeUpdateDbWithMongoClientInDocker(
arrayOf(
"--db-type", "mongo",
"--db-uri", mongoUri()
"--db-uri", mongoUri(),
"--verbose",
),
arrayOf(
"--verbose",
"--path", "src/test/resources/integration/override",
"--identifier-regex", "(.*?)_.*",
"--execution-mode", "NORMAL",
Expand All @@ -194,7 +191,6 @@ class MongoIT : AbstractMongoDbTest() {
"--verbose",
"update-db",
"--mongo-client", mongoCliDockerPath.toString(),
"--verbose",
"--path", "src/test/resources/integration/ko",
"--identifier-regex", "(.*?)_.*"
)
Expand Down Expand Up @@ -227,7 +223,7 @@ class MongoIT : AbstractMongoDbTest() {
arrayOf("--db-uri", mongoUri, "update-db", "--mongo-client", mongoCliDockerPath.toString()) +
updateArgs

main(args)
datamaintainApp.parse(args)
}

private fun listExecutedFiles(): List<String> {
Expand Down

0 comments on commit e1ff037

Please sign in to comment.