Skip to content

Commit

Permalink
feat(bridge-tests): Tests for syncing updated legal entities, site & …
Browse files Browse the repository at this point in the history
…addresses #211

- fix compile errors after rebase
  • Loading branch information
rainer-exxcellent committed Jul 12, 2023
1 parent 004469f commit c3951bd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ class BridgeSyncIT @Autowired constructor(
val bpnByExternalId = buildBpnByExternalIdMap(readSuccessfulSharingStatesWithBpn())
val gateAddressRequestsByBpn = gateAddressRequests.associateBy { bpnByExternalId[it.externalId]!! }

val poolAddressResponses: Collection<LogisticAddressResponse> = poolClient.addresses().searchAddresses(
val poolAddressResponses = poolClient.addresses().searchAddresses(
addressSearchRequest = AddressPartnerBpnSearchRequest(addresses = gateAddressRequestsByBpn.keys),
paginationRequest = DEFAULT_PAGINATION_REQUEST
).content
Expand All @@ -384,7 +384,7 @@ class BridgeSyncIT @Autowired constructor(
)
gateClient.addresses().upsertAddresses(listOf(addressRequestUpdate))
bridgeClient.bridge().triggerSync()
val poolAddressUpdateResponses: Collection<LogisticAddressResponse> = poolClient.addresses().searchAddresses(
val poolAddressUpdateResponses = poolClient.addresses().searchAddresses(
addressSearchRequest = AddressPartnerBpnSearchRequest(addresses = gateAddressRequestsByBpn.keys),
paginationRequest = DEFAULT_PAGINATION_REQUEST
).content
Expand All @@ -400,7 +400,7 @@ class BridgeSyncIT @Autowired constructor(

}

private fun allLegalEntitiesFromPool(): Collection<LegalEntityMatchResponse> {
private fun allLegalEntitiesFromPool(): Collection<LegalEntityMatchVerboseDto> {
val poolLegalEntityResponses = poolClient.legalEntities().getLegalEntities(
bpSearchRequest = LegalEntityPropertiesSearchRequest.EmptySearchRequest,
paginationRequest = DEFAULT_PAGINATION_REQUEST
Expand Down

0 comments on commit c3951bd

Please sign in to comment.