-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 Pinterest: enable SAT high strictness #21477
Merged
arsenlosenko
merged 2 commits into
master
from
arsenlosenko/source-pinterest-high-strictness
Jan 18, 2023
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
126 changes: 61 additions & 65 deletions
126
airbyte-integrations/connectors/source-pinterest/acceptance-test-config.yml
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,72 +1,68 @@ | ||
# See [Source Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/source-acceptance-tests-reference) | ||
# for more information about how to configure these tests | ||
connector_image: airbyte/source-pinterest:dev | ||
acceptance_tests: | ||
spec: | ||
basic_read: | ||
tests: | ||
# TODO: remove backward compatibility checks once updated to version `>0.1.3` | ||
# because for OAuth2.0 implementation the specs are different | ||
- spec_path: "source_pinterest/spec.json" | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.1.2" | ||
- config_path: secrets/config.json | ||
empty_streams: | ||
- bypass_reason: The stream could return 0 records, because of low rate-limits | ||
name: ad_account_analytics | ||
- bypass_reason: The stream could return 0 records, because of low rate-limits | ||
name: ad_analytics | ||
- bypass_reason: The stream could return 0 records, because of low rate-limits | ||
name: ad_group_analytics | ||
- bypass_reason: The stream could return 0 records, because of low rate-limits | ||
name: ad_groups | ||
- bypass_reason: The stream could return 0 records, because of low rate-limits | ||
name: ads | ||
- bypass_reason: The stream could return 0 records, because of low rate-limits | ||
name: board_pins | ||
- bypass_reason: The stream could return 0 records, because of low rate-limits | ||
name: board_section_pins | ||
- bypass_reason: The stream could return 0 records, because of low rate-limits | ||
name: board_sections | ||
- bypass_reason: The stream could return 0 records, because of low rate-limits | ||
name: boards | ||
- bypass_reason: The stream could return 0 records, because of low rate-limits | ||
name: campaign_analytics | ||
- bypass_reason: The stream could return 0 records, because of low rate-limits | ||
name: campaigns | ||
- bypass_reason: The stream could return 0 records, because of low rate-limits | ||
name: user_account_analytics | ||
timeout_seconds: 1200 | ||
expect_records: | ||
path: "integration_tests/expected_records.jsonl" | ||
extra_fields: no | ||
exact_order: no | ||
extra_records: yes | ||
connection: | ||
tests: | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
- config_path: "secrets/config_oauth.json" | ||
status: "succeed" | ||
- config_path: secrets/config.json | ||
status: succeed | ||
- config_path: integration_tests/invalid_config.json | ||
status: failed | ||
- config_path: secrets/config_oauth.json | ||
status: succeed | ||
discovery: | ||
tests: | ||
# TODO: remove backward compatibility checks once updated to version `>0.1.3` | ||
- config_path: "secrets/config.json" | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.1.2" | ||
- config_path: "secrets/config_oauth.json" | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.1.2" | ||
basic_read: | ||
- backward_compatibility_tests_config: | ||
disable_for_version: 0.1.2 | ||
config_path: secrets/config.json | ||
- backward_compatibility_tests_config: | ||
disable_for_version: 0.1.2 | ||
config_path: secrets/config_oauth.json | ||
full_refresh: | ||
tests: | ||
- config_path: "secrets/config.json" | ||
# empty streams could be produced because of very low rate limits | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
empty_streams: | ||
- name: ad_account_analytics | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
- name: ad_accounts | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
- name: ad_analytics | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
- name: ad_group_analytics | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
- name: ad_groups | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
- name: ads | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
- name: board_pins | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
- name: board_section_pins | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
- name: board_sections | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
- name: boards | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
- name: campaign_analytics | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
- name: campaigns | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
- name: user_account_analytics | ||
bypass_reason: "The stream could return 0 records, because of low rate-limits" | ||
|
||
# INFO: `incremental` and `full_refresh` tests are commented out because of very small Rate Limits for Pinterest API | ||
# They simply not going to pass with Trial Account, having 300 api calls in total. | ||
# The basic_read test is totaly enough to verify key things of this connector. | ||
# Once upgraded to Standard Plan - they could be uncomment back. | ||
|
||
# incremental: | ||
# - config_path: "secrets/config.json" | ||
# configured_catalog_path: "integration_tests/configured_catalog.json" | ||
# full_refresh: | ||
# - config_path: "secrets/config.json" | ||
# configured_catalog_path: "integration_tests/configured_catalog.json" | ||
- config_path: secrets/config.json | ||
configured_catalog_path: integration_tests/configured_catalog.json | ||
incremental: | ||
tests: | ||
- config_path: secrets/config.json | ||
configured_catalog_path: integration_tests/configured_catalog.json | ||
future_state: | ||
future_state_path: integration_tests/abnormal_state.json | ||
spec: | ||
tests: | ||
- backward_compatibility_tests_config: | ||
disable_for_version: 0.1.2 | ||
spec_path: source_pinterest/spec.json | ||
connector_image: airbyte/source-pinterest:dev | ||
test_strictness_level: high |
1 change: 1 addition & 0 deletions
1
airbyte-integrations/connectors/source-pinterest/integration_tests/expected_records.jsonl
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 @@ | ||
{"stream": "ad_accounts", "data": {"id": "549761668032", "name": "Airbyte", "owner": {"username": "integrationtest0375"}, "country": "US", "currency": "USD", "permissions": ["OWNER"]}, "emitted_at": 1673949379630} |
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.
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.
Can you explain this a little more please? Rather than sleep to wait for more rate-limit, the source will give up and return 0 records?
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.
yes, the rate limits for Pinterest API are quite low, and they are refreshed once a day, so that would be too long of a sleep for tests, that's why streams may return 0 records instead