Skip to content

Commit

Permalink
introduce another retry around an api request (#8571)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfsiega-airbyte committed Aug 28, 2023
1 parent d94f714 commit 19a2545
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -785,14 +785,16 @@ public SourceDefinitionRead createE2eSourceDefinition(final UUID workspaceId) {
return sourceDefinitionRead;
}

public DestinationDefinitionRead createE2eDestinationDefinition(final UUID workspaceId) throws ApiException {
return apiClient.getDestinationDefinitionApi().createCustomDestinationDefinition(new CustomDestinationDefinitionCreate()
.workspaceId(workspaceId)
.destinationDefinition(new DestinationDefinitionCreate()
.name("E2E Test Destination")
.dockerRepository("airbyte/destination-e2e-test")
.dockerImageTag(DESTINATION_E2E_TEST_CONNECTOR_VERSION)
.documentationUrl(URI.create("https://example.com"))));
public DestinationDefinitionRead createE2eDestinationDefinition(final UUID workspaceId) throws Exception {
return AirbyteApiClient.retryWithJitterThrows(() -> apiClient.getDestinationDefinitionApi()
.createCustomDestinationDefinition(new CustomDestinationDefinitionCreate()
.workspaceId(workspaceId)
.destinationDefinition(new DestinationDefinitionCreate()
.name("E2E Test Destination")
.dockerRepository("airbyte/destination-e2e-test")
.dockerImageTag(DESTINATION_E2E_TEST_CONNECTOR_VERSION)
.documentationUrl(URI.create("https://example.com")))),
"create destination definition", 10, 60, 3);
}

public SourceRead createPostgresSource() {
Expand Down

0 comments on commit 19a2545

Please sign in to comment.