-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source Mixpanel: enable
high
test strictness level in SAT (#21510)
* Enable high test strictness * Updated expected_records.jsonl * Updated expected records * Increased timeout * Updated abnormal state * Updated cursor_path * Updated acceptance tests config
- Loading branch information
Showing
7 changed files
with
160 additions
and
73 deletions.
There are no files selected for viewing
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
73 changes: 40 additions & 33 deletions
73
airbyte-integrations/connectors/source-mixpanel/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,42 +1,49 @@ | ||
# 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-mixpanel:dev | ||
tests: | ||
test_strictness_level: "high" | ||
acceptance_tests: | ||
spec: | ||
- spec_path: "source_mixpanel/spec.json" | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.1.23" | ||
tests: | ||
- spec_path: "source_mixpanel/spec.json" | ||
connection: | ||
- config_path: "secrets/config_old.json" | ||
status: "succeed" | ||
- config_path: "secrets/config_project_secret.json" | ||
status: "succeed" | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
tests: | ||
- config_path: "secrets/config_old.json" | ||
status: "succeed" | ||
- config_path: "secrets/config_project_secret.json" | ||
status: "succeed" | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
discovery: | ||
- config_path: "secrets/config.json" | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.1.23" | ||
timeout_seconds: 60 | ||
tests: | ||
- config_path: "secrets/config_old.json" | ||
timeout_seconds: 60 | ||
basic_read: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
timeout_seconds: 3600 | ||
empty_streams: ['export', 'annotations'] | ||
tests: | ||
- config_path: "secrets/config.json" | ||
timeout_seconds: 9000 | ||
expect_records: | ||
path: "integration_tests/expected_records.jsonl" | ||
extra_fields: no | ||
exact_order: no | ||
extra_records: yes | ||
full_refresh: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
timeout_seconds: 3600 | ||
tests: | ||
- config_path: "secrets/config_old.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
timeout_seconds: 9000 | ||
incremental: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
future_state_path: "integration_tests/abnormal_state.json" | ||
cursor_paths: | ||
cohorts: ["created"] | ||
export: ["time"] | ||
funnels: ["8901755", "date"] | ||
revenue: ["date"] | ||
cohort_members": ["last_seen"] | ||
timeout_seconds: 3600 | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog_incremental.json" | ||
future_state: | ||
future_state_path: "integration_tests/abnormal_state.json" | ||
cursor_paths: | ||
cohorts: ["created"] | ||
export: ["time"] | ||
funnels: ["36152117", "date"] | ||
revenue: ["date"] | ||
cohort_members": ["last_seen"] | ||
timeout_seconds: 9000 |
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
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
52 changes: 52 additions & 0 deletions
52
...grations/connectors/source-mixpanel/integration_tests/configured_catalog_incremental.json
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,52 @@ | ||
{ | ||
"streams": [ | ||
{ | ||
"stream": { | ||
"name": "funnels", | ||
"json_schema": {}, | ||
"supported_sync_modes": ["full_refresh", "incremental"], | ||
"source_defined_cursor": true, | ||
"default_cursor_field": ["date"], | ||
"source_defined_primary_key": [["funnel_id"], ["date"]] | ||
}, | ||
"sync_mode": "incremental", | ||
"destination_sync_mode": "append" | ||
}, | ||
{ | ||
"stream": { | ||
"name": "export", | ||
"json_schema": {}, | ||
"supported_sync_modes": ["full_refresh", "incremental"], | ||
"source_defined_cursor": true, | ||
"default_cursor_field": ["time"] | ||
}, | ||
"sync_mode": "incremental", | ||
"destination_sync_mode": "append" | ||
}, | ||
{ | ||
"stream": { | ||
"name": "cohorts", | ||
"json_schema": {}, | ||
"supported_sync_modes": ["full_refresh", "incremental"], | ||
"source_defined_cursor": true, | ||
"default_cursor_field": ["created"], | ||
"source_defined_primary_key": [["id"]] | ||
}, | ||
"sync_mode": "incremental", | ||
"destination_sync_mode": "append" | ||
}, | ||
{ | ||
"stream": { | ||
"name": "cohort_members", | ||
"json_schema": {}, | ||
"supported_sync_modes": ["full_refresh", "incremental"], | ||
"source_defined_cursor": false, | ||
"default_cursor_field": ["last_seen"], | ||
"source_defined_primary_key": [["distinct_id"]] | ||
}, | ||
"sync_mode": "incremental", | ||
"destination_sync_mode": "append", | ||
"cursor_field": ["last_seen"] | ||
} | ||
] | ||
} |
Oops, something went wrong.