Skip to content

Commit

Permalink
set workspaceId on destinationCoreConfig (#22843)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmossman authored Feb 10, 2023
1 parent f06c213 commit 83d26d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ public CheckConnectionRead checkDestinationConnectionFromDestinationIdForUpdate(
final DestinationCoreConfig destinationCoreConfig = new DestinationCoreConfig()
.destinationId(updatedDestination.getDestinationId())
.connectionConfiguration(updatedDestination.getConfiguration())
.destinationDefinitionId(updatedDestination.getDestinationDefinitionId());
.destinationDefinitionId(updatedDestination.getDestinationDefinitionId())
.workspaceId(updatedDestination.getWorkspaceId());

return checkDestinationConnectionFromDestinationCreate(destinationCoreConfig);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ void testCheckDestinationConnectionFromUpdate() throws IOException, JsonValidati
final DestinationConnection submittedDestination = new DestinationConnection()
.withDestinationId(destination.getDestinationId())
.withDestinationDefinitionId(destination.getDestinationDefinitionId())
.withConfiguration(destination.getConfiguration());
.withConfiguration(destination.getConfiguration())
.withWorkspaceId(destination.getWorkspaceId());
when(synchronousSchedulerClient.createDestinationCheckConnectionJob(submittedDestination, DESTINATION_DOCKER_IMAGE,
new Version(DESTINATION_PROTOCOL_VERSION), false))
.thenReturn((SynchronousResponse<StandardCheckConnectionOutput>) jobResponse);
Expand Down

0 comments on commit 83d26d2

Please sign in to comment.