From 234676a27b522ea43cfc8f2f71416fb2a33cfcf6 Mon Sep 17 00:00:00 2001 From: rschneider <97682836+rainer-exxcellent@users.noreply.github.com> Date: Thu, 6 Jul 2023 05:50:05 +0200 Subject: [PATCH] feat(bridge-tests): Tests for syncing new legal entities, site & addresses #210 - fix after merge --- .../kotlin/com/catenax/bpdm/bridge/dummy/BridgeSyncIT.kt | 4 ++++ .../catenax/bpdm/bridge/dummy/testdata/CommonValues.kt | 6 +++--- .../bpdm/bridge/dummy/testdata/GateRequestValues.kt | 8 +++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/BridgeSyncIT.kt b/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/BridgeSyncIT.kt index ca206a531..67257b767 100644 --- a/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/BridgeSyncIT.kt +++ b/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/BridgeSyncIT.kt @@ -29,7 +29,11 @@ import org.eclipse.tractusx.bpdm.common.dto.request.SiteBpnSearchRequest import org.eclipse.tractusx.bpdm.common.dto.response.LogisticAddressResponse import org.eclipse.tractusx.bpdm.gate.api.client.GateClient import org.eclipse.tractusx.bpdm.gate.api.model.* +import org.eclipse.tractusx.bpdm.gate.api.model.request.AddressGateInputRequest import org.eclipse.tractusx.bpdm.gate.api.model.request.ChangeLogSearchRequest +import org.eclipse.tractusx.bpdm.gate.api.model.request.LegalEntityGateInputRequest +import org.eclipse.tractusx.bpdm.gate.api.model.request.SiteGateInputRequest +import org.eclipse.tractusx.bpdm.gate.api.model.response.SharingStateDto import org.eclipse.tractusx.bpdm.pool.api.client.PoolApiClient import org.eclipse.tractusx.bpdm.pool.api.model.request.ChangelogSearchRequest import org.eclipse.tractusx.bpdm.pool.api.model.request.LegalEntityPropertiesSearchRequest diff --git a/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/testdata/CommonValues.kt b/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/testdata/CommonValues.kt index 45e2855d5..b52900a01 100644 --- a/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/testdata/CommonValues.kt +++ b/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/testdata/CommonValues.kt @@ -21,7 +21,7 @@ package com.catenax.bpdm.bridge.dummy.testdata import com.neovisionaries.i18n.CountryCode import com.neovisionaries.i18n.LanguageCode -import org.eclipse.tractusx.bpdm.common.dto.NameRegioncodeDto +import org.eclipse.tractusx.bpdm.common.dto.NameRegioncodeVerboseDto import org.eclipse.tractusx.bpdm.common.model.BusinessStateType import org.eclipse.tractusx.bpdm.common.model.CharacterSet import org.eclipse.tractusx.bpdm.common.model.ClassificationType @@ -187,9 +187,9 @@ object CommonValues { // val adminAreaLevel1Region2 = NameRegioncodeDto(adminAreaLevel1RegionCode_2, "Georgia") val adminAreaLevel1RegionCode_1: String = "adminAreaLevel1RegionCode_1" - val adminAreaLevel1Region1: NameRegioncodeDto? = null + val adminAreaLevel1Region1: NameRegioncodeVerboseDto? = null val adminAreaLevel1RegionCode_2: String = "adminAreaLevel1RegionCode_2" - val adminAreaLevel1Region2: NameRegioncodeDto? = null + val adminAreaLevel1Region2: NameRegioncodeVerboseDto? = null const val county1 = "Stuttgart" const val county2 = " Fulton County" diff --git a/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/testdata/GateRequestValues.kt b/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/testdata/GateRequestValues.kt index be481d8c0..0fdce6359 100644 --- a/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/testdata/GateRequestValues.kt +++ b/bpdm-bridge-dummy/src/test/kotlin/com/catenax/bpdm/bridge/dummy/testdata/GateRequestValues.kt @@ -23,7 +23,13 @@ import org.eclipse.tractusx.bpdm.common.dto.* import org.eclipse.tractusx.bpdm.common.dto.saas.IdentifierSaas import org.eclipse.tractusx.bpdm.common.dto.saas.TypeKeyNameSaas import org.eclipse.tractusx.bpdm.common.dto.saas.TypeKeyNameUrlSaas -import org.eclipse.tractusx.bpdm.gate.api.model.* +import org.eclipse.tractusx.bpdm.gate.api.model.LogisticAddressGateDto +import org.eclipse.tractusx.bpdm.gate.api.model.PhysicalPostalAddressGateDto +import org.eclipse.tractusx.bpdm.gate.api.model.SiteGateDto +import org.eclipse.tractusx.bpdm.gate.api.model.StreetGateDto +import org.eclipse.tractusx.bpdm.gate.api.model.request.AddressGateInputRequest +import org.eclipse.tractusx.bpdm.gate.api.model.request.LegalEntityGateInputRequest +import org.eclipse.tractusx.bpdm.gate.api.model.request.SiteGateInputRequest object GateRequestValues {