-
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 Paypal Transaction: enable SAT high strictness (#21593)
* Source Paypal Transaction: enable SAT high strictness * Allow to use dates in future for incremental tests
- Loading branch information
1 parent
72134ac
commit 13f568c
Showing
4 changed files
with
103 additions
and
42 deletions.
There are no files selected for viewing
73 changes: 39 additions & 34 deletions
73
airbyte-integrations/connectors/source-paypal-transaction/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,36 +1,41 @@ | ||
# 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-paypal-transaction:dev | ||
tests: | ||
spec: | ||
- spec_path: "source_paypal_transaction/spec.json" | ||
acceptance_tests: | ||
basic_read: | ||
tests: | ||
- config_path: secrets/config.json | ||
empty_streams: | ||
- name: balances | ||
bypass_reason: "value of 'last_refresh_time' field changes during every read" | ||
timeout_seconds: 1200 | ||
expect_records: | ||
path: "integration_tests/expected_records.jsonl" | ||
extra_fields: no | ||
exact_order: no | ||
extra_records: yes | ||
connection: | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
- config_path: "secrets/config_oauth.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config_oauth.json" | ||
status: "failed" | ||
tests: | ||
- config_path: secrets/config.json | ||
status: succeed | ||
- config_path: integration_tests/invalid_config.json | ||
status: failed | ||
- config_path: secrets/config_oauth.json | ||
status: succeed | ||
- config_path: integration_tests/invalid_config_oauth.json | ||
status: failed | ||
discovery: | ||
- config_path: "secrets/config.json" | ||
basic_read: | ||
# Sometimes test could fail (on weekends) because transactions could temporary disappear from Paypal Sandbox account | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
empty_streams: ["transactions"] | ||
# Two-sequence read is failing because of "last_refresh_time" property inside of response, | ||
# It is enough to have basic_read test for all the records to check. | ||
# full_refresh: | ||
# - config_path: "secrets/config.json" | ||
# configured_catalog_path: "integration_tests/configured_catalog.json" | ||
# incremental: | ||
# Only "Transactions" stream is tested here because "Balances" stream always return | ||
# at least one message (and causes test failure) | ||
# - config_path: "secrets/config.json" | ||
# configured_catalog_path: "integration_tests/configured_catalog_transactions.json" | ||
# future_state_path: "integration_tests/abnormal_state.json" | ||
# cursor_paths: | ||
# transactions: ["date"] | ||
|
||
tests: | ||
- config_path: secrets/config.json | ||
full_refresh: | ||
tests: | ||
- config_path: secrets/config.json | ||
configured_catalog_path: integration_tests/configured_catalog.json | ||
incremental: | ||
tests: | ||
- config_path: secrets/config.json | ||
configured_catalog_path: integration_tests/configured_catalog.json | ||
future_state: | ||
future_state_path: integration_tests/abnormal_state.json | ||
spec: | ||
tests: | ||
- spec_path: source_paypal_transaction/spec.json | ||
connector_image: airbyte/source-paypal-transaction:dev | ||
test_strictness_level: high |
28 changes: 22 additions & 6 deletions
28
...e-integrations/connectors/source-paypal-transaction/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 |
---|---|---|
@@ -1,8 +1,24 @@ | ||
{ | ||
"transactions": { | ||
"date": "2021-07-11T23:00:00+00:00" | ||
[ | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"date": "2023-06-09T00:00:00+00:00" | ||
}, | ||
"stream_descriptor": { | ||
"name": "balances" | ||
} | ||
} | ||
}, | ||
"balances": { | ||
"date": "2021-07-11T23:00:00+00:00" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"date": "2023-06-09T00:00:00+00:00" | ||
}, | ||
"stream_descriptor": { | ||
"name": "transactions" | ||
} | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.