Skip to content

Commit

Permalink
feat(bridge-tests): Tests for syncing new legal entities, site & addr…
Browse files Browse the repository at this point in the history
…esses eclipse-tractusx#210

- add Network to open search container
  • Loading branch information
rainer-exxcellent committed Jul 27, 2023
1 parent 1c48c96 commit ed56319
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

package com.catenax.bpdm.bridge.dummy.util


import com.catenax.bpdm.bridge.dummy.util.PostgreSQLContextInitializer.Companion.postgreSQLContainer
import com.github.dockerjava.api.model.Ulimit
import org.springframework.boot.test.util.TestPropertyValues
import org.springframework.context.ApplicationContextInitializer
Expand Down Expand Up @@ -54,8 +54,8 @@ class OpenSearchContextInitializer : ApplicationContextInitializer<ConfigurableA
.withCreateContainerCmdModifier { cmd ->
cmd.hostConfig!!.withUlimits(arrayOf(Ulimit("nofile", 65536L, 65536L), Ulimit("memlock", -1L, -1L)))
}
.withNetwork(PostgreSQLContextInitializer.postgreSQLContainer.getNetwork())
.dependsOn(listOf<Startable>(PostgreSQLContextInitializer.postgreSQLContainer))
.withNetwork(postgreSQLContainer.getNetwork())
.dependsOn(listOf<Startable>(postgreSQLContainer))
}

override fun initialize(applicationContext: ConfigurableApplicationContext) {
Expand Down

0 comments on commit ed56319

Please sign in to comment.