-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source Mailchimp - fix the way request params are built (#20765)
* 1058 source mailchimp - fix the way request params are built * auto-bump connector version Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
- Loading branch information
Showing
15 changed files
with
160 additions
and
141 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
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
107 changes: 49 additions & 58 deletions
107
airbyte-integrations/connectors/source-mailchimp/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,66 +1,57 @@ | ||
connector_image: airbyte/source-mailchimp:dev | ||
tests: | ||
test_strictness_level: high | ||
acceptance_tests: | ||
spec: | ||
- spec_path: "source_mailchimp/spec.json" | ||
timeout_seconds: 60 | ||
tests: | ||
- spec_path: "source_mailchimp/spec.json" | ||
connection: | ||
# for old spec config (without oneOf) | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
timeout_seconds: 180 | ||
# for auth with API token | ||
- config_path: "secrets/config_apikey.json" | ||
status: "succeed" | ||
timeout_seconds: 180 | ||
# for auth with oauth2 token | ||
- config_path: "secrets/config_oauth.json" | ||
status: "succeed" | ||
timeout_seconds: 180 | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
timeout_seconds: 180 | ||
- config_path: "integration_tests/invalid_config_apikey.json" | ||
status: "failed" | ||
timeout_seconds: 180 | ||
- config_path: "integration_tests/invalid_config_oauth.json" | ||
status: "failed" | ||
timeout_seconds: 180 | ||
tests: | ||
# for old spec config (without oneOf) | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
# for auth with API token | ||
- config_path: "secrets/config_apikey.json" | ||
status: "succeed" | ||
# for auth with oauth2 token | ||
- config_path: "secrets/config_oauth.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
- config_path: "integration_tests/invalid_config_apikey.json" | ||
status: "failed" | ||
- config_path: "integration_tests/invalid_config_oauth.json" | ||
status: "failed" | ||
discovery: | ||
# for old spec config (without oneOf) | ||
- config_path: "secrets/config.json" | ||
# for auth with API token | ||
- config_path: "secrets/config_apikey.json" | ||
# for auth with oauth2 token | ||
- config_path: "secrets/config_oauth.json" | ||
tests: | ||
# for old spec config (without oneOf) | ||
- config_path: "secrets/config.json" | ||
# for auth with API token | ||
- config_path: "secrets/config_apikey.json" | ||
# for auth with oauth2 token | ||
- config_path: "secrets/config_oauth.json" | ||
basic_read: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
timeout_seconds: 1800 | ||
- config_path: "secrets/config_oauth.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
timeout_seconds: 1800 | ||
# THIS TEST IS COMMENTED OUT. Tests are supposed to accept | ||
# `state = {cursor_field: value}`. When we have dependent endpoint path | ||
# `path_begin/{some_id}/path_end` we need a complex state like below: | ||
# `{"id1": {cursor_field: value}, "id2": {cursor_field: value}...}` | ||
# The test currently is not supposed to accept this desired construction, | ||
# so it is commented out | ||
|
||
# incremental: | ||
# - config_path: "secrets/config.json" | ||
# configured_catalog_path: "integration_tests/configured_catalog.json" | ||
# future_state_path: "integration_tests/state.json" | ||
# cursor_paths: | ||
# lists: [ "date_created" ] | ||
# campaigns: [ "create_time" ] | ||
# Email_activity: [ "timestamp" ] | ||
|
||
tests: | ||
- config_path: "secrets/config.json" | ||
expect_records: | ||
bypass_reason: "Risk to disclose internal data. Need to set up a sandbox account - https://github.com/airbytehq/airbyte/issues/20726" | ||
- config_path: "secrets/config_oauth.json" | ||
expect_records: | ||
bypass_reason: "Risk to disclose internal data. Need to set up a sandbox account - https://github.com/airbytehq/airbyte/issues/20726" | ||
incremental: | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
future_state: | ||
future_state_path: "integration_tests/state.json" | ||
cursor_paths: | ||
lists: ["date_created"] | ||
campaigns: ["create_time"] | ||
email_activity: ["49d68626f3", "timestamp"] | ||
# Email activities stream has working campaigns with email newsletters. | ||
# Due to this sequential_reads test could be failed. | ||
full_refresh: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog_without_email_activities.json" | ||
timeout_seconds: 1800 | ||
- config_path: "secrets/config_oauth.json" | ||
configured_catalog_path: "integration_tests/configured_catalog_without_email_activities.json" | ||
timeout_seconds: 1800 | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog_without_email_activities.json" | ||
- config_path: "secrets/config_oauth.json" | ||
configured_catalog_path: "integration_tests/configured_catalog_without_email_activities.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
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
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
1 change: 0 additions & 1 deletion
1
airbyte-integrations/connectors/source-mailchimp/source_mailchimp/models/__init__.py
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
airbyte-integrations/connectors/source-mailchimp/source_mailchimp/models/mailchimp.py
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.