Skip to content

Commit

Permalink
fix: "Provided Connectors" view (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
jridderbusch authored Apr 3, 2024
1 parent 98fb892 commit 782816e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ please see [changelog_updates.md](docs/dev/changelog_updates.md).

#### Patch

- Fixed "Provided Connectors" view for Service Partners ([#172](https://github.com/sovity/authority-portal/issues/172))

### Known issues

### Deployment Migration Notes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ class ConnectorManagementApiService {
deploymentEnvironmentService.assertValidEnvId(environmentId)

val connectors = connectorService.getConnectorsByHostMdsId(mdsId, environmentId)
.filter { it.mdsId != it.providerMdsId }
val orgNames = organizationService.getAllOrganizationNames()

val connectorDtos = connectors.map {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,12 @@ class ConnectorManagementApiServiceTest {

// assert
assertThat(result).isNotNull
assertThat(result.connectors).hasSize(2)
assertThat(result.connectors).hasSize(1)
assertThat(result.connectors.map { it.id }).allSatisfy { assertThat(it).isNotNull() }
assertThat(result.connectors.map { it.customerOrgName }).anySatisfy { assertThat(it).isEqualTo("Dev Organization 3.5") }
assertThat(result.connectors.map { it.customerOrgName }).anySatisfy { assertThat(it).isEqualTo("Dev Organization 1") }
assertThat(result.connectors.map { it.environment.environmentId }).allSatisfy { assertThat(it).isEqualTo("test") }
assertThat(result.connectors.map { it.environment.title }).allSatisfy { assertThat(it).isEqualTo("Test Environment") }
assertThat(result.connectors.map { it.type }).anySatisfy { assertThat(it).isEqualTo(ConnectorTypeDto.PROVIDED) }
assertThat(result.connectors.map { it.type }).allSatisfy { assertThat(it).isEqualTo(ConnectorTypeDto.PROVIDED) }
}

@Test
Expand Down

0 comments on commit 782816e

Please sign in to comment.