From ed563190d2af70bb6984aafbde8a0da250a22056 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 c03cbc6d2..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,8 +54,8 @@ class OpenSearchContextInitializer : ApplicationContextInitializer cmd.hostConfig!!.withUlimits(arrayOf(Ulimit("nofile", 65536L, 65536L), Ulimit("memlock", -1L, -1L))) } - .withNetwork(PostgreSQLContextInitializer.postgreSQLContainer.getNetwork()) - .dependsOn(listOf(PostgreSQLContextInitializer.postgreSQLContainer)) + .withNetwork(postgreSQLContainer.getNetwork()) + .dependsOn(listOf(postgreSQLContainer)) } override fun initialize(applicationContext: ConfigurableApplicationContext) {