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

✨ Source Salesforce: Adding bulk stream mock server tests #37749

Merged
merged 6 commits into from May 6, 2024

Conversation

maxi297
Copy link
Contributor

@maxi297 maxi297 commented May 1, 2024

What

Before integrating the HttpClient that @pnilan is working on, we want to add a good safety need to identify issues without having to test manually before and after.

How

Adding mock server tests

User Impact

No customer impact. However, developer won't have to test manually before and after to ensure the behavior is the same.

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Copy link

vercel bot commented May 1, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview May 6, 2024 0:33am

@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label May 1, 2024
@maxi297 maxi297 changed the title Adding bulk mock server tests ✨ Source Salesforce: Adding bulk stream mock server tests May 1, 2024
@@ -179,31 +179,6 @@ def test_stream_contains_unsupported_properties_by_bulk(stream_config, stream_ap
assert not isinstance(stream, BulkSalesforceStream)


def test_bulk_sync_pagination(stream_config, stream_api, requests_mock):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to test_given_locator_when_read_then_extract_records_from_both_pages

assert output.get_stream_statuses(_STREAM_NAME)[-1] == AirbyteStreamStatus.COMPLETE

def test_given_non_retryable_error_on_delete_job_result_when_read_then_fail_to_sync(self):
"""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we've seen errors for that in prod but it would be sad kill the stream because of that

@maxi297 maxi297 requested a review from a team as a code owner May 2, 2024 12:58
Copy link
Contributor

@aldogonzalez8 aldogonzalez8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVED

Copy link
Contributor

@ChristoGrab ChristoGrab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢🚢

@maxi297 maxi297 merged commit 5c6024b into master May 6, 2024
30 checks passed
@maxi297 maxi297 deleted the maxi297/salesforce-add-mock-server-test-for-bulk branch May 6, 2024 14:26
aasimsani pushed a commit to taxwire/airbyte that referenced this pull request May 6, 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/salesforce
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants