Skip to content

Commit

Permalink
feat(bridge): Add test config for BridgeClient and simple dummy IT
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfkaeser authored and rainer-exxcellent committed Aug 23, 2023
1 parent 3241b51 commit b0964f0
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
package com.catenax.bpdm.bridge.dummy

import com.catenax.bpdm.bridge.dummy.client.BridgeClient
import com.catenax.bpdm.bridge.dummy.util.BpdmGateContextInitializer
import com.catenax.bpdm.bridge.dummy.util.BpdmPoolContextInitializer
import com.catenax.bpdm.bridge.dummy.util.OpenSearchContextInitializer
import com.catenax.bpdm.bridge.dummy.util.PostgreSQLContextInitializer
import org.eclipse.tractusx.bpdm.common.dto.request.PaginationRequest
import org.eclipse.tractusx.bpdm.gate.api.client.GateClient
import org.eclipse.tractusx.bpdm.pool.api.client.PoolApiClient
import org.junit.jupiter.api.Test
import com.catenax.bpdm.bridge.dummy.testdata.GateRequestValues
import com.catenax.bpdm.bridge.dummy.util.*
import org.assertj.core.api.Assertions.assertThat
Expand Down Expand Up @@ -53,6 +61,18 @@ private val DEFAULT_PAGINATION_REQUEST = PaginationRequest(0, 100)
class BridgeSyncIT @Autowired constructor(
val bridgeClient: BridgeClient,
val gateClient: GateClient,
val poolClient: PoolApiClient
) {

@Test
fun `use API clients`() {
val gateChangelogs = gateClient.changelog().getChangelogEntriesLsaType(
paginationRequest = PaginationRequest(0, 10), fromTime = null, lsaType = null
)
val poolChangelogs = poolClient.businessPartners().getChangelogEntries(
paginationRequest = PaginationRequest(0, 10), modifiedAfter = null, bpn = null
)
bridgeClient.bridge().triggerSync()
val poolClient: PoolApiClient,
val testHelpers: TestHelpers
) {
Expand Down

0 comments on commit b0964f0

Please sign in to comment.