Skip to content

Commit d7cbc79

Browse files
authored
Source Amazon Ads: enable SAT high strictness (#21646)
* Source Amazon Ads: enable SAT high strictness * Update SAT config, remove config_report.json for now
1 parent 1c4b6a1 commit d7cbc79

File tree

2 files changed

+65
-45
lines changed

2 files changed

+65
-45
lines changed
Lines changed: 58 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,68 @@
1-
# See [Source Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/source-acceptance-tests-reference)
2-
# for more information about how to configure these tests
3-
connector_image: airbyte/source-amazon-ads:dev
41
acceptance_tests:
5-
spec:
2+
basic_read:
63
tests:
7-
- spec_path: "integration_tests/spec.json"
4+
- config_path: secrets/config.json
5+
empty_streams:
6+
- name: sponsored_brands_ad_groups
7+
bypass_reason: "can't populate stream because it requires real ad campaign"
8+
- name: sponsored_brands_campaigns
9+
bypass_reason: "can't populate stream because it requires real ad campaign"
10+
- name: sponsored_brands_keywords
11+
bypass_reason: "can't populate stream because it requires real ad campaign"
12+
- name: attribution_report_performance_creative
13+
bypass_reason: "can't populate stream because it requires real ad campaign"
14+
- name: attribution_report_performance_adgroup
15+
bypass_reason: "can't populate stream because it requires real ad campaign"
16+
- name: attribution_report_products
17+
bypass_reason: "can't populate stream because it requires real ad campaign"
18+
- name: attribution_report_performance_campaign
19+
bypass_reason: "can't populate stream because it requires real ad campaign"
20+
- name: sponsored_display_report_stream
21+
bypass_reason: "can't populate stream because it requires real ad campaign"
22+
- name: sponsored_brands_report_stream
23+
bypass_reason: "can't populate stream because it requires real ad campaign"
24+
- name: sponsored_brands_video_report_stream
25+
bypass_reason: "can't populate stream because it requires real ad campaign"
26+
- name: sponsored_products_report_stream
27+
bypass_reason: "can't populate stream because it requires real ad campaign"
28+
timeout_seconds: 2400
29+
expect_records:
30+
path: integration_tests/expected_records.jsonl
31+
exact_order: no
32+
extra_fields: no
33+
extra_records: no
834
connection:
935
tests:
10-
- config_path: "secrets/config.json"
11-
status: "succeed"
12-
- config_path: "integration_tests/invalid_config.json"
13-
status: "failed"
36+
- config_path: secrets/config.json
37+
status: succeed
38+
- config_path: integration_tests/invalid_config.json
39+
status: failed
1440
discovery:
1541
tests:
16-
- config_path: "secrets/config.json"
17-
basic_read:
42+
- config_path: secrets/config.json
43+
full_refresh:
1844
tests:
19-
- config_path: "secrets/config.json"
20-
configured_catalog_path: "integration_tests/configured_catalog.json"
21-
expect_records:
22-
path: "integration_tests/expected_records.jsonl"
23-
extra_fields: no
24-
exact_order: no
25-
extra_records: no
26-
empty_streams:
27-
- name: "profiles"
28-
- name: "sponsored_brands_ad_groups"
29-
- name: "sponsored_brands_campaigns"
30-
- name: "sponsored_brands_keywords"
31-
- name: "attribution_report_performance_creative"
32-
- name: "attribution_report_performance_adgroup"
33-
- name: "attribution_report_products"
34-
- name: "attribution_report_performance_campaign"
35-
- config_path: "secrets/config_report.json"
36-
configured_catalog_path: "integration_tests/configured_catalog_report.json"
37-
timeout_seconds: 2400
45+
- config_path: secrets/config.json
46+
configured_catalog_path: integration_tests/configured_catalog.json
47+
- config_path: secrets/config_report.json
48+
configured_catalog_path: integration_tests/configured_catalog_report.json
49+
ignored_fields:
50+
sponsored_products_report_stream:
51+
- updatedAt
52+
timeout_seconds: 3600
3853
incremental:
3954
tests:
40-
- config_path: "secrets/config_report.json"
41-
configured_catalog_path: "integration_tests/configured_catalog_report.json"
42-
future_state:
43-
future_state_path: "integration_tests/abnormal_state.json"
44-
cursor_paths:
45-
sponsored_products_report_stream: ["1861552880916640", "reportDate"]
46-
timeout_seconds: 2400
47-
full_refresh:
55+
- config_path: secrets/config_report.json
56+
configured_catalog_path: integration_tests/configured_catalog_report.json
57+
cursor_paths:
58+
sponsored_products_report_stream:
59+
- '1861552880916640'
60+
- reportDate
61+
future_state:
62+
future_state_path: integration_tests/abnormal_state.json
63+
timeout_seconds: 2400
64+
spec:
4865
tests:
49-
- config_path: "secrets/config.json"
50-
configured_catalog_path: "integration_tests/configured_catalog.json"
51-
- config_path: "secrets/config_report.json"
52-
configured_catalog_path: "integration_tests/configured_catalog_report.json"
53-
ignored_fields:
54-
"sponsored_products_report_stream": ["updatedAt"]
55-
timeout_seconds: 3600
66+
- spec_path: integration_tests/spec.json
67+
connector_image: airbyte/source-amazon-ads:dev
68+
test_strictness_level: high

airbyte-integrations/connectors/source-amazon-ads/integration_tests/expected_records.jsonl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{"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}
2+
{"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}
3+
{"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}
4+
{"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}
5+
{"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}
6+
{"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}
7+
{"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}
18
{"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}
29
{"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}
310
{"stream":"sponsored_display_product_ads","data":{"adId":125773733335504,"adGroupId":239470166910761,"campaignId":25934734632378,"asin":"B000BNT390","state":"enabled"},"emitted_at":1659020219604}

0 commit comments

Comments
 (0)