-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ feat(Source sftp-bulk): upgrade to CDK 5 #46323
Merged
aldogonzalez8
merged 3 commits into
master
from
aldogonzalez8/source/sftp-bulk/upgrace-cdk-5
Oct 3, 2024
Merged
✨ feat(Source sftp-bulk): upgrade to CDK 5 #46323
aldogonzalez8
merged 3 commits into
master
from
aldogonzalez8/source/sftp-bulk/upgrace-cdk-5
Oct 3, 2024
Conversation
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
octavia-squidington-iii
added
area/connectors
Connector related issues
connectors/source/sftp-bulk
labels
Oct 2, 2024
octavia-squidington-iii
added
the
area/documentation
Improvements or additions to documentation
label
Oct 3, 2024
aldogonzalez8
commented
Oct 3, 2024
Comment on lines
+26
to
+36
with pytest.raises(AirbyteTracedException) as exc_info: | ||
SourceSFTPBulk(catalog=configured_catalog, config=invalid_config, state=None).check(logger, invalid_config) | ||
|
||
assert exc_info.value.failure_type.value == FailureType.config_error.value | ||
|
||
|
||
def test_check_invalid_config(configured_catalog: ConfiguredAirbyteCatalog, config: Mapping[str, Any]): | ||
invalid_config = config | {"credentials": {"auth_type": "password", "password": "wrongpass"}} | ||
outcome = SourceSFTPBulk(catalog=configured_catalog, config=invalid_config, state=None).check(logger, invalid_config) | ||
assert outcome.status == Status.FAILED | ||
with pytest.raises(AirbyteTracedException) as exc_info: | ||
SourceSFTPBulk(catalog=configured_catalog, config=invalid_config, state=None).check(logger, invalid_config) | ||
assert exc_info.value.failure_type.value == FailureType.config_error.value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
airbyte exceptions are now caught here, so it is ok to change the test a little bit as we don't call the entry point but directly the check method in the source.
bazarnov
approved these changes
Oct 3, 2024
lazebnyi
approved these changes
Oct 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/connectors
Connector related issues
area/documentation
Improvements or additions to documentation
connectors/source/sftp-bulk
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
We will make changes in source-sftp-bulk that will leverage CDK; then I'm upgrading to the latest version to have a base to work.
How
Upgrade CDK and update a couple of tests; airbyte exceptions are now caught here, so it is ok to change the test a little bit as we don't call the entry point but directly the check method in the source.
Review guide
User Impact
No direct user impact, but this will helo with transfer file project.
Can this PR be safely reverted and rolled back?