Skip to content
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
merged 3 commits into from
Oct 3, 2024

Conversation

aldogonzalez8
Copy link
Contributor

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?

  • YES 💚
  • NO ❌

@aldogonzalez8 aldogonzalez8 self-assigned this Oct 2, 2024
Copy link

vercel bot commented Oct 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 0:17am

@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Oct 3, 2024
@aldogonzalez8 aldogonzalez8 requested a review from a team October 3, 2024 11:19
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
Copy link
Contributor Author

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.

@aldogonzalez8 aldogonzalez8 merged commit 3866702 into master Oct 3, 2024
38 checks passed
@aldogonzalez8 aldogonzalez8 deleted the aldogonzalez8/source/sftp-bulk/upgrace-cdk-5 branch October 3, 2024 13:55
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants