File tree 2 files changed +4
-1
lines changed
src/testFixtures/kotlin/misk/vitess/testing/internal
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ dependencies {
26
26
testFixturesImplementation(project(" :misk-docker" ))
27
27
testFixturesImplementation(project(" :wisp:wisp-moshi" ))
28
28
testFixturesImplementation(project(" :wisp:wisp-resource-loader" ))
29
+ testFixturesImplementation(project(" :wisp:wisp-containers-testing" ))
29
30
30
31
testImplementation(libs.mysqlConnector)
31
32
testImplementation(libs.junitApi)
Original file line number Diff line number Diff line change 1
1
package misk.vitess.testing.internal
2
2
3
+ import wisp.containers.ContainerUtil
4
+
3
5
class VitessClusterConfig (port : Int ) {
4
6
val vtgatePort: Int = port
5
7
val mysqlPort: Int = port - 1
6
8
val grpcPort: Int = port - 2
7
9
val basePort: Int = port - 3
8
- val hostname: String = System .getenv(" VITESS_HOST" ) ? : " localhost "
10
+ val hostname: String = System .getenv(" VITESS_HOST" ) ? : ContainerUtil .dockerTargetOrLocalHost()
9
11
val vtgateUser: String = " root"
10
12
val vtgateUserPassword: String = " "
11
13
val dbaUser: String = " vt_dba_tcp_full"
You can’t perform that action at this time.
0 commit comments