From 1129cfa76d9820f0483a2f93fcb52080ae79a742 Mon Sep 17 00:00:00 2001 From: rschneider <97682836+rainer-exxcellent@users.noreply.github.com> Date: Thu, 6 Jul 2023 06:23:54 +0200 Subject: [PATCH] feat(bridge-tests): Tests for syncing new legal entities, site & addresses #210 - add Network to open search container --- .../bpdm/bridge/dummy/util/OpenSearchContextInitializer.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/util/OpenSearchContextInitializer.kt b/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/util/OpenSearchContextInitializer.kt index 62547dfcd..8b7771b83 100644 --- a/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/util/OpenSearchContextInitializer.kt +++ b/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/util/OpenSearchContextInitializer.kt @@ -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 @@ -54,6 +54,8 @@ class OpenSearchContextInitializer : ApplicationContextInitializer cmd.hostConfig!!.withUlimits(arrayOf(Ulimit("nofile", 65536L, 65536L), Ulimit("memlock", -1L, -1L))) } + .withNetwork(postgreSQLContainer.getNetwork()) + .dependsOn(listOf(postgreSQLContainer)) } override fun initialize(applicationContext: ConfigurableApplicationContext) {