Skip to content

Commit

Permalink
fix(api): API-Model: Rename DTOs #268
Browse files Browse the repository at this point in the history
- try to make bride tests more reliable
  • Loading branch information
rainer-exxcellent committed Jun 29, 2023
1 parent 142f4a0 commit 2dcda9f
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@
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
import org.springframework.context.ConfigurableApplicationContext
import org.testcontainers.containers.GenericContainer
import org.testcontainers.containers.wait.strategy.HttpWaitStrategy
import org.testcontainers.lifecycle.Startable

/**
* When used on a spring boot test, starts a singleton opensearch container that is shared between all integration tests.
Expand All @@ -53,8 +51,6 @@ class OpenSearchContextInitializer : ApplicationContextInitializer<ConfigurableA
.withCreateContainerCmdModifier { cmd ->
cmd.hostConfig!!.withUlimits(arrayOf(Ulimit("nofile", 65536L, 65536L), Ulimit("memlock", -1L, -1L)))
}
.withNetwork(postgreSQLContainer.getNetwork())
.dependsOn(listOf<Startable>(postgreSQLContainer))
}

override fun initialize(applicationContext: ConfigurableApplicationContext) {
Expand Down

0 comments on commit 2dcda9f

Please sign in to comment.