Skip to content

Commit

Permalink
Source Paypal Transaction: enable SAT high strictness (#21593)
Browse files Browse the repository at this point in the history
* Source Paypal Transaction: enable SAT high strictness

* Allow to use dates in future for incremental tests
  • Loading branch information
arsenlosenko authored Jan 23, 2023
1 parent 72134ac commit 13f568c
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 42 deletions.
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
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"
}
}
}
}
]
Loading

0 comments on commit 13f568c

Please sign in to comment.