Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨Source Plaid: Migrate Python CDK to No-code CDK (#29127)
Co-authored-by: Sajarin <sajarindider@gmail.com> Co-authored-by: sh4sh <6833405+sh4sh@users.noreply.github.com>
- Loading branch information
1 parent
861abce
commit cc43bd7
Showing
14 changed files
with
526 additions
and
277 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
37 changes: 22 additions & 15 deletions
37
airbyte-integrations/connectors/source-plaid/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,24 +1,31 @@ | ||
# See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) | ||
# for more information about how to configure these tests | ||
connector_image: airbyte/source-plaid:dev | ||
tests: | ||
acceptance_tests: | ||
spec: | ||
- spec_path: "source_plaid/spec.json" | ||
tests: | ||
- spec_path: "source_plaid/spec.yaml" | ||
connection: | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
discovery: | ||
- config_path: "secrets/config.json" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
basic_read: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
empty_streams: [] | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
empty_streams: [] | ||
incremental: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
future_state_path: "integration_tests/abnormal_state.json" | ||
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" | ||
full_refresh: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" |
1 change: 1 addition & 0 deletions
1
airbyte-integrations/connectors/source-plaid/acceptance-test-docker.sh
100644 → 100755
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,2 +1,3 @@ | ||
#!/usr/bin/env sh | ||
|
||
source "$(git rev-parse --show-toplevel)/airbyte-integrations/bases/connector-acceptance-test/acceptance-test-docker.sh" |
107 changes: 107 additions & 0 deletions
107
...ntegrations/connectors/source-plaid/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,107 @@ | ||
{ | ||
"streams": [ | ||
{ | ||
"stream": { | ||
"name": "balance", | ||
"supported_sync_modes": ["full_refresh"], | ||
"json_schema": { | ||
"required": ["account_id", "current"], | ||
"type": "object", | ||
"properties": { | ||
"account_id": { | ||
"type": "string" | ||
}, | ||
"available": { | ||
"type": ["number", "null"] | ||
}, | ||
"current": { | ||
"type": "number" | ||
}, | ||
"iso_currency_code": { | ||
"type": ["string", "null"] | ||
}, | ||
"limit": { | ||
"type": ["number", "null"] | ||
}, | ||
"unofficial_currency_code": { | ||
"type": ["string", "null"] | ||
} | ||
} | ||
} | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
}, | ||
{ | ||
"stream": { | ||
"name": "transaction", | ||
"supported_sync_modes": ["full_refresh", "incremental"], | ||
"source_defined_cursor": true, | ||
"json_schema": { | ||
"type": "object", | ||
"required": [ | ||
"account_id", | ||
"amount", | ||
"iso_currency_code", | ||
"name", | ||
"transaction_id", | ||
"category", | ||
"date", | ||
"transaction_type" | ||
], | ||
"properties": { | ||
"account_id": { "type": "string" }, | ||
"amount": { "type": "number" }, | ||
"category": { "type": "array", "items": { "type": "string" } }, | ||
"category_id": { "type": ["string", "null"] }, | ||
"date": { "type": "string" }, | ||
"iso_currency_code": { "type": "string" }, | ||
"name": { "type": "string" }, | ||
"payment_channel": { "type": ["string", "null"] }, | ||
"pending": { "type": ["boolean", "null"] }, | ||
"transaction_id": { "type": "string" }, | ||
"transaction_type": { "type": "string" }, | ||
"location": { | ||
"type": ["object", "null"], | ||
"properties": { | ||
"address": { "type": ["string", "null"] }, | ||
"city": { "type": ["string", "null"] }, | ||
"country": { "type": ["string", "null"] }, | ||
"lat": { "type": ["string", "null"] }, | ||
"lon": { "type": ["string", "null"] }, | ||
"postal_code": { "type": ["string", "null"] }, | ||
"region": { "type": ["string", "null"] }, | ||
"store_number": { "type": ["string", "null"] } | ||
} | ||
}, | ||
"payment_meta": { | ||
"type": ["object", "null"], | ||
"properties": { | ||
"by_order_of": { "type": ["string", "null"] }, | ||
"payee": { "type": ["string", "null"] }, | ||
"payer": { "type": ["string", "null"] }, | ||
"payment_method": { "type": ["string", "null"] }, | ||
"payment_processor": { "type": ["string", "null"] }, | ||
"ppd_id": { "type": ["string", "null"] }, | ||
"reason": { "type": ["string", "null"] }, | ||
"reference_number": { "type": ["string", "null"] } | ||
} | ||
}, | ||
"account_owner": { "type": ["string", "null"] }, | ||
"authorized_date": { "type": ["string", "null"] }, | ||
"authorized_datetime": { "type": ["string", "null"] }, | ||
"check_number": { "type": ["string", "null"] }, | ||
"datetime": { "type": ["string", "null"] }, | ||
"merchant_name": { "type": ["string", "null"] }, | ||
"pending_transaction_id": { "type": ["string", "null"] }, | ||
"personal_finance_category": { "type": ["string", "null"] }, | ||
"transaction_code": { "type": ["string", "null"] }, | ||
"unofficial_currency_code": { "type": ["string", "null"] } | ||
} | ||
} | ||
}, | ||
"sync_mode": "incremental", | ||
"destination_sync_mode": "append" | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# This file is autogenerated -- only edit if you know what you are doing. Use setup.py for declaring dependencies. | ||
-e . | ||
-e ../../bases/connector-acceptance-test |
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
2 changes: 1 addition & 1 deletion
2
airbyte-integrations/connectors/source-plaid/source_plaid/__init__.py
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.