Skip to content

Commit

Permalink
Source Amazon Ads: enable SAT high strictness (#21646)
Browse files Browse the repository at this point in the history
* Source Amazon Ads: enable SAT high strictness

* Update SAT config, remove config_report.json for now
  • Loading branch information
arsenlosenko authored Jan 24, 2023
1 parent 1c4b6a1 commit d7cbc79
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 45 deletions.
Original file line number Diff line number Diff line change
@@ -1,55 +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-amazon-ads:dev
acceptance_tests:
spec:
basic_read:
tests:
- spec_path: "integration_tests/spec.json"
- config_path: secrets/config.json
empty_streams:
- name: sponsored_brands_ad_groups
bypass_reason: "can't populate stream because it requires real ad campaign"
- name: sponsored_brands_campaigns
bypass_reason: "can't populate stream because it requires real ad campaign"
- name: sponsored_brands_keywords
bypass_reason: "can't populate stream because it requires real ad campaign"
- name: attribution_report_performance_creative
bypass_reason: "can't populate stream because it requires real ad campaign"
- name: attribution_report_performance_adgroup
bypass_reason: "can't populate stream because it requires real ad campaign"
- name: attribution_report_products
bypass_reason: "can't populate stream because it requires real ad campaign"
- name: attribution_report_performance_campaign
bypass_reason: "can't populate stream because it requires real ad campaign"
- name: sponsored_display_report_stream
bypass_reason: "can't populate stream because it requires real ad campaign"
- name: sponsored_brands_report_stream
bypass_reason: "can't populate stream because it requires real ad campaign"
- name: sponsored_brands_video_report_stream
bypass_reason: "can't populate stream because it requires real ad campaign"
- name: sponsored_products_report_stream
bypass_reason: "can't populate stream because it requires real ad campaign"
timeout_seconds: 2400
expect_records:
path: integration_tests/expected_records.jsonl
exact_order: no
extra_fields: no
extra_records: no
connection:
tests:
- config_path: "secrets/config.json"
status: "succeed"
- config_path: "integration_tests/invalid_config.json"
status: "failed"
- config_path: secrets/config.json
status: succeed
- config_path: integration_tests/invalid_config.json
status: failed
discovery:
tests:
- config_path: "secrets/config.json"
basic_read:
- config_path: secrets/config.json
full_refresh:
tests:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
expect_records:
path: "integration_tests/expected_records.jsonl"
extra_fields: no
exact_order: no
extra_records: no
empty_streams:
- name: "profiles"
- name: "sponsored_brands_ad_groups"
- name: "sponsored_brands_campaigns"
- name: "sponsored_brands_keywords"
- name: "attribution_report_performance_creative"
- name: "attribution_report_performance_adgroup"
- name: "attribution_report_products"
- name: "attribution_report_performance_campaign"
- config_path: "secrets/config_report.json"
configured_catalog_path: "integration_tests/configured_catalog_report.json"
timeout_seconds: 2400
- config_path: secrets/config.json
configured_catalog_path: integration_tests/configured_catalog.json
- config_path: secrets/config_report.json
configured_catalog_path: integration_tests/configured_catalog_report.json
ignored_fields:
sponsored_products_report_stream:
- updatedAt
timeout_seconds: 3600
incremental:
tests:
- config_path: "secrets/config_report.json"
configured_catalog_path: "integration_tests/configured_catalog_report.json"
future_state:
future_state_path: "integration_tests/abnormal_state.json"
cursor_paths:
sponsored_products_report_stream: ["1861552880916640", "reportDate"]
timeout_seconds: 2400
full_refresh:
- config_path: secrets/config_report.json
configured_catalog_path: integration_tests/configured_catalog_report.json
cursor_paths:
sponsored_products_report_stream:
- '1861552880916640'
- reportDate
future_state:
future_state_path: integration_tests/abnormal_state.json
timeout_seconds: 2400
spec:
tests:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
- config_path: "secrets/config_report.json"
configured_catalog_path: "integration_tests/configured_catalog_report.json"
ignored_fields:
"sponsored_products_report_stream": ["updatedAt"]
timeout_seconds: 3600
- spec_path: integration_tests/spec.json
connector_image: airbyte/source-amazon-ads:dev
test_strictness_level: high
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{"stream": "profiles", "data": {"profileId": 3991703629696934, "countryCode": "CA", "currencyCode": "CAD", "dailyBudget": 999999999.0, "timezone": "America/Los_Angeles", "accountInfo": {"marketplaceStringId": "A2EUQ1WTGCTBG2", "id": "A3LUQZ2NBMFGO4", "type": "seller", "name": "The Airbyte Store", "validPaymentMethod": true}}, "emitted_at": 1674212646241}
{"stream": "profiles", "data": {"profileId": 2935840597082037, "countryCode": "CA", "currencyCode": "CAD", "timezone": "America/Los_Angeles", "accountInfo": {"marketplaceStringId": "A2EUQ1WTGCTBG2", "id": "ENTITY1T4PQ8E0Y1LVJ", "type": "vendor", "name": "test", "validPaymentMethod": false}}, "emitted_at": 1674212646242}
{"stream": "profiles", "data": {"profileId": 3664951271230581, "countryCode": "MX", "currencyCode": "MXN", "dailyBudget": 999999999.0, "timezone": "America/Los_Angeles", "accountInfo": {"marketplaceStringId": "A1AM78C64UM0Y8", "id": "A3LUQZ2NBMFGO4", "type": "seller", "name": "The Airbyte Store", "validPaymentMethod": true}}, "emitted_at": 1674212646242}
{"stream": "profiles", "data": {"profileId": 1861552880916640, "countryCode": "US", "currencyCode": "USD", "timezone": "America/Los_Angeles", "accountInfo": {"marketplaceStringId": "ATVPDKIKX0DER", "id": "ENTITYVFIQ1E6W9INI", "type": "vendor", "name": "Sponsored ads - KDP", "subType": "KDP_AUTHOR", "validPaymentMethod": true}}, "emitted_at": 1674212646242}
{"stream": "profiles", "data": {"profileId": 3312910465837761, "countryCode": "US", "currencyCode": "USD", "dailyBudget": 999999999.0, "timezone": "America/Los_Angeles", "accountInfo": {"marketplaceStringId": "ATVPDKIKX0DER", "id": "A3LUQZ2NBMFGO4", "type": "seller", "name": "The Airbyte Store", "validPaymentMethod": true}}, "emitted_at": 1674212646243}
{"stream": "profiles", "data": {"profileId": 2445745172318948, "countryCode": "US", "currencyCode": "USD", "timezone": "America/Los_Angeles", "accountInfo": {"marketplaceStringId": "ATVPDKIKX0DER", "id": "ENTITY3QRPN1GHC1Q0U", "type": "vendor", "name": "3PTestBrand-A3LUQZ2NBMFGO46750119612846", "validPaymentMethod": true}}, "emitted_at": 1674212646243}
{"stream": "profiles", "data": {"profileId": 3039403378822505, "countryCode": "US", "currencyCode": "USD", "timezone": "America/Los_Angeles", "accountInfo": {"marketplaceStringId": "ATVPDKIKX0DER", "id": "ENTITY2ZP3PPFBG2043", "type": "vendor", "name": "3PTestBrand-A3LUQZ2NBMFGO4215634471126", "validPaymentMethod": true}}, "emitted_at": 1674212646243}
{"stream":"sponsored_display_ad_groups","data":{"adGroupId": 239470166910761, "campaignId": 25934734632378, "defaultBid": 0.02, "name": "Ad group - 7/20/2022 15:45:46", "state": "enabled", "bidOptimization": "clicks", "tactic": "T00020", "creativeType": "IMAGE"},"emitted_at":1659020218593}
{"stream":"sponsored_display_campaigns","data":{"campaignId":25934734632378,"name":"Campaign - 7/20/2022 15:45:46","tactic":"T00020","startDate":"20240510","state":"enabled","costType":"cpc","budget":1,"budgetType":"daily","deliveryProfile":"as_soon_as_possible"},"emitted_at":1659020217679}
{"stream":"sponsored_display_product_ads","data":{"adId":125773733335504,"adGroupId":239470166910761,"campaignId":25934734632378,"asin":"B000BNT390","state":"enabled"},"emitted_at":1659020219604}
Expand Down

0 comments on commit d7cbc79

Please sign in to comment.