File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
lib/stove-testing-e2e-mongodb/src/main/kotlin/com/trendyol/stove/testing/e2e/mongodb Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1- @file:Suppress(" UNCHECKED_CAST" )
2-
31package com.trendyol.stove.testing.e2e.mongodb
42
53import com.fasterxml.jackson.module.kotlin.convertValue
@@ -43,7 +41,10 @@ class MongodbSystem internal constructor(
4341 exposedConfiguration = state.capture {
4442 context.container.start()
4543 MongodbExposedConfiguration (
46- context.container.connectionString
44+ context.container.connectionString,
45+ context.container.host,
46+ context.container.firstMappedPort,
47+ context.container.replicaSetUrl
4748 )
4849 }
4950 mongoClient = createClient(exposedConfiguration)
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ import org.testcontainers.containers.MongoDBContainer
1414
1515data class MongodbExposedConfiguration (
1616 val connectionString : String ,
17+ val host : String ,
18+ val port : Int ,
19+ val replicaSetUrl : String ,
1720) : ExposedConfiguration
1821
1922data class MongodbContext (
You can’t perform that action at this time.
0 commit comments