-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
java CDK, source-postgres: parallelize tests (#32314)
- Loading branch information
Showing
40 changed files
with
1,419 additions
and
1,617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
...te-cdk/airbyte-commons/src/main/java/io/airbyte/commons/features/FeatureFlagsWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/* | ||
* Copyright (c) 2023 Airbyte, Inc., all rights reserved. | ||
*/ | ||
|
||
package io.airbyte.commons.features; | ||
|
||
public class FeatureFlagsWrapper implements FeatureFlags { | ||
|
||
/** | ||
* Overrides the {@link FeatureFlags#useStreamCapableState} method in the feature flags. | ||
*/ | ||
static public FeatureFlags overridingUseStreamCapableState( | ||
final FeatureFlags wrapped, | ||
final boolean useStreamCapableState) { | ||
return new FeatureFlagsWrapper(wrapped) { | ||
|
||
@Override | ||
public boolean useStreamCapableState() { | ||
return useStreamCapableState; | ||
} | ||
|
||
}; | ||
} | ||
|
||
/** | ||
* Overrides the {@link FeatureFlags#deploymentMode} method in the feature flags. | ||
*/ | ||
static public FeatureFlags overridingDeploymentMode( | ||
final FeatureFlags wrapped, | ||
final String deploymentMode) { | ||
return new FeatureFlagsWrapper(wrapped) { | ||
|
||
@Override | ||
public String deploymentMode() { | ||
return deploymentMode; | ||
} | ||
|
||
}; | ||
} | ||
|
||
private final FeatureFlags wrapped; | ||
|
||
public FeatureFlagsWrapper(FeatureFlags wrapped) { | ||
this.wrapped = wrapped; | ||
} | ||
|
||
@Override | ||
public boolean useStreamCapableState() { | ||
return wrapped.useStreamCapableState(); | ||
} | ||
|
||
@Override | ||
public boolean autoDetectSchema() { | ||
return wrapped.autoDetectSchema(); | ||
} | ||
|
||
@Override | ||
public boolean logConnectorMessages() { | ||
return wrapped.logConnectorMessages(); | ||
} | ||
|
||
@Override | ||
public boolean concurrentSourceStreamRead() { | ||
return wrapped.concurrentSourceStreamRead(); | ||
} | ||
|
||
@Override | ||
public boolean applyFieldSelection() { | ||
return wrapped.applyFieldSelection(); | ||
} | ||
|
||
@Override | ||
public String fieldSelectionWorkspaces() { | ||
return wrapped.fieldSelectionWorkspaces(); | ||
} | ||
|
||
@Override | ||
public String strictComparisonNormalizationWorkspaces() { | ||
return wrapped.strictComparisonNormalizationWorkspaces(); | ||
} | ||
|
||
@Override | ||
public String strictComparisonNormalizationTag() { | ||
return wrapped.strictComparisonNormalizationTag(); | ||
} | ||
|
||
@Override | ||
public String deploymentMode() { | ||
return wrapped.deploymentMode(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=0.4.5 | ||
version=0.4.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.