-
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 Prestashop: Migrate connector from Alpha (Python) to Beta (YAM…
…L) (#18927) Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
- Loading branch information
Showing
18 changed files
with
1,050 additions
and
425 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
46 changes: 30 additions & 16 deletions
46
airbyte-integrations/connectors/source-prestashop/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,25 +1,39 @@ | ||
# 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-prestashop:dev | ||
tests: | ||
acceptance_tests: | ||
spec: | ||
- spec_path: "source_prestashop/spec.json" | ||
# unfortunately timeout plugin takes into account setup code as well (docker setup) | ||
timeout_seconds: 300 | ||
tests: | ||
- spec_path: "source_prestashop/spec.yaml" | ||
# unfortunately timeout plugin takes into account setup code as well (docker setup) | ||
timeout_seconds: 300 | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.2.0" | ||
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" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
expect_records: | ||
path: "integration_tests/expected_records.txt" | ||
extra_fields: no | ||
exact_order: no | ||
extra_records: yes | ||
incremental: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
future_state_path: "integration_tests/future_state.json" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.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" |
255 changes: 255 additions & 0 deletions
255
airbyte-integrations/connectors/source-prestashop/integration_tests/abnormal_state.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,255 @@ | ||
[ | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "addresses" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "cart_rules" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "carts" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "categories" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "configurations" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "customer_messages" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "customers" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "customer_threads" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "groups" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "manufacturers" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "messages" | ||
}, | ||
"stream_state": { | ||
"date_add": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "order_carriers" | ||
}, | ||
"stream_state": { | ||
"date_add": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "order_histories" | ||
}, | ||
"stream_state": { | ||
"date_add": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "order_invoices" | ||
}, | ||
"stream_state": { | ||
"date_add": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "order_payments" | ||
}, | ||
"stream_state": { | ||
"date_add": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "orders" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "order_slip" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "products" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "stock_movement_reasons" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "stock_movements" | ||
}, | ||
"stream_state": { | ||
"date_add": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "stores" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "suppliers" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "tax_rule_groups" | ||
}, | ||
"stream_state": { | ||
"date_upd": "2121-06-16 14:13:26" | ||
} | ||
} | ||
} | ||
] |
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.