Skip to content

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
@vercel
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
28 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

5 participants