Skip to content

Commit fa66dc8

Browse files
authored
Source Chargebee: Updates schemas for validation and missing fields errors, updates test bypass, adds expected records, adds custom error handling, adds incremental support for three streams (#34053)
1 parent 180335c commit fa66dc8

38 files changed

+1254
-1929
lines changed

airbyte-integrations/connectors/source-chargebee/acceptance-test-config.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,22 @@ acceptance_tests:
2828
bypass_reason: "Not available for Product Catalog 2.0 sites."
2929
- name: "virtual_bank_account"
3030
bypass_reason: "Cannot populate with test data"
31-
- name: "unbilled_charge"
32-
bypass_reason: "Empty stream. Unstable data"
33-
- name: "hosted_page"
34-
bypass_reason: "Empty stream. Unstable data"
3531
- name: "event"
36-
bypass_reason: "Unstable data. Updated daily."
32+
bypass_reason: "Unstable data. Test data is not persistent."
3733
- name: "site_migration_detail"
3834
bypass_reason: "Cannnot populate with test data."
39-
ignored_fields:
40-
subscription:
41-
- name: "current_term_start"
42-
bypass_reason: "Field updated daily."
35+
- name: "customer"
36+
bypass_reason: "To be Tested with integration tests."
37+
- name: "subscription"
38+
bypass_reason: "To be Tested with integration tests."
39+
- name: "coupon"
40+
bypass_reason: "To be Tested with integration tests."
4341
expect_records:
4442
path: "integration_tests/expected_records.jsonl"
4543
extra_fields: no
4644
exact_order: no
4745
extra_records: yes
48-
fail_on_extra_columns: false
46+
fail_on_extra_columns: true
4947
incremental:
5048
tests:
5149
- config_path: "secrets/config.json"
@@ -54,12 +52,12 @@ acceptance_tests:
5452
future_state:
5553
future_state_path: "integration_tests/future_state.json"
5654
missing_streams:
57-
- name: attached_item
58-
bypass_reason: "This stream is Full-Refresh only"
5955
- name: contact
6056
bypass_reason: "This stream is Full-Refresh only"
6157
- name: quote_line_group
6258
bypass_reason: "This stream is Full-Refresh only"
59+
- name: attached_item
60+
bypass_reason: "This stream is Full-Refresh only"
6361
full_refresh:
6462
tests:
6563
- config_path: "secrets/config.json"

airbyte-integrations/connectors/source-chargebee/integration_tests/configured_catalog.json

Lines changed: 10 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -13,44 +13,6 @@
1313
"destination_sync_mode": "append",
1414
"cursor_field": ["updated_at"]
1515
},
16-
{
17-
"stream": {
18-
"name": "event",
19-
"json_schema": {},
20-
"supported_sync_modes": ["full_refresh", "incremental"],
21-
"source_defined_cursor": true,
22-
"default_cursor_field": ["occurred_at"],
23-
"source_defined_primary_key": [["id"]]
24-
},
25-
"sync_mode": "incremental",
26-
"destination_sync_mode": "append",
27-
"cursor_field": ["occurred_at"]
28-
},
29-
{
30-
"stream": {
31-
"name": "customer",
32-
"json_schema": {},
33-
"supported_sync_modes": ["full_refresh", "incremental"],
34-
"source_defined_cursor": true,
35-
"default_cursor_field": ["updated_at"],
36-
"source_defined_primary_key": [["id"]]
37-
},
38-
"sync_mode": "incremental",
39-
"destination_sync_mode": "append",
40-
"cursor_field": ["updated_at"]
41-
},
42-
{
43-
"stream": {
44-
"name": "contact",
45-
"json_schema": {},
46-
"supported_sync_modes": ["full_refresh", "incremental"],
47-
"source_defined_cursor": true,
48-
"default_cursor_field": ["updated_at"],
49-
"source_defined_primary_key": [["id"]]
50-
},
51-
"sync_mode": "full_refresh",
52-
"destination_sync_mode": "append"
53-
},
5416
{
5517
"stream": {
5618
"name": "invoice",
@@ -107,13 +69,11 @@
10769
"stream": {
10870
"name": "attached_item",
10971
"json_schema": {},
110-
"supported_sync_modes": ["full_refresh", "incremental"],
111-
"source_defined_cursor": true,
112-
"default_cursor_field": ["updated_at"],
72+
"supported_sync_modes": ["full_refresh"],
11373
"source_defined_primary_key": [["id"]]
11474
},
11575
"sync_mode": "full_refresh",
116-
"destination_sync_mode": "append"
76+
"destination_sync_mode": "overwrite"
11777
},
11878
{
11979
"stream": {
@@ -147,7 +107,7 @@
147107
"json_schema": {},
148108
"supported_sync_modes": ["full_refresh", "incremental"],
149109
"source_defined_cursor": true,
150-
"default_cursor_field": ["updated_at"],
110+
"default_cursor_field": ["created_at"],
151111
"source_defined_primary_key": [["id"]]
152112
},
153113
"sync_mode": "incremental",
@@ -160,25 +120,12 @@
160120
"json_schema": {},
161121
"supported_sync_modes": ["full_refresh", "incremental"],
162122
"source_defined_cursor": true,
163-
"default_cursor_field": ["updated_at"],
164-
"source_defined_primary_key": [["id"]]
165-
},
166-
"sync_mode": "incremental",
167-
"destination_sync_mode": "append",
168-
"cursor_field": ["updated_at"]
169-
},
170-
{
171-
"stream": {
172-
"name": "coupon",
173-
"json_schema": {},
174-
"supported_sync_modes": ["full_refresh", "incremental"],
175-
"source_defined_cursor": true,
176-
"default_cursor_field": ["updated_at"],
177-
"source_defined_primary_key": [["id"]]
123+
"source_defined_primary_key": [["id"]],
124+
"default_cursor_field": ["created_at"]
178125
},
179126
"sync_mode": "incremental",
180127
"destination_sync_mode": "append",
181-
"cursor_field": ["updated_at"]
128+
"cursor_field": ["created_at"]
182129
},
183130
{
184131
"stream": {
@@ -212,8 +159,8 @@
212159
"json_schema": {},
213160
"supported_sync_modes": ["full_refresh", "incremental"],
214161
"source_defined_cursor": true,
215-
"default_cursor_field": ["updated_at"],
216-
"source_defined_primary_key": [["id"]]
162+
"source_defined_primary_key": [["id"]],
163+
"default_cursor_field": ["updated_at"]
217164
},
218165
"sync_mode": "incremental",
219166
"destination_sync_mode": "append",
@@ -236,26 +183,11 @@
236183
"stream": {
237184
"name": "quote_line_group",
238185
"json_schema": {},
239-
"supported_sync_modes": ["full_refresh", "incremental"],
240-
"source_defined_cursor": true,
241-
"default_cursor_field": ["updated_at"],
186+
"supported_sync_modes": ["full_refresh"],
242187
"source_defined_primary_key": [["id"]]
243188
},
244189
"sync_mode": "full_refresh",
245-
"destination_sync_mode": "append"
246-
},
247-
{
248-
"stream": {
249-
"name": "site_migration_detail",
250-
"json_schema": {},
251-
"supported_sync_modes": ["full_refresh", "incremental"],
252-
"source_defined_cursor": true,
253-
"default_cursor_field": ["migrated_at"],
254-
"source_defined_primary_key": [["entity_id"]]
255-
},
256-
"sync_mode": "incremental",
257-
"destination_sync_mode": "append",
258-
"cursor_field": ["migrated_at"]
190+
"destination_sync_mode": "overwrite"
259191
},
260192
{
261193
"stream": {

0 commit comments

Comments
 (0)