diff --git a/airbyte-integrations/connectors/source-pinterest/acceptance-test-config.yml b/airbyte-integrations/connectors/source-pinterest/acceptance-test-config.yml index 0e7fe4962cb6..bea45f8c41db 100644 --- a/airbyte-integrations/connectors/source-pinterest/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-pinterest/acceptance-test-config.yml @@ -1,72 +1,64 @@ -# 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_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: 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 diff --git a/airbyte-integrations/connectors/source-pinterest/integration_tests/expected_records.jsonl b/airbyte-integrations/connectors/source-pinterest/integration_tests/expected_records.jsonl new file mode 100644 index 000000000000..21eab0580d61 --- /dev/null +++ b/airbyte-integrations/connectors/source-pinterest/integration_tests/expected_records.jsonl @@ -0,0 +1,3 @@ +{"stream": "ad_accounts", "data": {"id": "549761668032", "name": "Airbyte", "owner": {"username": "integrationtest0375"}, "country": "US", "currency": "USD", "permissions": ["OWNER"]}, "emitted_at": 1673949379630} +{"stream": "boards", "data": {"description": "", "owner": {"username": "integrationtest0375"}, "name": "business", "privacy": "PUBLIC", "id": "666743988523388559"}, "emitted_at": 1674035650077} +{"stream": "board_pins", "data": {"media": {"media_type": "image", "images": {"150x150": {"width": 150, "height": 150, "url": "https://i.pinimg.com/150x150/c6/b6/0d/c6b60d6b5f2ec04db7748d35fb1a8004.jpg"}, "400x300": {"width": 400, "height": 300, "url": "https://i.pinimg.com/400x300/c6/b6/0d/c6b60d6b5f2ec04db7748d35fb1a8004.jpg"}, "600x": {"width": 600, "height": 359, "url": "https://i.pinimg.com/600x/c6/b6/0d/c6b60d6b5f2ec04db7748d35fb1a8004.jpg"}, "1200x": {"width": 1200, "height": 718, "url": "https://i.pinimg.com/1200x/c6/b6/0d/c6b60d6b5f2ec04db7748d35fb1a8004.jpg"}, "originals": {"width": 1270, "height": 760, "url": "https://i.pinimg.com/originals/c6/b6/0d/c6b60d6b5f2ec04db7748d35fb1a8004.jpg"}}}, "alt_text": null, "link": "http://airbyte.io/", "parent_pin_id": null, "board_owner": {"username": "integrationtest0375"}, "title": "Airbyte", "board_section_id": "5195034916661798218", "id": "666743919837294988", "board_id": "666743988523388559", "created_at": "2021-06-08T09:37:30", "description": "Data Integration", "dominant_color": "#cacafe"}, "emitted_at": 1674035650432} \ No newline at end of file